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