blob: 68509f550b3052cccee4bdc6218e08ee79c4f1af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
package main
import "fmt"
import "swigtests/profiletest"
func main() {
a := profiletest.NewA()
if false {
fmt.Println(a)
}
b := profiletest.NewB()
fn := func(a profiletest.A) profiletest.A { return b.Fn(a) }
i := 50000
for i != 0 {
a = fn(a) //1
a = fn(a) //2
a = fn(a) //3
a = fn(a) //4
a = fn(a) //5
a = fn(a) //6
a = fn(a) //7
a = fn(a) //8
a = fn(a) //9
a = fn(a) //10
a = fn(a) //1
a = fn(a) //2
a = fn(a) //3
a = fn(a) //4
a = fn(a) //5
a = fn(a) //6
a = fn(a) //7
a = fn(a) //8
a = fn(a) //9
a = fn(a) //20
i -= 1
}
}
|