diff options
Diffstat (limited to 'gcc/testsuite/go.test/test/method2.go')
-rw-r--r-- | gcc/testsuite/go.test/test/method2.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/testsuite/go.test/test/method2.go b/gcc/testsuite/go.test/test/method2.go index 039779efb..b63da10dc 100644 --- a/gcc/testsuite/go.test/test/method2.go +++ b/gcc/testsuite/go.test/test/method2.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 pointers and interface types cannot be method receivers. +// Does not compile. + package main type T struct { |