* recog.c (peephole2_optimize): Make it static.
[official-gcc.git] / libgomp / testsuite / libgomp.c / omp-nested-1.c
blob655ef26fa8c8cc2767d2b4afb347e11fadea27e2
1 // { dg-do run }
3 extern void abort(void);
4 #define N 1000
6 int foo()
8 int i = 0, j;
10 #pragma omp parallel for num_threads(2) shared (i)
11 for (j = 0; j < N; ++j)
13 #pragma omp parallel num_threads(1) shared (i)
15 #pragma omp atomic
16 i++;
20 return i;
23 int main()
25 if (foo() != N)
26 abort ();
27 return 0;