Source file
test/abi/more_intstar_input.go
1
2
3
4
5
6
7
8
9
10
11
12 package main
13
14 var sink int
15
16
17
18 func F(a, b, c, d, e, f, g, h, i, j, k, l, m *int) {
19 G(m, l, k, j, i, h, g, f, e, d, c, b, a)
20
21 sink = *a + *m
22 }
23
24
25
26 func G(a, b, c, d, e, f, g, h, i, j, k, l, m *int) {
27
28 var scratch [1000 * 100]int
29 I := *c - *e - *l
30 scratch[I] = *d
31 println("Got this far!")
32 sink += scratch[0]
33 }
34
35 func main() {
36 a, b, c, d, e, f, g, h, i, j, k, l, m := 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13
37 F(&a, &b, &c, &d, &e, &f, &g, &h, &i, &j, &k, &l, &m)
38 println("Sink =", sink-7)
39 }
40
View as plain text