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
bb57a5bc
Commit
bb57a5bc
authored
Jun 16, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added two new small tests
SVN=123010
parent
9a58c9c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
0 deletions
+51
-0
bug047.go
test/bugs/bug047.go
+21
-0
bug048.go
test/bugs/bug048.go
+13
-0
golden.out
test/golden.out
+17
-0
No files found.
test/bugs/bug047.go
0 → 100644
View file @
bb57a5bc
// $G $D/$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
func
main
()
{
type
T
struct
{
s
string
;
f
float
;
};
var
s
string
=
"hello"
;
var
f
float
=
0.2
;
t
:=
T
(
s
,
f
);
type
M
map
[
int
]
int
;
m0
:=
M
(
7
,
8
);
}
test/bugs/bug048.go
0 → 100644
View file @
bb57a5bc
// $G $D/$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
func
main
()
{
type
M
map
[
int
]
int
;
m0
:=
M
(
7
,
8
);
// parses OK
m1
:=
M
(
7
:
8
);
// BUG: syntax error
}
test/golden.out
View file @
bb57a5bc
...
...
@@ -225,6 +225,23 @@ BUG: known to fail incorrectly
bugs/bug046.go:7: illegal <this> pointer
BUG: known to fail incorrectly
=========== bugs/bug047.go
bugs/bug047.go:13: illegal types for operand: CONV
(<T>{<s><string>*STRING;<f><float32>FLOAT32;})
bugs/bug047.go:16: illegal types for operand: CONV
(MAP[<int32>INT32]<int32>INT32)
bugs/bug047.go:13: illegal types for operand: CONV
(<T>{<s><string>*STRING;<f><float32>FLOAT32;})
bugs/bug047.go:16: illegal types for operand: CONV
(MAP[<int32>INT32]<int32>INT32)
BUG: known to fail incorrectly
=========== bugs/bug048.go
bugs/bug048.go:7: illegal types for operand: CONV
(MAP[<int32>INT32]<int32>INT32)
bugs/bug048.go:8: syntax error
BUG: known to fail incorrectly
=========== fixedbugs/bug000.go
=========== fixedbugs/bug001.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