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