summaryrefslogtreecommitdiff
path: root/test/int_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/int_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/int_lit.go')
-rw-r--r--test/int_lit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/int_lit.go b/test/int_lit.go
index 28c83d965..80c7f3a5e 100644
--- a/test/int_lit.go
+++ b/test/int_lit.go
@@ -6,7 +6,7 @@
package main
-func main() int {
+func main() {
s :=
0 +
123 +
@@ -18,6 +18,6 @@ func main() int {
0X123;
if s != 788 {
print "s is ", s, "; should be 788\n";
- return 1;
+ sys.exit(1);
}
}