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
a432e09b
Commit
a432e09b
authored
Jun 13, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add nil test, with bug
SVN=122644
parent
343f5aa7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
test/golden.out
test/golden.out
+4
-0
test/nil.go
test/nil.go
+35
-0
No files found.
test/golden.out
View file @
a432e09b
...
@@ -26,6 +26,10 @@ BUG: known to succeed incorrectly
...
@@ -26,6 +26,10 @@ BUG: known to succeed incorrectly
=========== ./literal.go
=========== ./literal.go
=========== ./nil.go
nil.go:30: fatal error: naddr: const <T>{<i><int32>INT32;}
BUG: known to fail incorrectly
=========== ./sieve.go
=========== ./sieve.go
sieve.go:8: fatal error: walktype: switch 1 unknown op SEND l(8)
sieve.go:8: fatal error: walktype: switch 1 unknown op SEND l(8)
BUG: known to fail incorrectly
BUG: known to fail incorrectly
...
...
test/nil.go
0 → 100644
View file @
a432e09b
// $G $F.go && $L $F.$A && ./$A.out
// 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.
package
main
type
T
struct
{
i
int
}
type
IN
interface
{
}
func
main
()
{
var
i
*
int
;
var
f
*
float
;
var
s
*
string
;
var
m
*
map
[
float
]
*
int
;
var
c
*
chan
int
;
var
t
*
T
;
var
in
IN
;
var
ta
*
[]
T
;
i
=
nil
;
f
=
nil
;
s
=
nil
;
m
=
nil
;
c
=
nil
;
t
=
nil
;
i
=
nil
;
ta
=
new
([
1
]
T
);
ta
[
0
]
=
nil
;
//BUG (see bugs/bug045.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