aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr38807.c
blob: 8b05d08aa72e5bee2009f4b78bdf57290bd6f939 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR tree-optimization/38807 */

int
baz (short x)
{
  return x;
}

int a, b;

int
bar (int x)
{
  if (baz (a ^ x ^ a))
    return b;
  return 0;
}

int
foo (void)
{
  return bar (a == 0 || 1 == 1 - a) ? 1 : bar (1 && a);
}