summaryrefslogtreecommitdiff
path: root/test/syntax/topexpr.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/syntax/topexpr.go')
-rw-r--r--test/syntax/topexpr.go20
1 files changed, 0 insertions, 20 deletions
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"
-