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
39b28df0
Commit
39b28df0
authored
Jun 16, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update test results
SVN=122912
parent
e1a06ccc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
55 deletions
+56
-55
bug006.go
test/bugs/bug006.go
+5
-1
golden.out
test/golden.out
+34
-44
if1.go
test/if1.go
+9
-4
switch1.go
test/switch1.go
+8
-6
No files found.
test/bugs/bug006.go
View file @
39b28df0
...
@@ -7,10 +7,14 @@
...
@@ -7,10 +7,14 @@
package
main
package
main
const
(
const
(
x
float
=
iota
;
g
float
=
4.5
*
iota
;
g
float
=
4.5
*
iota
;
);
);
func
main
()
{
func
main
()
int
{
if
g
==
0.0
{
print
"zero
\n
"
;}
if
g
!=
4.5
{
print
" fail
\n
"
;
return
1
;
}
return
0
;
}
}
/*
/*
should 4.5 * iota be ok? perhaps, perhaps not. but (all!) error msgs are bad:
should 4.5 * iota be ok? perhaps, perhaps not. but (all!) error msgs are bad:
...
...
test/golden.out
View file @
39b28df0
...
@@ -18,7 +18,6 @@ hello, world
...
@@ -18,7 +18,6 @@ hello, world
=========== ./if.go
=========== ./if.go
=========== ./if1.go
=========== ./if1.go
BUG: known to succeed incorrectly
=========== ./int_lit.go
=========== ./int_lit.go
...
@@ -27,11 +26,11 @@ BUG: known to succeed incorrectly
...
@@ -27,11 +26,11 @@ BUG: known to succeed incorrectly
=========== ./literal.go
=========== ./literal.go
=========== ./nil.go
=========== ./nil.go
nil.go:30 fatal error: naddr: const <T>{<i><int32>INT32;}
nil.go:30
:
fatal error: naddr: const <T>{<i><int32>INT32;}
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== ./sieve.go
=========== ./sieve.go
sieve.go:8
fatal error: walktype: switch 1 unknown op SEND l(114
)
sieve.go:8
: fatal error: walktype: switch 1 unknown op SEND l(151
)
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== ./string_lit.go
=========== ./string_lit.go
...
@@ -39,19 +38,21 @@ BUG: known to fail incorrectly
...
@@ -39,19 +38,21 @@ BUG: known to fail incorrectly
=========== ./switch.go
=========== ./switch.go
=========== ./switch1.go
=========== ./switch1.go
BUG: known to succeed incorrectly
=========== ./test0.go
=========== ./test0.go
test0.go:23 warning: addtyp: renaming Point/<Point>{<x><int32>INT32;<y><int32>INT32;} to Point2/<Point2>FORW
test0.go:48: illegal types for operand: AS
test0.go:48: illegal types for operand
(<float32>FLOAT32)
(<float32>FLOAT32) AS (<int32>INT32)
(<int32>INT32)
test0.go:49: illegal types for operand
test0.go:49: illegal types for operand: AS
(<float32>FLOAT32) AS (<int32>INT32)
(<float32>FLOAT32)
(<int32>INT32)
test0.go:50: error in shape across assignment
test0.go:50: error in shape across assignment
test0.go:55: illegal types for operand
test0.go:55: illegal types for operand: CALLMETH
(*<Point2>{}) CALLMETH (<Point2>{})
(*<Point>{})
test0.go:54: illegal types for operand
(<Point>{<x><int32>INT32;<y><int32>INT32;<Point_Initialize>120({},{}){};<Point_Distance>101({},{}){};})
(<Point2>{}) AS ({})
test0.go:54: illegal types for operand: AS
(<Point>{<x><int32>INT32;<y><int32>INT32;<Point_Initialize>120({},{}){};<Point_Distance>101({},{}){};})
({})
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== ./turing.go
=========== ./turing.go
...
@@ -121,57 +122,45 @@ BUG: known to succeed incorrectly
...
@@ -121,57 +122,45 @@ BUG: known to succeed incorrectly
=========== bugs/bug003.go
=========== bugs/bug003.go
bugs/bug003.go:6: switch statement must have case labels
bugs/bug003.go:6: switch statement must have case labels
bugs/bug003.go:6 fatal error: walkswitch: not case EMPTY
BUG: fatal error
BUG: fatal error
=========== bugs/bug004.go
=========== bugs/bug004.go
BUG: known to succeed incorrectly
BUG: known to succeed incorrectly
=========== bugs/bug006.go
=========== bugs/bug006.go
bugs/bug006.go:6: illegal combination of literals 0 0
zero
bugs/bug006.go:6: expression must be a constant
fail
bugs/bug006.go:6: expression must be a constant
bugs/bug006.go:6: expression must be a constant
bugs/bug006.go:6: expression must be a constant
bugs/bug006.go:6: expression must be a constant
bugs/bug006.go:6: expression must be a constant
bugs/bug006.go:6: expression must be a constant
bugs/bug006.go:6: expression must be a constant
bugs/bug006.go:6: expression must be a constant
bugs/bug006.go:6 fatal error: too many errors
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== bugs/bug010.go
=========== bugs/bug010.go
bugs/bug010.go:7: i undefined
bugs/bug010.go:7: i undefined
bugs/bug010.go:8: illegal conversion of constant to 0
20({},<_o135>{},{})
bugs/bug010.go:8: illegal conversion of constant to 0
02({},{}){}
bugs/bug010.go:9: error in shape across assignment
bugs/bug010.go:9: error in shape across assignment
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== bugs/bug014.go
=========== bugs/bug014.go
bugs/bug014.go:6
warning
: non-oct character in escape sequence: '
bugs/bug014.go:6: non-oct character in escape sequence: '
bugs/bug014.go:6
warning
: non-oct character in escape sequence: '
bugs/bug014.go:6: non-oct character in escape sequence: '
bugs/bug014.go:7
warning
: non-oct character in escape sequence: '
bugs/bug014.go:7: non-oct character in escape sequence: '
bugs/bug014.go:8
warning
: non-hex character in escape sequence: '
bugs/bug014.go:8: non-hex character in escape sequence: '
bugs/bug014.go:9
warning
: non-hex character in escape sequence: '
bugs/bug014.go:9: non-hex character in escape sequence: '
BUG: errors caught but exit code should be non-zero
BUG: errors caught but exit code should be non-zero
=========== bugs/bug015.go
=========== bugs/bug015.go
BUG: known to succeed incorrectly
BUG: known to succeed incorrectly
=========== bugs/bug022.go
=========== bugs/bug022.go
bugs/bug022.go:8: illegal types for operand
bugs/bug022.go:8: illegal types for operand: INDEXPTR
(*<string>*STRING) INDEXPTR (<int32>INT32)
(*<string>*STRING)
bugs/bug022.go:8: illegal types for operand
(<int32>INT32)
(<uint8>UINT8) AS
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== bugs/bug023.go
=========== bugs/bug023.go
bugs/bug023.go:20
fatal error: naddr: const <Type>I{<TypeName>110(<_t138>{},<_o140>{},{})
;}
bugs/bug023.go:20
: fatal error: naddr: const <Type>I{<TypeName>101({},{}){}
;}
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== bugs/bug025.go
=========== bugs/bug025.go
bugs/bug025.go:7 fatal error: dumpexportvar: oname nil: Foo
bugs/bug025.go:7
:
fatal error: dumpexportvar: oname nil: Foo
BUG: known to fail incorrectly or at least with a bad message
BUG: known to fail incorrectly or at least with a bad message
...
@@ -180,10 +169,12 @@ check: main_sigs_I: not defined
...
@@ -180,10 +169,12 @@ check: main_sigs_I: not defined
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== bugs/bug027.go
=========== bugs/bug027.go
bugs/bug027.go:50: illegal types for operand
bugs/bug027.go:50: illegal types for operand: CONV
(<Element>I{}) CONV (<I>{})
(<Element>I{})
bugs/bug027.go:50: illegal types for operand
(<I>{<val><int32>INT32;})
(<Element>I{}) CONV (<I>{})
bugs/bug027.go:50: illegal types for operand: CONV
(<Element>I{})
(<I>{<val><int32>INT32;})
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== bugs/bug028.go
=========== bugs/bug028.go
...
@@ -240,7 +231,7 @@ bugs/bug044.go:23: error in shape across assignment
...
@@ -240,7 +231,7 @@ bugs/bug044.go:23: error in shape across assignment
BUG: compilation should succeed
BUG: compilation should succeed
=========== bugs/bug045.go
=========== bugs/bug045.go
bugs/bug045.go:13 fatal error: naddr: const <T>{<i><int32>INT32;}
bugs/bug045.go:13
:
fatal error: naddr: const <T>{<i><int32>INT32;}
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== bugs/bug046.go
=========== bugs/bug046.go
...
@@ -252,7 +243,6 @@ BUG: known to fail incorrectly
...
@@ -252,7 +243,6 @@ BUG: known to fail incorrectly
=========== fixedbugs/bug005.go
=========== fixedbugs/bug005.go
=========== fixedbugs/bug007.go
=========== fixedbugs/bug007.go
fixedbugs/bug007.go:7 warning: addtyp: renaming Point/<Point>{<x><float32>FLOAT32;<y><float32>FLOAT32;} to Polar/<Polar>FORW
=========== fixedbugs/bug008.go
=========== fixedbugs/bug008.go
...
...
test/if1.go
View file @
39b28df0
...
@@ -6,9 +6,14 @@
...
@@ -6,9 +6,14 @@
package
main
package
main
func
main
()
{
func
main
()
int
{
count
:=
0
;
count
:=
7
;
if
one
:=
1
;
{
// BUG if there is a simple stat, the condition must be present
if
one
:=
1
;
{
count
=
count
+
one
;
count
=
count
+
one
}
}
if
count
!=
8
{
print
count
,
" should be 8
\n
"
;
return
1
}
return
0
}
}
test/switch1.go
View file @
39b28df0
...
@@ -6,11 +6,13 @@
...
@@ -6,11 +6,13 @@
package
main
package
main
func
main
()
{
func
main
()
int
{
i
:=
0
;
i
:=
0
;
switch
x
:=
5
;
{
// BUG if there is a simple stat, the condition must be present
switch
x
:=
5
;
{
case
i
<
x
:
case
i
<
x
:
case
i
==
x
:
return
0
;
case
i
>
x
:
case
i
==
x
:
case
i
>
x
:
return
1
;
}
}
}
}
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