diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-10-16 19:55:28 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-10-16 19:55:28 +0000 |
commit | 299874d5226450fc4f7277b45e40bcfc961385dd (patch) | |
tree | 13ad57b78a65a07e11bdc3acb1ceeaf27b591b0f /gcc/testsuite/go.test | |
parent | aa19484867eaa93a771e96438eda6947b5e69753 (diff) | |
download | gcc-299874d5226450fc4f7277b45e40bcfc961385dd.zip gcc-299874d5226450fc4f7277b45e40bcfc961385dd.tar.gz gcc-299874d5226450fc4f7277b45e40bcfc961385dd.tar.bz2 |
compiler: Method names must be non-blank.
Fixes issue 8078.
From-SVN: r216347
Diffstat (limited to 'gcc/testsuite/go.test')
-rw-r--r-- | gcc/testsuite/go.test/test/interface/explicit.go | 4 | ||||
-rw-r--r-- | gcc/testsuite/go.test/test/interface/fail.go | 14 |
2 files changed, 2 insertions, 16 deletions
diff --git a/gcc/testsuite/go.test/test/interface/explicit.go b/gcc/testsuite/go.test/test/interface/explicit.go index 36fa1a4..b10d02f 100644 --- a/gcc/testsuite/go.test/test/interface/explicit.go +++ b/gcc/testsuite/go.test/test/interface/explicit.go @@ -83,12 +83,12 @@ var m4 = M(jj) // ERROR "invalid|wrong type for M method" type B1 interface { - _() + _() // ERROR "methods must have a unique non-blank name" } type B2 interface { M() - _() + _() // ERROR "methods must have a unique non-blank name" } type T2 struct{} diff --git a/gcc/testsuite/go.test/test/interface/fail.go b/gcc/testsuite/go.test/test/interface/fail.go index 81eb6cb..d40a151 100644 --- a/gcc/testsuite/go.test/test/interface/fail.go +++ b/gcc/testsuite/go.test/test/interface/fail.go @@ -14,7 +14,6 @@ type I interface { func main() { shouldPanic(p1) - shouldPanic(p2) } func p1() { @@ -30,19 +29,6 @@ type S struct{} func (s *S) _() {} -type B interface { - _() -} - -func p2() { - var s *S - var b B - var e interface{} - e = s - b = e.(B) - _ = b -} - func shouldPanic(f func()) { defer func() { if recover() == nil { |