From: Russ Cox Date: Mon, 22 Sep 2008 23:16:22 +0000 (-0700) Subject: re-fix bug067, update golden.out X-Git-Tag: weekly.2009-11-06~3150 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=173ca8a2d088992f5bde75f04af9358b25dbadd9;p=gostls13.git re-fix bug067, update golden.out R=r DELTA=9 (4 added, 3 deleted, 2 changed) OCL=15655 CL=15655 --- diff --git a/test/fixedbugs/bug067.go b/test/fixedbugs/bug067.go index a7efbcf164..451ebbbf30 100644 --- a/test/fixedbugs/bug067.go +++ b/test/fixedbugs/bug067.go @@ -6,6 +6,10 @@ package main +var c *chan int + func main() { - go func() { print("ok\n") } (); + c = new(chan int) + go func() { print("ok\n"); c <- 0 } (); + <-c } diff --git a/test/golden.out b/test/golden.out index ceac2404f6..f82bc7a44e 100644 --- a/test/golden.out +++ b/test/golden.out @@ -1,7 +1,4 @@ -=========== ./dialgoogle.go -/Users/r/go/pkg/net.a:4 dialgoogle.go:5: os is becoming a package behind your back - =========== ./helloworld.go hello, world @@ -250,7 +247,7 @@ fixedbugs/bug073.go:9: illegal types for operand: RSH (INT32) =========== fixedbugs/bug081.go -fixedbugs/bug081.go:5: x is var, not type +fixedbugs/bug081.go:5: no type x =========== fixedbugs/bug086.go fixedbugs/bug086.go:5: function ends without a return statement