summaryrefslogtreecommitdiff
path: root/test/args.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/args.go')
-rw-r--r--test/args.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/args.go b/test/args.go
index 4b9671a53..ba9a377a6 100644
--- a/test/args.go
+++ b/test/args.go
@@ -6,14 +6,16 @@
package main
+import "os"
+
func main() {
- if len(sys.Args) != 3 {
+ if len(os.Args) != 3 {
panic("argc")
}
- if sys.Args[1] != "arg1" {
+ if os.Args[1] != "arg1" {
panic("arg1")
}
- if sys.Args[2] != "arg2" {
+ if os.Args[2] != "arg2" {
panic("arg2")
}
}