1extern int fun(int a); 2 3void symbol(int a) 4{ 5 fun(a); 6} 7 8void pointer0(int a, int (*fun)(int)) 9{ 10 fun(a); 11} 12 13void pointer1(int a, int (*fun)(int)) 14{ 15 (*fun)(a); 16} 17 18void 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 28symbol: 29.L0: 30 <entry-point> 31 call.32 %r2 <- fun, %arg1 32 ret 33 34 35pointer0: 36.L2: 37 <entry-point> 38 call.32 %r5 <- %arg2, %arg1 39 ret 40 41 42pointer1: 43.L4: 44 <entry-point> 45 call.32 %r8 <- %arg2, %arg1 46 ret 47 48 49builtin: 50.L6: 51 <entry-point> 52 call.32 %r10 <- __builtin_popcount, %arg1 53 ret 54 55 56 * check-output-end 57 */ 58