...
1
2
3
4 package main
5
6
7
8
9
10
11 func f(spilled, unspilled int) {
12 _ = (spilled)
13 _ = (unspilled)
14 _ = (1 + 2)
15 i := 0
16
17 f := func() (int, int) { return 0, 0 }
18
19
20 (print( (i + 1)))
21 _, _ = (f())
22 ch := (make(chan int))
23 (<-ch)
24 x := (<-ch)
25 _ = x
26 select {
27 case (<-ch):
28 case x := (<-ch):
29 _ = x
30 }
31 defer (func() {
32 })()
33 go (func() {
34 })()
35 y := 0
36 if true && (bool(y > 0)) {
37 y = 1
38 }
39 _ = (y)
40 map1 := (make(map[string]string))
41 _ = map1
42 _ = (make([]int, 0))
43 _ = (func() { print(spilled) })
44
45 sl := []int{}
46 _ = (sl[:0])
47
48 _ = (new(int))
49 tmp := (new(int))
50 _ = tmp
51 var iface interface{}
52 _ = (iface.(int))
53 _ = (sl[0])
54 _ = (&sl[0])
55 _ = ([2]int{}[0])
56 var p *int
57 _ = (*p)
58
59 _ = (global)
60 (global)[""] = ""
61 (global) = map[string]string{}
62
63 var local t
64 (local.x) = 1
65
66
67 type N *N
68 var n N
69 (n) = (n)
70 (n) = (&n)
71 (n) = (*n)
72 (n) = (**n)
73 }
74
75 func complit() {
76
77
78
79
80
81
82
83 print( ([]int{}))
84 print( (&[]int{}))
85 print(& ([]int{}))
86
87 sl1 := ([]int{})
88 sl2 := (&[]int{})
89 sl3 := & ([]int{})
90 _, _, _ = sl1, sl2, sl3
91
92 _ = ([]int{})
93 _ = (& ([]int{}))
94 _ = & ([]int{})
95
96
97 print( ([1]int{}))
98 print( (&[1]int{}))
99 print(& ([1]int{}))
100
101 arr1 := ([1]int{})
102 arr2 := (&[1]int{})
103 arr3 := & ([1]int{})
104 _, _, _ = arr1, arr2, arr3
105
106 _ = ([1]int{})
107 _ = (& ([1]int{}))
108 _ = & ([1]int{})
109
110
111 type M map[int]int
112 print( (M{}))
113 print( (&M{}))
114 print(& (M{}))
115
116 m1 := (M{})
117 m2 := (&M{})
118 m3 := & (M{})
119 _, _, _ = m1, m2, m3
120
121 _ = (M{})
122 _ = (& (M{}))
123 _ = & (M{})
124
125
126 print( (struct{}{}))
127 print( (&struct{}{}))
128 print(& (struct{}{}))
129
130 s1 := (struct{}{})
131 s2 := (&struct{}{})
132 s3 := & (struct{}{})
133 _, _, _ = s1, s2, s3
134
135 _ = (struct{}{})
136 _ = (& (struct{}{}))
137 _ = & (struct{}{})
138 }
139
140 type t struct{ x int }
141
142
143 func (t) f(param int) {
144 _ = (param)
145 }
146
147
148 func init() {
149 m := (make(map[string]string))
150 _ = m
151 }
152
153
154 var global = (make(map[string]string))
155
View as plain text