* gcc.dg/tree-prof/crossmodule-indircall-1.c: Return 0
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-prof / crossmodule-indircall-1.c
blob67a76c9f1eba76b3a59537a8a8d13dae26a62487
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[2])(int n);
7 void abort (void);
8 main()
9 { int i;
11 /* This call shall be converted. */
12 for (i = 0;i<1000;i++)
13 p[0](1);
14 /* This call shall not be converted. */
15 for (i = 0;i<1000;i++)
16 p[i%2](2);
17 if (a != 1000)
18 abort ();
20 return 0;