1
0
mirror of https://github.com/golang/go synced 2024-11-25 13:57:57 -07:00

- added another bug test ('len' shouldn't be a keyword)

SVN=123225
This commit is contained in:
Robert Griesemer 2008-06-17 16:22:02 -07:00
parent e5373f27d0
commit 9615542d10
2 changed files with 15 additions and 0 deletions

11
test/bugs/bug053.go Normal file
View File

@ -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
}

View 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