aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr116579.c
blob: 36d57784b665086d627df9bfb9ff8c3b2a4678ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do run } */
/* { dg-additional-options "-fno-thread-jumps" } */


int a, c, d, e;
char b;
long f;
int main() {
  unsigned char g;
  int h = -2, i = 0;
  g = a + 128;
  d = 0 <= (c || (h = g));
  f = h < 0 || i >= 32 ? h : 0;
  (b = h) | (e = f);
  if (e != 0)
    __builtin_abort();
  return 0;
}