aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr112305.c
blob: ea6e044529d1e3e100f6ba50e972e997ed743804 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do run } */
/* { dg-require-effective-target int32plus } */
/* { dg-skip-if "long-running loop" { simulator } { "-O0" "-O1" } } */

int a;
void b()
{
  long c = 3;
  unsigned int d = 50253292;
  int e = 2147483648;
  for (; a < 5; a++)
    do {
      e += 4;
      d -= c;
    } while (e < 20);
  if (d != -1560359471u)
    __builtin_abort ();
}
int main() { b(); }