]> Cypherpunks repositories - gostls13.git/commitdiff
- added another bug test ('len' shouldn't be a keyword)
authorRobert Griesemer <gri@golang.org>
Tue, 17 Jun 2008 23:22:02 +0000 (16:22 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 17 Jun 2008 23:22:02 +0000 (16:22 -0700)
SVN=123225

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

diff --git a/test/bugs/bug053.go b/test/bugs/bug053.go
new file mode 100644 (file)
index 0000000..fe6ca49
--- /dev/null
@@ -0,0 +1,11 @@
+// $G $D/$F.go && $L $F.$A && ./$A.out
+
+// 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 len int;  // len should not be a keyword - this doesn't compile
+}
index 631a74762bd8d4858e1827889d9a8faa7b1d45b8..13fb1d4ed51073c4ed8fbeda1ba582387ff5a89c 100644 (file)
@@ -267,6 +267,10 @@ BUG: infinite loop in error reporting
 =========== bugs/bug052.go
 BUG: incorrect code for division
 
+=========== bugs/bug053.go
+bugs/bug053.go:6: syntax error
+BUG: len should not be a keyword
+
 =========== fixedbugs/bug000.go
 
 =========== fixedbugs/bug001.go