Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
fc184ef8
Commit
fc184ef8
authored
Jun 07, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- forward decl bug
SVN=121561
parent
709e3a3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
bug043.go
test/bugs/bug043.go
+21
-0
golden.out
test/golden.out
+5
-0
No files found.
test/bugs/bug043.go
0 → 100644
View file @
fc184ef8
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// $G $D/$F.go || echo BUG: compilation should succeed
// Forward declarations
package
main
func
f
(
x
int
)
;
// this works
func
f
(
x
int
)
{}
func
i
(
x
,
y
int
)
;
// this works
func
i
(
x
,
y
int
)
{}
func
g
(
x
int
)
float
;
// BUG this doesn't
func
g
(
x
int
)
float
{}
func
h
(
x
int
)
(
u
int
,
v
int
)
;
// BUG this doesn't
func
h
(
x
int
)
(
u
int
,
v
int
)
{}
test/golden.out
View file @
fc184ef8
...
...
@@ -269,6 +269,11 @@ BUG: compilation succeeds incorrectly
bugs/bug042.go:6: syntax error
BUG: compilation should succeed
=========== bugs/bug043.go
bugs/bug043.go:14: error in shape across assignment
bugs/bug043.go:17: error in shape across assignment
BUG: compilation should succeed
=========== fixedbugs/bug000.go
=========== fixedbugs/bug005.go
...
...
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