From 1a9c46be99cf7d3c95a61bb78c83ebc92afc14a5 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 24 May 2010 16:55:23 -0700 Subject: gc: fix shift/reduce conflict in go.y export syntax Fixes issue 771. R=ken2 CC=golang-dev http://codereview.appspot.com/1267042 --- test/fixedbugs/bug282.dir/p1.go | 10 ++++++++++ test/fixedbugs/bug282.dir/p2.go | 8 ++++++++ test/fixedbugs/bug282.go | 7 +++++++ 3 files changed, 25 insertions(+) create mode 100644 test/fixedbugs/bug282.dir/p1.go create mode 100644 test/fixedbugs/bug282.dir/p2.go create mode 100644 test/fixedbugs/bug282.go (limited to 'test') diff --git a/test/fixedbugs/bug282.dir/p1.go b/test/fixedbugs/bug282.dir/p1.go new file mode 100644 index 000000000..b562755e5 --- /dev/null +++ b/test/fixedbugs/bug282.dir/p1.go @@ -0,0 +1,10 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package p1 + +type T struct { + f func() "x" +} + diff --git a/test/fixedbugs/bug282.dir/p2.go b/test/fixedbugs/bug282.dir/p2.go new file mode 100644 index 000000000..3f8bd9d49 --- /dev/null +++ b/test/fixedbugs/bug282.dir/p2.go @@ -0,0 +1,8 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package p2 + +import _ "./p1" + diff --git a/test/fixedbugs/bug282.go b/test/fixedbugs/bug282.go new file mode 100644 index 000000000..463f21e94 --- /dev/null +++ b/test/fixedbugs/bug282.go @@ -0,0 +1,7 @@ +// $G $D/$F.dir/p1.go && $G $D/$F.dir/p2.go + +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +ignored -- cgit v1.2.3