summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-05-24 16:55:23 -0700
committerRuss Cox <rsc@golang.org>2010-05-24 16:55:23 -0700
commit1a9c46be99cf7d3c95a61bb78c83ebc92afc14a5 (patch)
treed500e2f571ff1af803b536795e5dd899c2ce694c /test
parent3574911597e5f2aec3e8efa653d361eb6d500fec (diff)
downloadgolang-1a9c46be99cf7d3c95a61bb78c83ebc92afc14a5.tar.gz
gc: fix shift/reduce conflict in go.y export syntax
Fixes issue 771. R=ken2 CC=golang-dev http://codereview.appspot.com/1267042
Diffstat (limited to 'test')
-rw-r--r--test/fixedbugs/bug282.dir/p1.go10
-rw-r--r--test/fixedbugs/bug282.dir/p2.go8
-rw-r--r--test/fixedbugs/bug282.go7
3 files changed, 25 insertions, 0 deletions
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