summaryrefslogtreecommitdiff
path: root/test/fixedbugs
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-08-05 00:42:44 -0700
committerRuss Cox <rsc@golang.org>2009-08-05 00:42:44 -0700
commit30e73702a2dd55ae8a3db655ea55d3f10ac8a139 (patch)
tree8892ac9dfa9deb1c105e24209e662f966c2bfdef /test/fixedbugs
parentb87c44de63da4b9c1757ae49ff83b353da9f4a63 (diff)
downloadgo-30e73702a2dd55ae8a3db655ea55d3f10ac8a139.tar.gz
delay := processing
R=ken OCL=32772 CL=32772
Diffstat (limited to 'test/fixedbugs')
-rw-r--r--test/fixedbugs/bug030.go2
-rw-r--r--test/fixedbugs/bug035.go4
-rw-r--r--test/fixedbugs/bug103.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/test/fixedbugs/bug030.go b/test/fixedbugs/bug030.go
index 4f5b7946b..4ee65d003 100644
--- a/test/fixedbugs/bug030.go
+++ b/test/fixedbugs/bug030.go
@@ -8,5 +8,5 @@ package main
func main() {
var x int;
- x := 0; // BUG: redeclaration - should not compile
+ x := 0; // ERROR "declar|:="
}
diff --git a/test/fixedbugs/bug035.go b/test/fixedbugs/bug035.go
index 3c31fa553..461c0607a 100644
--- a/test/fixedbugs/bug035.go
+++ b/test/fixedbugs/bug035.go
@@ -7,7 +7,7 @@
package main
func f9(a int) (i int, f float) {
- i := 9; // ERROR "redecl"
- f := float(9); // ERROR "redecl"
+ i := 9; // ERROR "redecl|no new"
+ f := float(9); // ERROR "redecl|no new"
return i, f;
}
diff --git a/test/fixedbugs/bug103.go b/test/fixedbugs/bug103.go
index 6ac4e9a14..da212121c 100644
--- a/test/fixedbugs/bug103.go
+++ b/test/fixedbugs/bug103.go
@@ -9,6 +9,6 @@ package main
func f() /* no return type */ {}
func main() {
- x := f(); // ERROR "mismatch"
+ x := f(); // ERROR "mismatch|as value"
}