1 // Test of field usage detection
5 type t1 struct { // used
9 type t2 struct { // used
13 type t3 struct { // used
16 type t4 struct { // used
19 type t5 struct { // used
22 type t6 struct { // used
25 type t7 struct { // used
28 type m1 map[string]t7 // used
29 type t8 struct { // used
32 type t9 struct { // used
35 type t10 struct { // used
38 type t11 struct { // used
42 type t12 struct { // used
46 type t13 struct { // used
49 type t14 struct { // used
52 type a1 [1]t14 // used
53 type t15 struct { // used
56 type a2 [1]t15 // used
57 type t16 struct { // used
60 type t17 struct { // unused
64 type t18 struct { // used
70 type t19 struct { // used
73 type m2 map[string]t19 // used
75 type t20 struct { // used
78 type m3 map[string]t20 // used
80 type t21 struct { // used
84 type t22 struct { // unused
99 // _ = []struct{ foo struct{ bar int } }{{struct{ bar int }{1}}}
103 _ = map[string]t5{"a": {1}}
104 _ = map[t6]string{{1}: "a"}
106 _ = map[t8]t8{{}: {1}}
107 _ = map[t9]t9{{1}: {}}
113 _ = map[[1]t16]int{{{1}}: 1}
120 _ = [][]m3{{{"a": {1}}}}
123 func init() { foo() } // used
125 func superUnused() { // unused