summaryrefslogtreecommitdiff
path: root/test/char_lit.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-06-27 14:15:06 -0700
committerRob Pike <r@golang.org>2008-06-27 14:15:06 -0700
commita82bdf049a2e4899a61283bfbe911df3a19a9b41 (patch)
treeded91bb1ff114ecb38376653ff550b28770c28e2 /test/char_lit.go
parenteaeba3a481074022279836afc101c8c28a6841f8 (diff)
downloadgo-a82bdf049a2e4899a61283bfbe911df3a19a9b41.tar.gz
export sys.exit
update tests to use exit rather than return ignore return value from main (actually done in prior CL) SVN=125173
Diffstat (limited to 'test/char_lit.go')
-rw-r--r--test/char_lit.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/char_lit.go b/test/char_lit.go
index d061f0be4..55ab67d3d 100644
--- a/test/char_lit.go
+++ b/test/char_lit.go
@@ -6,7 +6,7 @@
package main
-func main() int {
+func main() {
var i uint64 =
' ' +
'a' +
@@ -33,10 +33,10 @@ func main() int {
;
if '\Ucafebabe' != 0xcafebabe {
print "cafebabe wrong\n";
- return 1;
+ sys.exit(1)
}
if i != 0xcc238de1 {
print "number is ", i, " should be ", 0xcc238de1, "\n";
- return 1;
+ sys.exit(1)
}
}