Source file
test/abi/many_intstar_input.go
1
2
3
4
5
6
7
8
9
10
11
12
13 package main
14
15 import (
16 "fmt"
17 )
18
19 var sink int = 3
20
21
22
23 func F(a, b, c, d, e, f *int) {
24 G(f, e, d, c, b, a)
25 sink += *a
26 }
27
28
29
30 func G(a, b, c, d, e, f *int) {
31 var scratch [1000 * 100]int
32 scratch[*a] = *f
33 fmt.Println(*a, *b, *c, *d, *e, *f)
34 sink = scratch[*b+1]
35 *f, *a = *a, *f
36 *e, *b = *b, *e
37 *d, *c = *c, *d
38 }
39
40 func main() {
41 a, b, c, d, e, f := 1, 2, 3, 4, 5, 6
42 F(&a, &b, &c, &d, &e, &f)
43 fmt.Println(a, b, c, d, e, f)
44 fmt.Println(sink)
45 }
46
View as plain text