summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr31115.c
blob: 1395a34b3226264e8501bd9e3b359bd4bc6ecc47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do run } */

extern void exit(int);
extern void abort();
void foo (int e1)
{
  if (e1 < 0)
    {
      e1 = -e1;
      if (e1 >>= 4)
        {
          if (e1 >= 1 << 5)
            exit(0);
        }
    }
}

int main()
{
  foo(-(1<<9));
  abort();
}