aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr117226.c
blob: ac71a81e81fa917936e330fd97ad0822f8f960e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do run } */
/* { dg-require-effective-target int32 } */
/* { dg-additional-options "-fno-tree-forwprop" } */

int a = 128, b, d;
long e = -2, c;
int main() {
  signed char f = a;
  int g = f;
  c = (g < 0) - e;
  unsigned char h = g;
  b = h % c;
  d = 9000000000000 << b;
  if (d > 1)
    __builtin_abort();
  return 0;
}