summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr78510.c
blob: 8d0ab5fa3e35b3021cf2aebe32aba6c3c9953b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* 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; }