aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr121202.c
blob: 30ecf4a5e01ab6ae3830f5592b2095bb0303f77f (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O3 -fno-tree-copy-prop" } */

int a, b, c;
int e(int f, int g) { return f >> g; }
int h(int f) { return a > 1 ? 0 : f << a; }
int main() {
  while (c--)
    b = e(h(1), a);
  return 0;
}