From aa19484867eaa93a771e96438eda6947b5e69753 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 16 Oct 2014 19:36:13 +0000 Subject: [PATCH] Test change for treating a function receiver as any other parameter list. From-SVN: r216345 --- gcc/testsuite/go.test/test/fixedbugs/bug299.go | 10 ++++++---- 1 file 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 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() {} -- 2.30.2