aboutsummaryrefslogtreecommitdiff
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
commit34cb7c299eb151f8d316b48f63e5d5cafcbee2e0 (patch)
treeded91bb1ff114ecb38376653ff550b28770c28e2 /test/int_lit.go
parent3719aa4d9ab3672ebb4c82bcabfa2a57ecb6e596 (diff)
downloadgo-34cb7c299eb151f8d316b48f63e5d5cafcbee2e0.tar.gz
go-34cb7c299eb151f8d316b48f63e5d5cafcbee2e0.zip
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 28c83d9656..80c7f3a5e8 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);
}
}