summaryrefslogtreecommitdiff
path: root/test/string_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/string_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/string_lit.go')
-rw-r--r--test/string_lit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/string_lit.go b/test/string_lit.go
index 56c4c6a66..f4f123c9c 100644
--- a/test/string_lit.go
+++ b/test/string_lit.go
@@ -32,7 +32,7 @@ func assert(a, b, c string) {
}
}
-func main() int {
+func main() {
ecode = 0;
s :=
""
@@ -75,5 +75,5 @@ func main() int {
`\000\123\x00\312\xFE\u0123\ubabe\U0000babe`,
"backslashes 2 (backquote)");
assert("\\x\\u\\U\\", `\x\u\U\`, "backslash 3 (backquote)");
- return ecode;
+ sys.exit(ecode);
}