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
60d4e30d
Commit
60d4e30d
authored
Dec 10, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make test/fixedbugs save for optional semis
R=rsc
https://golang.org/cl/173045
parent
4d44d6a3
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
17 deletions
+13
-17
test/fixedbugs/bug036.go
test/fixedbugs/bug036.go
+1
-2
test/fixedbugs/bug055.go
test/fixedbugs/bug055.go
+1
-1
test/fixedbugs/bug064.go
test/fixedbugs/bug064.go
+1
-2
test/fixedbugs/bug076.go
test/fixedbugs/bug076.go
+2
-2
test/fixedbugs/bug089.go
test/fixedbugs/bug089.go
+2
-2
test/fixedbugs/bug194.go
test/fixedbugs/bug194.go
+3
-3
test/fixedbugs/bug203.go
test/fixedbugs/bug203.go
+2
-4
test/import1.go
test/import1.go
+1
-1
No files found.
test/fixedbugs/bug036.go
View file @
60d4e30d
...
...
@@ -7,8 +7,7 @@
package
main
func
main
()
{
func
main
()
{
s
:=
float
(
0
);
s
:=
float
(
0
);
// BUG redeclaration
}
test/fixedbugs/bug055.go
View file @
60d4e30d
...
...
@@ -18,5 +18,5 @@ func main() {
type
s2
int
;
var
k
=
func
(
a
int
)
int
{
return
a
+
1
}(
3
);
_
,
_
=
j
,
k
;
ro
:
ro
:
;
}
test/fixedbugs/bug064.go
View file @
60d4e30d
...
...
@@ -12,8 +12,7 @@ swap(x, y int) (u, v int) {
}
func
main
()
{
main
()
{
a
:=
1
;
b
:=
2
;
a
,
b
=
swap
(
swap
(
a
,
b
));
...
...
test/fixedbugs/bug076.go
View file @
60d4e30d
...
...
@@ -7,12 +7,12 @@
package
main
func
f
()
{
exit
:
exit
:
;
}
func
main
()
{
exit
:
// this should be legal (labels not properly scoped?)
exit
:
;
// this should be legal (labels not properly scoped?)
}
/*
...
...
test/fixedbugs/bug089.go
View file @
60d4e30d
...
...
@@ -15,7 +15,7 @@ var i1 I1;
var
i2
I2
;
func
main
()
{
main
()
{
i2
=
e
()
.
(
I2
);
// bug089.go:16: fatal error: agen_inter i2i
}
test/fixedbugs/bug194.go
View file @
60d4e30d
...
...
@@ -17,9 +17,9 @@ var v8 = T5{f:11}
var
pf
func
(
T1
)
func
main
()
{
if
v1
!=
1
||
v2
.
f
!=
2
||
v3
[
0
]
!=
3
||
v3
[
1
]
!=
4
||
v4
[
0
]
!=
5
||
v4
[
1
]
!=
6
||
v5
[
0
]
!=
7
||
v5
[
1
]
!=
8
||
v6
.
f
!=
9
||
v7
[
0
]
!=
10
||
v8
[
0
]
!=
11
{
if
v1
!=
1
||
v2
.
f
!=
2
||
v3
[
0
]
!=
3
||
v3
[
1
]
!=
4
||
v4
[
0
]
!=
5
||
v4
[
1
]
!=
6
||
v5
[
0
]
!=
7
||
v5
[
1
]
!=
8
||
v6
.
f
!=
9
||
v7
[
0
]
!=
10
||
v8
[
0
]
!=
11
{
panic
()
}
}
...
...
test/fixedbugs/bug203.go
View file @
60d4e30d
...
...
@@ -9,12 +9,10 @@ package main
var
s
[
8
]
string
func
init
()
{
init
()
{
s
=
[
...
]
string
{
"now"
,
"is"
,
"the"
,
"time"
,
"to"
,
"fix"
,
"this"
,
"bug"
}
}
func
main
()
{
main
()
{
}
test/import1.go
View file @
60d4e30d
...
...
@@ -14,4 +14,4 @@ import bufio "os" // ERROR "redeclared|redefinition|incompatible"
import
(
"fmt"
;
// GCCGO_ERROR "previous"
fmt
"math"
;
// ERROR "redeclared|redefinition|incompatible"
)
\ No newline at end of file
)
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