Dead
[official-gcc.git] / gomp-20050608-branch / libgomp / testsuite / libgomp.c / omp-loop03.c
blob7bb9a194331efc18f354dbb638e393978c0e1a24
1 extern void abort (void);
2 int a;
4 void
5 foo ()
7 int i;
8 a = 30;
9 #pragma omp barrier
10 #pragma omp for lastprivate (a)
11 for (i = 0; i < 1024; i++)
13 a = i;
15 if (a != 1023)
16 abort ();
19 int
20 main (void)
22 #pragma omp parallel num_threads (64)
23 foo ();
25 return 0;