From: Robert Griesemer Date: Tue, 17 Jun 2008 23:22:02 +0000 (-0700) Subject: - added another bug test ('len' shouldn't be a keyword) X-Git-Tag: weekly.2009-11-06~3667 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9615542d102516a70717bdcc08cb563a9644dbfd;p=gostls13.git - added another bug test ('len' shouldn't be a keyword) SVN=123225 --- diff --git a/test/bugs/bug053.go b/test/bugs/bug053.go new file mode 100644 index 0000000000..fe6ca49999 --- /dev/null +++ b/test/bugs/bug053.go @@ -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 +} diff --git a/test/golden.out b/test/golden.out index 631a74762b..13fb1d4ed5 100644 --- a/test/golden.out +++ b/test/golden.out @@ -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