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

void abort (void);
int a, c;
long b;
short d;
static long e(long f, long h, long i) {
  for (long g = f; g <= h; g += i)
    b += g;
  return b;
}
int main() {
  c = 1;
  for (; c >= 0; c--)
    ;
  for (; e(d + 40, d + 76, c + 51) < 4;)
    ;
  if (a != 0)
    abort ();
}