C++: simplify output from suggest_alternatives_for
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / collapse-2.c
blob1ea0a6b846d5f1bd18711b48891b2f5e484c048f
1 /* { dg-do run } */
3 #include <stdlib.h>
5 int
6 main (void)
8 int i, j, k, l = 0, f = 0, x = 0;
9 int m1 = 4, m2 = -5, m3 = 17;
11 #pragma acc parallel
12 #pragma acc loop seq collapse(3) reduction(+:l)
13 for (i = -2; i < m1; i++)
14 for (j = m2; j < -2; j++)
16 for (k = 13; k < m3; k++)
18 if ((i + 2) * 12 + (j + 5) * 4 + (k - 13) != 9 + f++)
19 l++;
23 for (i = -2; i < m1; i++)
24 for (j = m2; j < -2; j++)
26 for (k = 13; k < m3; k++)
28 if ((i + 2) * 12 + (j + 5) * 4 + (k - 13) != 9 + f++)
29 x++;
33 if (l != x)
34 abort ();
36 return 0;