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
e1e53e35
Commit
e1e53e35
authored
Sep 03, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tests
add commands to two new ken tests R=gri OCL=14751 CL=14751
parent
1423bf3d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
26 deletions
+37
-26
test/fixedbugs/bug027.go
test/fixedbugs/bug027.go
+1
-1
test/fixedbugs/bug072.go
test/fixedbugs/bug072.go
+0
-0
test/fixedbugs/bug076.go
test/fixedbugs/bug076.go
+0
-0
test/golden.out
test/golden.out
+32
-19
test/ken/array.go
test/ken/array.go
+4
-5
test/ken/shift.go
test/ken/shift.go
+0
-1
No files found.
test/bugs/bug027.go
→
test/
fixed
bugs/bug027.go
View file @
e1e53e35
...
@@ -51,7 +51,7 @@ func main() {
...
@@ -51,7 +51,7 @@ func main() {
print
(
i
,
" "
,
x
.
val
,
"
\n
"
);
// prints correct list
print
(
i
,
" "
,
x
.
val
,
"
\n
"
);
// prints correct list
}
}
for
i
:=
0
;
i
<
v
.
nelem
;
i
++
{
for
i
:=
0
;
i
<
v
.
nelem
;
i
++
{
print
(
i
,
" "
,
I
(
v
.
At
(
i
))
.
val
,
"
\n
"
);
// always prints 5 - bad code - should be *I()
print
(
i
,
" "
,
v
.
At
(
i
)
.
(
*
I
)
.
val
,
"
\n
"
);
}
}
}
}
/*
/*
...
...
test/bugs/bug072.go
→
test/
fixed
bugs/bug072.go
View file @
e1e53e35
File moved
test/bugs/bug076.go
→
test/
fixed
bugs/bug076.go
View file @
e1e53e35
File moved
test/golden.out
View file @
e1e53e35
...
@@ -34,6 +34,14 @@ Hello World!
...
@@ -34,6 +34,14 @@ Hello World!
=========== ken/rob2.go
=========== ken/rob2.go
(defn foo (add 12 34))
(defn foo (add 12 34))
=========== ken/shift.go
ken/shift.go:50: stupid shift: 1025
ken/shift.go:51: stupid shift: 1025
ken/shift.go:57: stupid shift: 1025
ken/shift.go:58: stupid shift: 1025
ken/shift.go:64: stupid shift: 1025
ken/shift.go:65: stupid shift: 1025
=========== ken/simpprint.go
=========== ken/simpprint.go
hello world
hello world
...
@@ -54,15 +62,6 @@ BUG should compile
...
@@ -54,15 +62,6 @@ BUG should compile
sys·printstring: main·sigs_I: not defined
sys·printstring: main·sigs_I: not defined
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== bugs/bug027.go
bugs/bug027.go:50: illegal types for operand: CONV
(<Element>I{})
(<I>{<val><int32>INT32;})
bugs/bug027.go:50: illegal types for operand: CONV
(<Element>I{})
(<I>{<val><int32>INT32;})
BUG: known to fail incorrectly
=========== bugs/bug029.go
=========== bugs/bug029.go
BUG: known to succeed incorrectly
BUG: known to succeed incorrectly
...
@@ -73,12 +72,8 @@ BUG: compilation succeeds incorrectly
...
@@ -73,12 +72,8 @@ BUG: compilation succeeds incorrectly
BUG: compilation succeeds incorrectly
BUG: compilation succeeds incorrectly
=========== bugs/bug047.go
=========== 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
bugs/bug047.go:16: illegal types for operand: CONV
(MAP[<int32>INT32]<int32>INT32)
(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
bugs/bug047.go:16: illegal types for operand: CONV
(MAP[<int32>INT32]<int32>INT32)
(MAP[<int32>INT32]<int32>INT32)
BUG: known to fail incorrectly
BUG: known to fail incorrectly
...
@@ -108,14 +103,12 @@ BUG: compilation should succeed
...
@@ -108,14 +103,12 @@ BUG: compilation should succeed
bugs/bug068.go:6: unknown escape sequence: '
bugs/bug068.go:6: unknown escape sequence: '
BUG: compilation should succeed
BUG: compilation should succeed
=========== bugs/bug072.go
bugs/bug072.go:6: bug: undefined
BUG: compiler crashes after error message - Bus error
Bus error $G $D/$F.go
=========== bugs/bug074.go
=========== bugs/bug074.go
bugs/bug074.go:6: illegal types for operand: CONV
(<string>*STRING)
bugs/bug074.go:6: illegal types for operand: CONV
(<string>*STRING)
BUG: compiler crashes - Bus error
BUG: compiler crashes - Bus error
Bus error $G $D/$F.go
=========== bugs/bug075.go
=========== bugs/bug075.go
bugs/bug075.go:11: bad shape across assignment - cr=1 cl=2
bugs/bug075.go:11: bad shape across assignment - cr=1 cl=2
...
@@ -180,6 +173,19 @@ fixedbugs/bug016.go:7: overflow converting constant to <uint32>UINT32
...
@@ -180,6 +173,19 @@ fixedbugs/bug016.go:7: overflow converting constant to <uint32>UINT32
=========== fixedbugs/bug025.go
=========== fixedbugs/bug025.go
fixedbugs/bug025.go:7: variable exported but not defined: Foo
fixedbugs/bug025.go:7: variable exported but not defined: Foo
=========== fixedbugs/bug027.go
hi
0 44444
1 3333
2 222
3 11
4 0
0 44444
1 3333
2 222
3 11
4 0
=========== fixedbugs/bug035.go
=========== fixedbugs/bug035.go
fixedbugs/bug035.go:6: var i redeclared in this block
fixedbugs/bug035.go:6: var i redeclared in this block
previous declaration at fixedbugs/bug035.go:5
previous declaration at fixedbugs/bug035.go:5
...
@@ -210,6 +216,13 @@ inner loop top i 0
...
@@ -210,6 +216,13 @@ inner loop top i 0
do break
do break
broke
broke
=========== fixedbugs/bug072.go
fixedbugs/bug072.go:6: bug: undefined
fixedbugs/bug072.go:6: illegal types for operand: CONV
(<string>*STRING)
fixedbugs/bug072.go:6: illegal types for operand: CONV
(<string>*STRING)
=========== fixedbugs/bug073.go
=========== fixedbugs/bug073.go
fixedbugs/bug073.go:8: illegal types for operand: LSH
fixedbugs/bug073.go:8: illegal types for operand: LSH
(<int32>INT32)
(<int32>INT32)
...
...
test/ken/array.go
View file @
e1e53e35
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
package
main
package
main
export
func
export
func
...
@@ -147,10 +146,10 @@ testfdfault()
...
@@ -147,10 +146,10 @@ testfdfault()
func
func
main
()
main
()
{
{
print
(
"testpdpd
\n
"
);
testpdpd
();
testpdpd
();
print
(
"testpfpf
\n
"
);
testpfpf
();
testpfpf
();
print
(
"testpdpf1
\n
"
);
testpdpf1
();
testpdpf1
();
print
(
"testpdpf2
\n
"
);
testpdpf2
();
testpdpf2
();
// print("testpdfault\n"); testpdfault();
// print("testpdfault\n"); testpdfault();
// print("testfdfault\n"); testfdfault();
// print("testfdfault\n"); testfdfault();
}
}
test/ken/shift.go
View file @
e1e53e35
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
package
main
package
main
var
ians
[
18
]
int
;
var
ians
[
18
]
int
;
...
...
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