projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ada2474
)
Test change for treating a function receiver as any other parameter list.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Thu, 16 Oct 2014 19:36:13 +0000
(19:36 +0000)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/gcc/testsuite/go.test/test/fixedbugs/bug299.go
b/gcc/testsuite/go.test/test/fixedbugs/bug299.go
index 9646723bfda9f14571d475ad5d8a2a750b08d854..1067fd1478d241b47238dc0b16eb25c5439c4261 100644
(file)
--- 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() {}