aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr122200.c
blob: cd770fcaaf2e88346942f5362dee786408abd1fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */
/* { dg-options "-O3" } */
/* { dg-additional-options "-mavx" { target { x86_64-*-* i?86-*-* } } } */


int a, b;

void f(float g[][5]) {
  int c;

  for (c = 0; c != a; c++)
    g[1][c] = c;

  for (int d; d; d++)
    for (int e = 1; e != b; e++) {
      for (c = 0; c != a; c++) {
        g[0][1] = 1;

        if (g[1][c])
          g[1][c] = 1;
      }
    }
}