1 // $G $D/$F.go && $L $F.$A && ./$A.out || echo BUG indirect
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.
10 var m1 *map[string]int
11 var m2 *map[string]int = &m0
12 var m3 map[string]int = map[string]int{"a": 1}
13 var m4 *map[string]int = &m3
28 var b3 []int = []int{1, 2, 3}
32 // these uses of nil pointers
33 // would crash but should type check
39 // this is spaced funny so that
40 // the compiler will print a different
41 // line number for each len call if
42 // it decides there are type errors.
43 // it might also help in the traceback.
48 println("wrong maplen")
56 println("wrong stringlen")
64 println("wrong arraylen")
72 println("wrong slicelen")
80 println("wrong slicecap")
85 func main() { nocrash() }