]> Cypherpunks repositories - gostls13.git/commitdiff
6g misparses negative constants in imports
authorRuss Cox <rsc@golang.org>
Thu, 25 Sep 2008 23:32:39 +0000 (16:32 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 25 Sep 2008 23:32:39 +0000 (16:32 -0700)
R=r
DELTA=8  (8 added, 0 deleted, 0 changed)
OCL=15893
CL=15898

test/bugs/bug106.dir/bug0.go [new file with mode: 0644]
test/bugs/bug106.dir/bug1.go [new file with mode: 0644]
test/bugs/bug106.go [new file with mode: 0644]

diff --git a/test/bugs/bug106.dir/bug0.go b/test/bugs/bug106.dir/bug0.go
new file mode 100644 (file)
index 0000000..2dfe157
--- /dev/null
@@ -0,0 +1,6 @@
+// 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.
+
+package bug0
+export const A = -1
diff --git a/test/bugs/bug106.dir/bug1.go b/test/bugs/bug106.dir/bug1.go
new file mode 100644 (file)
index 0000000..663a26d
--- /dev/null
@@ -0,0 +1,7 @@
+// 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.
+
+package bug1
+import "bug0"
+
diff --git a/test/bugs/bug106.go b/test/bugs/bug106.go
new file mode 100644 (file)
index 0000000..1874b20
--- /dev/null
@@ -0,0 +1,7 @@
+// $G $D/$F.dir/bug0.go && $G $D/$F.dir/bug1.go || echo BUG: failed to compile
+
+// 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