1 /* { dg-do run } */ 2 /* { dg-additional-sources "pr94947-2.c" } */ 3 /* { dg-additional-options "-fipa-pta -flto-partition=1to1" } */ 4 5 extern void abort (); 6 extern void baz (); 7 extern void (*baz_call)(); 8 static int *p; 9 foo()10static void foo () 11 { 12 if (*p != 1) 13 abort (); 14 } 15 main()16int main() 17 { 18 int x = 1; 19 p = &x; 20 baz_call = foo; 21 baz (); 22 return 0; 23 } 24