From eeeaf6b931eb1f9a98619dadff3c92e84e972c67 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 25 Sep 2008 16:32:39 -0700 Subject: [PATCH] 6g misparses negative constants in imports R=r DELTA=8 (8 added, 0 deleted, 0 changed) OCL=15893 CL=15898 --- test/bugs/bug106.dir/bug0.go | 6 ++++++ test/bugs/bug106.dir/bug1.go | 7 +++++++ test/bugs/bug106.go | 7 +++++++ 3 files changed, 20 insertions(+) create mode 100644 test/bugs/bug106.dir/bug0.go create mode 100644 test/bugs/bug106.dir/bug1.go create mode 100644 test/bugs/bug106.go 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 -- 2.50.0