diff mbox

Go testsuite patch committed: fix test

Message ID mcrsiin7qog.fsf@iant-glaptop.roam.corp.google.com
State New
Headers show

Commit Message

Ian Lance Taylor Oct. 16, 2014, 7:36 p.m. UTC
I forgot to commit this testsuite patch that corresponds to the recent
patch for receiver parameters
(https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01591.html).  Now
committed to mainline.

Ian
diff mbox

Patch

Index: test/fixedbugs/bug299.go
===================================================================
--- test/fixedbugs/bug299.go	(revision 216257)
+++ test/fixedbugs/bug299.go	(working copy)
@@ -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() {}