Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
aa194848
Commit
aa194848
authored
Oct 16, 2014
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test change for treating a function receiver as any other parameter list.
From-SVN: r216345
parent
ada24741
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
gcc/testsuite/go.test/test/fixedbugs/bug299.go
+6
-4
No files found.
gcc/testsuite/go.test/test/fixedbugs/bug299.go
View file @
aa194848
...
@@ -21,7 +21,9 @@ type T struct {
...
@@ -21,7 +21,9 @@ type T struct {
// legal according to spec
// legal according to spec
func
(
p
T
)
m
()
{}
func
(
p
T
)
m
()
{}
// not legal according to spec
// now legal according to spec
func
(
p
(
T
))
f
()
{}
// ERROR "parenthesize|expected"
func
(
p
(
T
))
f
()
{}
func
(
p
*
(
T
))
g
()
{}
// ERROR "parenthesize|expected"
func
(
p
*
(
T
))
g
()
{}
func
(
p
(
*
T
))
h
()
{}
// ERROR "parenthesize|expected"
func
(
p
(
*
T
))
h
()
{}
func
(
p
(
*
(
T
)))
i
()
{}
func
((
T
),)
j
()
{}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment