aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/errors/invalidmain.go
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/errors/invalidmain.go')
-rw-r--r--testdata/errors/invalidmain.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/testdata/errors/invalidmain.go b/testdata/errors/invalidmain.go
new file mode 100644
index 000000000..a86e32c8d
--- /dev/null
+++ b/testdata/errors/invalidmain.go
@@ -0,0 +1,6 @@
+// some comment to move the first line
+
+package foobar
+
+// ERROR: # command-line-arguments
+// ERROR: invalidmain.go:3:9: expected main package to have name "main", not "foobar"