summaryrefslogtreecommitdiff
path: root/test/syntax/forvar.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/syntax/forvar.go')
-rw-r--r--test/syntax/forvar.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/syntax/forvar.go b/test/syntax/forvar.go
deleted file mode 100644
index f12ce55ca..000000000
--- a/test/syntax/forvar.go
+++ /dev/null
@@ -1,10 +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
-
-func main() {
- for var x = 0; x < 10; x++ { // ERROR "var declaration not allowed in for initializer"