diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-10-16 19:36:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-10-16 19:36:13 +0000 |
commit | aa19484867eaa93a771e96438eda6947b5e69753 (patch) | |
tree | eb1bee77d9b62fcea41d6f5947d6d523ca54e298 /gcc/testsuite/go.test | |
parent | ada24741761fd8b041c75634829acf1525b8d597 (diff) | |
download | gcc-aa19484867eaa93a771e96438eda6947b5e69753.zip gcc-aa19484867eaa93a771e96438eda6947b5e69753.tar.gz gcc-aa19484867eaa93a771e96438eda6947b5e69753.tar.bz2 |
Test change for treating a function receiver as any other parameter list.
From-SVN: r216345
Diffstat (limited to 'gcc/testsuite/go.test')
-rw-r--r-- | gcc/testsuite/go.test/test/fixedbugs/bug299.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/testsuite/go.test/test/fixedbugs/bug299.go b/gcc/testsuite/go.test/test/fixedbugs/bug299.go index 9646723..1067fd1 100644 --- a/gcc/testsuite/go.test/test/fixedbugs/bug299.go +++ b/gcc/testsuite/go.test/test/fixedbugs/bug299.go @@ -21,7 +21,9 @@ type T struct { // legal according to spec func (p T) m() {} -// not legal according to spec -func (p (T)) f() {} // ERROR "parenthesize|expected" -func (p *(T)) g() {} // ERROR "parenthesize|expected" -func (p (*T)) h() {} // ERROR "parenthesize|expected" +// now legal according to spec +func (p (T)) f() {} +func (p *(T)) g() {} +func (p (*T)) h() {} +func (p (*(T))) i() {} +func ((T),) j() {} |