commit | e285ed6090989e13d2696c4d57ba89bdc2721ec6 | [log] [tgz] |
---|---|---|
author | Rob Pike <r@golang.org> | Sun Jun 08 17:19:11 2008 -0700 |
committer | Rob Pike <r@golang.org> | Sun Jun 08 17:19:11 2008 -0700 |
tree | 1943a54acde02ebd5ed3f28f8a028501f9994954 | |
parent | 27d95f1372746b92c12ee44841f8c146318da367 [diff] [blame] |
Fix a few tests SVN=121614
diff --git a/test/int_lit.go b/test/int_lit.go index 9ce5fa3..28c83d9 100644 --- a/test/int_lit.go +++ b/test/int_lit.go
@@ -6,15 +6,18 @@ package main -func main() { - []int( - 0, - 123, - 0123, - 0000, - 0x0, - 0x123, - 0X0, - 0X123 - ); +func main() int { + s := + 0 + + 123 + + 0123 + + 0000 + + 0x0 + + 0x123 + + 0X0 + + 0X123; + if s != 788 { + print "s is ", s, "; should be 788\n"; + return 1; + } }