aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/check_test.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2017-11-22 09:43:52 -0800
committerMatthew Dempsky <mdempsky@google.com>2017-11-22 19:14:31 +0000
commit3c375f1b7ed54471c5323420a15b9bfe162a2527 (patch)
tree0af2b20c9d7643aaa5c43a735e1dbf0d8d012e4f /src/go/types/check_test.go
parent5e423ed8553b8eec01273597f7eb89ce73f47b86 (diff)
downloadgo-3c375f1b7ed54471c5323420a15b9bfe162a2527.tar.gz
go-3c375f1b7ed54471c5323420a15b9bfe162a2527.zip
cmd/compile, go/types: error if main.main is not a function
Fixes #21256. Change-Id: I3af4c76e734c09d07f15525b793a544a7279b906 Reviewed-on: https://go-review.googlesource.com/79435 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/go/types/check_test.go')
-rw-r--r--src/go/types/check_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/go/types/check_test.go b/src/go/types/check_test.go
index 24b3365717..97e224f870 100644
--- a/src/go/types/check_test.go
+++ b/src/go/types/check_test.go
@@ -69,6 +69,7 @@ var tests = [][]string{
{"testdata/decls2a.src", "testdata/decls2b.src"},
{"testdata/decls3.src"},
{"testdata/decls4.src"},
+ {"testdata/decls5.src"},
{"testdata/const0.src"},
{"testdata/const1.src"},
{"testdata/constdecl.src"},