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
709e3a3f
Commit
709e3a3f
authored
Jun 07, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- tests for type forward declarations
SVN=121560
parent
5e77b0a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
bug041.go
test/bugs/bug041.go
+15
-0
bug042.go
test/bugs/bug042.go
+20
-0
golden.out
test/golden.out
+7
-0
No files found.
test/bugs/bug041.go
0 → 100644
View file @
709e3a3f
// 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 succeeds incorrectly
package
main
type
S
struct
{
p
*
T
// BUG T never declared
}
func
main
()
{
var
s
S
;
}
test/bugs/bug042.go
0 → 100644
View file @
709e3a3f
// 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
package
main
type
T
// BUG forward declaration should be accepted
type
S
struct
{
p
*
T
}
type
T
struct
{
p
*
S
}
func
main
()
{
var
s
S
;
}
test/golden.out
View file @
709e3a3f
...
...
@@ -262,6 +262,13 @@ BUG: compilation succeeds incorrectly
=========== bugs/bug040.go
BUG: compilation succeeds incorrectly
=========== bugs/bug041.go
BUG: compilation succeeds incorrectly
=========== bugs/bug042.go
bugs/bug042.go:6: syntax error
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