Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / pr46499-1.c
blob9815272e681b3daf6a8966f3e7500b77a052da74
1 /* PR middle-end/46499 */
2 /* { dg-do run } */
3 /* { dg-options "-O -fno-omit-frame-pointer -fno-tree-ccp -fno-tree-dominator-opts -finline-small-functions" } */
5 extern void abort (void);
7 int count = 0;
9 int
10 foo (void)
12 count++;
13 return 0;
16 int
17 bar (void)
19 count++;
20 return 0;
23 int
24 main ()
26 if ((foo () == 1) & (bar () == 1))
27 abort ();
28 if (count != 2)
29 abort ();
30 return 0;