1 extern int fun(int a);
2
3 void symbol(int a)
4 {
5 fun(a);
6 }
7
8 void pointer0(int a, int (*fun)(int))
9 {
10 fun(a);
11 }
12
13 void pointer1(int a, int (*fun)(int))
14 {
15 (*fun)(a);
16 }
17
18 void builtin(int a)
19 {
20 __builtin_popcount(a);
21 }
22
23 /*
24 * check-name: basic function calls
25 * check-command: test-linearize -Wno-decl $file
26 *
27 * check-output-start
28 symbol:
29 .L0:
30 <entry-point>
31 call.32 %r2 <- fun, %arg1
32 ret
33
34
35 pointer0:
36 .L2:
37 <entry-point>
38 call.32 %r5 <- %arg2, %arg1
39 ret
40
41
42 pointer1:
43 .L4:
44 <entry-point>
45 call.32 %r8 <- %arg2, %arg1
46 ret
47
48
49 builtin:
50 .L6:
51 <entry-point>
52 call.32 %r10 <- __builtin_popcount, %arg1
53 ret
54
55
56 * check-output-end
57 */