1 /* PR target/27758 */ 2 /* { dg-do run { target fpic } } */ 3 /* { dg-options "-O0 -fpic" } */ 4 5 typedef int (*fn) (void); 6 7 static inline int foo(void)8foo (void) 9 { 10 return 1; 11 } 12 13 fn test(void)14test (void) 15 { 16 return foo; 17 } 18 19 int main(void)20main (void) 21 { 22 fn f = test (); 23 return f () != 1; 24 } 25