From 80f18fc933cf3f3e829c5455a1023d69f7b86e52 Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Tue, 13 Sep 2011 13:11:55 +0200 Subject: Imported Upstream version 60 --- test/syntax/topexpr.go | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 test/syntax/topexpr.go (limited to 'test/syntax/topexpr.go') diff --git a/test/syntax/topexpr.go b/test/syntax/topexpr.go deleted file mode 100644 index 93d86fbe9..000000000 --- a/test/syntax/topexpr.go +++ /dev/null @@ -1,20 +0,0 @@ -// errchk $G -e $D/$F.go - -// Copyright 2010 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 - -fmt.Printf("hello") // ERROR "non-declaration statement outside function body|expected declaration" - -func main() { -} - -x++ // ERROR "non-declaration statement outside function body|expected declaration" - -func init() { -} - -x,y := 1, 2 // ERROR "non-declaration statement outside function body|expected declaration" - -- cgit v1.2.3