diff options
Diffstat (limited to 'test/switch1.go')
-rw-r--r-- | test/switch1.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/switch1.go b/test/switch1.go index fac9ac8ec..9e61cc658 100644 --- a/test/switch1.go +++ b/test/switch1.go @@ -6,13 +6,15 @@ package main +import "os" + func main() { i := 0; switch x := 5; { case i < x: - sys.Exit(0); + os.Exit(0); case i == x: case i > x: - sys.Exit(1); + os.Exit(1); } } |