* c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change.
[official-gcc.git] / libgomp / testsuite / libgomp.c / pr49897-2.c
blobc9ea5eced8641b466943464ec3bfc9f0c7de27c5
1 /* PR middle-end/49897 */
2 /* { dg-do run } */
4 extern void abort (void);
6 int
7 main ()
9 int i, j, x = 0, y, sum = 0;
10 #pragma omp parallel for reduction(+:sum) firstprivate(x) lastprivate(x, y)
11 for (i = 0; i < 10; i++)
13 x = i;
14 y = 0;
15 #pragma omp parallel for reduction(+:sum) firstprivate(y) lastprivate(y)
16 for (j = 0; j < 10; j++)
18 y = j;
19 sum += y;
22 if (x != 9 || y != 9 || sum != 450)
23 abort ();
24 return 0;