diff options
Diffstat (limited to 'test/func4.go')
-rw-r--r-- | test/func4.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/func4.go b/test/func4.go index 2a1a932de..85f1e4b81 100644 --- a/test/func4.go +++ b/test/func4.go @@ -1,9 +1,12 @@ -// errchk $G $D/$F.go +// errorcheck // Copyright 2009 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. +// Verify that it is illegal to take the address of a function. +// Does not compile. + package main var notmain func() |