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
a947d0d0
Commit
a947d0d0
authored
Dec 29, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case for issue 471
R=iant CC=golang-dev
https://golang.org/cl/183084
parent
a58b69e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
bug238.go
test/bugs/bug238.go
+19
-0
golden.out
test/golden.out
+3
-0
No files found.
test/bugs/bug238.go
0 → 100644
View file @
a947d0d0
// errchk $G -e $D/$F.go
// 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.
// Test case for issue 471. This file shouldn't compile.
package
main
const
a
*
int
=
1
// ERROR "wrong|incompatible"
const
b
[
2
]
int
=
2
// ERROR "wrong|incompatible"
const
c
map
[
int
]
int
=
3
// ERROR "wrong|incompatible"
const
d
chan
int
=
4
// ERROR "wrong|incompatible"
const
e
func
()
=
5
// ERROR "wrong|incompatible"
const
f
struct
{}
=
6
// ERROR "wrong|incompatible"
const
g
interface
{}
=
7
// ERROR "wrong|incompatible"
func
main
()
{
println
(
a
,
b
,
c
,
d
,
e
,
f
,
g
)
}
test/golden.out
View file @
a947d0d0
...
...
@@ -148,3 +148,6 @@ panic PC=xxx
=========== bugs/bug219.go
bugs/bug219.go:16: syntax error near if
BUG: bug219
=========== bugs/bug238.go
BUG: errchk: command succeeded unexpectedly
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