1 extern "C" void abort (void);
4 parallel (int a, int b)
6 int bad, LASTPRIV, LASTPRIV_SEC;
13 #pragma omp parallel firstprivate (a,b) shared (bad) num_threads (5)
18 #pragma omp for lastprivate (LASTPRIV)
19 for (i = 0; i < 10; i++)
22 #pragma omp sections lastprivate (LASTPRIV_SEC)
28 { LASTPRIV_SEC = 42; }
36 if (LASTPRIV_SEC != 42)