summaryrefslogtreecommitdiff
path: root/test/func4.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/func4.go')
-rw-r--r--test/func4.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/func4.go b/test/func4.go
index 69ce56a19..2a1a932de 100644
--- a/test/func4.go
+++ b/test/func4.go
@@ -11,4 +11,5 @@ var notmain func()
func main() {
var x = &main // ERROR "address of|invalid"
main = notmain // ERROR "assign to|invalid"
+ _ = x
}