Test change for treating a function receiver as any other parameter list.
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 16 Oct 2014 19:36:13 +0000 (19:36 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 16 Oct 2014 19:36:13 +0000 (19:36 +0000)
From-SVN: r216345

gcc/testsuite/go.test/test/fixedbugs/bug299.go

index 9646723..1067fd1 100644 (file)
@@ -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() {}