1 /* { dg-do compile { target powerpc*-apple-darwin* } } */ 2 /* { dg-options "-S" } */ 3 4 void f () __attribute__((weak_import)); 5 6 typedef void PF (void); 7 f(void)8void f(void){}; 9 g(void)10PF* g (void) { return f; } 11 main()12int main() 13 { 14 (*g())(); 15 return 0; 16 } 17 18 /* { dg-final { scan-assembler "non_lazy_ptr" } } */ 19