From: Russ Cox Date: Thu, 25 Sep 2008 23:32:39 +0000 (-0700) Subject: 6g misparses negative constants in imports X-Git-Tag: weekly.2009-11-06~3120 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=eeeaf6b931eb1f9a98619dadff3c92e84e972c67;p=gostls13.git 6g misparses negative constants in imports R=r DELTA=8 (8 added, 0 deleted, 0 changed) OCL=15893 CL=15898 --- diff --git a/test/bugs/bug106.dir/bug0.go b/test/bugs/bug106.dir/bug0.go new file mode 100644 index 0000000000..2dfe157cfd --- /dev/null +++ b/test/bugs/bug106.dir/bug0.go @@ -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 index 0000000000..663a26dd25 --- /dev/null +++ b/test/bugs/bug106.dir/bug1.go @@ -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 index 0000000000..1874b20449 --- /dev/null +++ b/test/bugs/bug106.go @@ -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