libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-prof / crossmodule-indircall-1.c
blob4f65dc61eba628fbe7f0480d64cbf7d8ade6f77e
1 /* { dg-require-effective-target lto } */
2 /* { dg-additional-sources "crossmodule-indircall-1a.c" } */
3 /* { dg-options "-O3 -flto -DDOJOB=1" } */
5 int a;
6 extern void (*p[5])(int n);
7 void abort (void);
8 int
9 main()
10 { int i;
12 /* This call shall be converted. */
13 for (i = 0;i<1000;i++)
14 p[0](1);
15 /* This call shall not be converted. */
16 for (i = 0;i<1000;i++)
17 p[i%5](2);
18 if (a != -1000)
19 abort ();
21 return 0;