aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/testdata/main.src
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/types/testdata/main.src')
-rw-r--r--src/go/types/testdata/main.src9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/go/types/testdata/main.src b/src/go/types/testdata/main.src
new file mode 100644
index 0000000000..f892938d4a
--- /dev/null
+++ b/src/go/types/testdata/main.src
@@ -0,0 +1,9 @@
+// Copyright 2020 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()
+func /* ERROR "no arguments and no return values" */ main /* ERROR redeclared */ (int)
+func /* ERROR "no arguments and no return values" */ main /* ERROR redeclared */ () int