Merge from mainline (163495:164578).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.c-torture / execute / pr44858.c
blob45e1758b0c2f51a49afe6996aaedf0276ecc687f
1 /* PR rtl-optimization/44858 */
3 extern void abort (void);
4 int a = 3;
5 int b = 1;
7 __attribute__((noinline)) long long
8 foo (int x, int y)
10 return x / y;
13 __attribute__((noinline)) int
14 bar (void)
16 int c = 2;
17 c &= foo (1, b) > b;
18 b = (a != 0) | c;
19 return c;
22 int
23 main (void)
25 if (bar () != 0 || b != 1)
26 abort ();
27 return 0;