Fix change log
[official-gcc.git] / libgomp / testsuite / libgomp.c / nestedfn-6.c
blobc0ace6b3fb85b38a00a4d3b6961ce782444ebcc7
1 extern void abort (void);
3 int j;
5 int
6 main (void)
8 int i;
9 void nested (void) { i = 0; }
10 #pragma omp parallel for lastprivate (i)
11 for (i = 0; i < 50; i += 3)
13 if (i != 51)
14 abort ();
15 #pragma omp parallel for lastprivate (j)
16 for (j = -50; j < 70; j += 7)
18 if (j != 76)
19 abort ();
20 return 0;