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
004dd3d7
Commit
004dd3d7
authored
Jun 20, 2013
by
Rémy Oudompheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: match gccgo error messages
R=iant, golang-dev CC=golang-dev
https://golang.org/cl/10365052
parent
2f70ac19
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
11 deletions
+11
-11
test/fixedbugs/bug205.go
test/fixedbugs/bug205.go
+3
-3
test/fixedbugs/bug459.go
test/fixedbugs/bug459.go
+1
-1
test/fixedbugs/issue3783.go
test/fixedbugs/issue3783.go
+1
-1
test/fixedbugs/issue3925.go
test/fixedbugs/issue3925.go
+2
-2
test/fixedbugs/issue4097.go
test/fixedbugs/issue4097.go
+1
-1
test/fixedbugs/issue4458.go
test/fixedbugs/issue4458.go
+1
-1
test/fixedbugs/issue4545.go
test/fixedbugs/issue4545.go
+2
-2
No files found.
test/fixedbugs/bug205.go
View file @
004dd3d7
...
...
@@ -11,8 +11,8 @@ var s string;
var
m
map
[
string
]
int
;
func
main
()
{
println
(
t
[
"hi"
]);
// ERROR "non-integer slice index
"
println
(
s
[
"hi"
]);
// ERROR "non-integer string index
"
println
(
m
[
0
]);
// ERROR "as type string in map index
"
println
(
t
[
"hi"
]);
// ERROR "non-integer slice index|must be integer
"
println
(
s
[
"hi"
]);
// ERROR "non-integer string index|must be integer
"
println
(
m
[
0
]);
// ERROR "cannot use.*as type string
"
}
test/fixedbugs/bug459.go
View file @
004dd3d7
...
...
@@ -9,7 +9,7 @@
package
flag
var
commandLine
=
NewFlagSet
()
// ERROR "loop"
var
commandLine
=
NewFlagSet
()
// ERROR "loop
|depends upon itself
"
type
FlagSet
struct
{
}
...
...
test/fixedbugs/issue3783.go
View file @
004dd3d7
...
...
@@ -8,5 +8,5 @@ package foo
var
i
int
func
(
*
i
)
bar
()
// ERROR "not a type"
func
(
*
i
)
bar
()
// ERROR "not a type
|expected type
"
test/fixedbugs/issue3925.go
View file @
004dd3d7
...
...
@@ -12,12 +12,12 @@ package foo
var
_
=
map
[
string
]
string
{
"1"
:
"2"
,
"3"
,
"4"
,
// ERROR "missing key"
"3"
,
"4"
,
// ERROR "missing key
|must have keys
"
}
var
_
=
[]
string
{
"foo"
,
"bar"
,
20
,
// ERROR "cannot use"
20
,
// ERROR "cannot use
|incompatible type
"
}
test/fixedbugs/issue4097.go
View file @
004dd3d7
...
...
@@ -7,5 +7,5 @@
package
foo
var
s
[][
10
]
int
const
m
=
len
(
s
[
len
(
s
)
-
1
])
// ERROR "is not a constant"
const
m
=
len
(
s
[
len
(
s
)
-
1
])
// ERROR "is not a constant
|is not constant
"
test/fixedbugs/issue4458.go
View file @
004dd3d7
...
...
@@ -16,5 +16,5 @@ func (T) foo() {}
func
main
()
{
av
:=
T
{}
pav
:=
&
av
(
**
T
)
.
foo
(
&
pav
)
// ERROR "no method foo"
(
**
T
)
.
foo
(
&
pav
)
// ERROR "no method foo
|requires named type or pointer to named
"
}
test/fixedbugs/issue4545.go
View file @
004dd3d7
...
...
@@ -13,7 +13,7 @@ import "fmt"
func
main
()
{
var
s
uint
fmt
.
Println
(
1.0
+
1
<<
s
)
// ERROR "invalid operation"
x
:=
1.0
+
1
<<
s
// ERROR "invalid operation"
fmt
.
Println
(
1.0
+
1
<<
s
)
// ERROR "invalid operation
|non-integer type
"
x
:=
1.0
+
1
<<
s
// ERROR "invalid operation
|non-integer type
"
_
=
x
}
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