PR middle-end/27945
[official-gcc.git] / gcc / testsuite / gcc.dg / pr27758.c
blobd385fc5c94ae21443b4acbf7a5bdf10374de607e
1 /* PR target/27758 */
2 /* { dg-do run { target fpic } } */
3 /* { dg-options "-O0 -fpic" } */
5 typedef int (*fn) (void);
7 static inline int
8 foo (void)
10 return 1;
14 test (void)
16 return foo;
19 int
20 main (void)
22 fn f = test ();
23 return f () != 1;