From: ian Date: Thu, 16 Oct 2014 19:36:13 +0000 (+0000) Subject: Test change for treating a function receiver as any other parameter list. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=139b631f71427b579032eb882063bf70657e9e9b;p=thirdparty%2Fgcc.git Test change for treating a function receiver as any other parameter list. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216345 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/go.test/test/fixedbugs/bug299.go b/gcc/testsuite/go.test/test/fixedbugs/bug299.go index 9646723bfda9..1067fd1478d2 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() {}