Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
709e3a3f
Commit
709e3a3f
authored
Jun 06, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- tests for type forward declarations
SVN=121560
parent
5e77b0a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
test/bugs/bug041.go
test/bugs/bug041.go
+15
-0
test/bugs/bug042.go
test/bugs/bug042.go
+20
-0
test/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
...
@@ -262,6 +262,13 @@ BUG: compilation succeeds incorrectly
=========== bugs/bug040.go
=========== bugs/bug040.go
BUG: compilation succeeds incorrectly
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/bug000.go
=========== fixedbugs/bug005.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