]> Cypherpunks repositories - gostls13.git/commitdiff
bug209.go
authorRobert Griesemer <gri@golang.org>
Fri, 9 Oct 2009 22:28:09 +0000 (15:28 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 9 Oct 2009 22:28:09 +0000 (15:28 -0700)
R=rsc
DELTA=23  (22 added, 1 deleted, 0 changed)
OCL=35529
CL=35537

test/bugs/bug209.go [new file with mode: 0644]
test/golden.out

diff --git a/test/bugs/bug209.go b/test/bugs/bug209.go
new file mode 100644 (file)
index 0000000..978016a
--- /dev/null
@@ -0,0 +1,18 @@
+// $G $D/$F.go || echo BUG: should 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.
+
+package main
+
+func main() {
+       var buf [10]int;
+       for ; len(buf); {  // ERROR "bool"
+       }
+}
+
+/*
+uetli:/home/gri/go/test/bugs gri$ 6g bug209.go
+bug209.go:5: Bus error
+*/
index 42a1cec846f0a1c536efe9b2f4277394a731ea3a..4646081ae701ff455f684729d6b0a531835bea16 100644 (file)
@@ -39,7 +39,6 @@ hello, world
 7! = 5040
 8! = 40320
 9! = 362880
-10! = 3628800
 
 =========== ./printbig.go
 -9223372036854775808
@@ -167,3 +166,7 @@ BUG: errchk: bugs/bug193.go:14: missing expected error: 'shift'
 too many calls: 5
 panic PC=xxx
 BUG: bug196
+
+=========== bugs/bug209.go
+bugs/bug209.go:11: BUG: should compile
+Bus error               $G $D/$F.go