fortran: Factor the evaluation of MINLOC/MAXLOC's BACK argument
[official-gcc.git] / libgomp / testsuite / libgomp.c / teams-3.c
blob34a9aa00ff72e35d8a018d00d31710575fca9cdd
1 /* PR middle-end/96459 */
3 #include <stdlib.h>
5 int
6 main ()
8 int niters = 0, i, j, k;
9 #pragma omp teams reduction(+:niters)
11 #pragma omp distribute collapse(3)
12 for (i = 0; i < 3; i++)
13 for (j = 0; j < 8; j += 2)
14 for (k = 0; k < 25; k += 3)
15 niters++;
17 if (niters != 108)
18 abort ();
19 return 0;