aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr109778.c
blob: 309fbf413e019c60f6c8dc823d450e8f5813eae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* PR tree-optimization/109778 */

int a, b, c, d, *e = &c;

static inline unsigned
foo (unsigned char x)
{
  x = 1 | x << 1;
  x = x >> 4 | x << 4;
  return x;
}

static inline void
bar (unsigned x)
{
  *e = 8 > foo (x + 86) - 86;
}

int
main ()
{
  d = a && b;
  bar (d + 4);
  if (c != 1)
    __builtin_abort ();
}