Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/pr39941.c

raw
1 /* { dg-require-effective-target indirect_calls } */
2
3 typedef void (*entry_func) (void) __attribute__ ((noreturn));
4 extern entry_func entry_addr;
5 void stop (void);
6 static void bsd_boot_entry (void)
7 {
8 stop ();
9 }
10 void bsd_boot (void)
11 {
12 entry_addr = (entry_func) bsd_boot_entry;
13 (*entry_addr) ();
14 }
15