bug132
R=ken
OCL=33792
CL=33803
diff --git a/test/bugs/bug132.go b/test/fixedbugs/bug132.go
similarity index 94%
rename from test/bugs/bug132.go
rename to test/fixedbugs/bug132.go
index 58bbe07..13a054e 100644
--- a/test/bugs/bug132.go
+++ b/test/fixedbugs/bug132.go
@@ -1,4 +1,4 @@
-// ! $G $D/$F.go || echo BUG: compilation succeeds incorrectly
+// errchk $G $D/$F.go
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
@@ -7,7 +7,7 @@
package main
type T struct {
- x, x int // this should be a compile-time error
+ x, x int // ERROR "duplicate"
}
/*
@@ -18,7 +18,7 @@
/* Condensed e-mail thread:
----------- Russ Cox
+---------- Russ Cox
I don't think this is an error as long as you don't refer to x. I like the fact that you could name
multiple elements in the struct "pad".
diff --git a/test/golden.out b/test/golden.out
index f3d5967..7aac0e1 100644
--- a/test/golden.out
+++ b/test/golden.out
@@ -141,9 +141,6 @@
== bugs/
-=========== bugs/bug132.go
-BUG: compilation succeeds incorrectly
-
=========== bugs/bug136.go
BUG: errchk: command succeeded unexpectedly