aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr115388.c
blob: 17b3f1bcd9036e573ba4f07a8fdc216f139e31ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* { dg-do run } */

int printf(const char *, ...);
int a[10], b, c, d[0], h, i, j, k, l;
signed char e = -1, g;
volatile int f;
static void n() {
  while (e >= 0)
    while (1)
      ;
  for (b = 2; b >= 0; b--) {
    for (k = 0; k < 4; k++) {
      if (e || i)
        continue;
      for (h = 0; h < 2; h++)
        f;
    }
    for (l = 2; l >= 0; l--)
      g = 0;
    for (; g < 1; g++)
      if (c)
        d[l] = 1;
    a[9] = 0;
    a[b] = 1;
    while (j)
      printf("\n");
  }
}
int main() {
  n();
  if (a[1] != 1)
    __builtin_abort();
  return 0;
}