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
be6556f7
Commit
be6556f7
authored
Jun 26, 2013
by
Rémy Oudompheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: match gccgo error strings.
R=golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/10468043
parent
1761e250
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
test/const6.go
test/const6.go
+6
-6
test/fixedbugs/issue4085a.go
test/fixedbugs/issue4085a.go
+5
-5
No files found.
test/const6.go
View file @
be6556f7
...
...
@@ -19,12 +19,12 @@ var (
c4
mybool
=
c2
==
(
1
<
2
)
c5
mybool
=
1
<
2
c6
mybool1
=
x
<
y
c7
=
c1
==
c2
// ERROR "mismatched types"
c8
=
c2
==
c6
// ERROR "mismatched types"
c9
=
c1
==
c6
// ERROR "mismatched types"
c7
=
c1
==
c2
// ERROR "mismatched types
|incompatible types
"
c8
=
c2
==
c6
// ERROR "mismatched types
|incompatible types
"
c9
=
c1
==
c6
// ERROR "mismatched types
|incompatible types
"
_
=
c2
&&
(
x
<
y
)
_
=
c2
&&
(
1
<
2
)
_
=
c1
&&
c2
// ERROR "mismatched types"
_
=
c2
&&
c6
// ERROR "mismatched types"
_
=
c1
&&
c6
// ERROR "mismatched types"
_
=
c1
&&
c2
// ERROR "mismatched types
|incompatible types
"
_
=
c2
&&
c6
// ERROR "mismatched types
|incompatible types
"
_
=
c1
&&
c6
// ERROR "mismatched types
|incompatible types
"
)
test/fixedbugs/issue4085a.go
View file @
be6556f7
...
...
@@ -9,10 +9,10 @@ package main
type
T
[]
int
func
main
()
{
_
=
make
(
T
,
-
1
)
// ERROR "negative"
_
=
make
(
T
,
0.5
)
// ERROR "constant 0.5 truncated to integer
"
_
=
make
(
T
,
1.0
)
// ok
_
=
make
(
T
,
1
<<
63
)
// ERROR "len argument too large"
_
=
make
(
T
,
0
,
-
1
)
// ERROR "negative cap"
_
=
make
(
T
,
-
1
)
// ERROR "negative"
_
=
make
(
T
,
0.5
)
// ERROR "constant 0.5 truncated to integer|non-integer len argument
"
_
=
make
(
T
,
1.0
)
// ok
_
=
make
(
T
,
1
<<
63
)
// ERROR "len argument too large"
_
=
make
(
T
,
0
,
-
1
)
// ERROR "negative cap"
_
=
make
(
T
,
10
,
0
)
// ERROR "len larger than cap"
}
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