summaryrefslogtreecommitdiff
path: root/test/args.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-05-08 15:21:41 -0700
committerRuss Cox <rsc@golang.org>2009-05-08 15:21:41 -0700
commit918afd9491bd07aed10bc364012683fc52c734bb (patch)
tree5b8c80c41b4110b57cef1a0945350c2caf7557e2 /test/args.go
parentc367d1b789b0aed59e871aee588d776998a8f479 (diff)
downloadgo-git-918afd9491bd07aed10bc364012683fc52c734bb.tar.gz
move things out of sys into os and runtime
R=r OCL=28569 CL=28573
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 4b9671a53f..ba9a377a6f 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")
}
}