1 // { dg-do run } 2 // Compile with -S, there should be no references to 3 // LTRAMP in the output. 4 5 extern "C" int printf (const char *, ...); 6 7 void sub2(void (* func)())8sub2 (void (*func) ()) 9 { 10 (*func) (); 11 } 12 13 int main(void)14main(void) 15 { 16 extern void sub (void); 17 18 sub2 (sub); 19 } 20 21 void sub(void)22sub (void) 23 { 24 printf ("hello world\n"); 25 } 26