view gcc/testsuite/gcc.dg/torture/pr78510.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR middle-end/78510 */
/* { dg-do compile } */
int a, b, c, e, f;
char d;
short g, h;
char fn1(int p1) {
  for (;;) {
    h = p1 << 2;
    int i = h;
    g = i > 32767 >> 13 ? i : i << 3;
    f = a ?: c;
    if (e)
      return d;
  }
}

static int fn2() { fn1(0 || b); }

int main() { fn2(); return 0; }