]> Cypherpunks.ru repositories - gostls13.git/blob - test/args.go
casify, cleanup sys
[gostls13.git] / test / args.go
1 // $G $F.go && $L $F.$A && ./$A.out arg1 arg2
2
3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 package main
8
9 func main() {
10         if len(sys.Args) != 3 {
11                 panic("argc")
12         }
13         if sys.Args[1] != "arg1" {
14                 panic("arg1")
15         }
16         if sys.Args[2] != "arg2" {
17                 panic("arg2")
18         }
19 }