From: Ian Lance Taylor 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: https://git.libre-soc.org/?a=commitdiff_plain;h=aa19484867eaa93a771e96438eda6947b5e69753;p=gcc.git Test change for treating a function receiver as any other parameter list. From-SVN: r216345 --- diff --git a/gcc/testsuite/go.test/test/fixedbugs/bug299.go b/gcc/testsuite/go.test/test/fixedbugs/bug299.go index 9646723bfda..1067fd1478d 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() {}