6g misparses negative constants in imports

R=r
DELTA=8  (8 added, 0 deleted, 0 changed)
OCL=15893
CL=15898
This commit is contained in:
Russ Cox 2008-09-25 16:32:39 -07:00
parent b6429768c6
commit eeeaf6b931
3 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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"

7
test/bugs/bug106.go Normal file
View File

@ -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