libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr94947-1.c
blob832e40db11865a3d821080598a6a6d54e08de16f
1 /* { dg-do run } */
2 /* { dg-additional-sources "pr94947-2.c" } */
3 /* { dg-additional-options "-fipa-pta -flto-partition=1to1" } */
4 /* { dg-prune-output "warning: using serial compilation" } */
6 extern void abort ();
7 extern void baz ();
8 extern void (*baz_call)();
9 static int *p;
11 static void foo ()
13 if (*p != 1)
14 abort ();
17 int main()
19 int x = 1;
20 p = &x;
21 baz_call = foo;
22 baz ();
23 return 0;