1 /* For compilation instructions see basic1.c. */ 2 3 volatile int val; 4 5 extern int foo(int); 6 unused2()7int unused2() { 8 return foo(val); 9 } 10 inc()11static int inc() { 12 return ++val; 13 } 14 15 __attribute__((noinline)) bar(int arg)16int bar(int arg) { 17 if (arg > 42) 18 return inc(); 19 return foo(val + arg); 20 } 21