Reverting merge from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / pr47684.c
blob7cda812dd7fe43c4c85988ed3c3caea793603e91
1 /* PR debug/47684 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -fcompare-debug" } */
4 /* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
6 int in[8][4];
7 int out[4];
9 void
10 foo (void)
12 int sum = 1;
13 int i, j, k;
14 for (k = 0; k < 4; k++)
16 for (j = 0; j < 4; j++)
17 for (i = 0; i < 4; i++)
18 sum *= in[i + k][j];
19 out[k] = sum;