4 extern void abort (void);
7 parallel (int a
, int b
)
9 int bad
, LASTPRIV
, LASTPRIV_SEC
;
16 #pragma omp parallel firstprivate (a,b) shared (bad) num_threads (5)
21 #pragma omp for lastprivate (LASTPRIV)
22 for (i
= 0; i
< 10; i
++)
25 #pragma omp sections lastprivate (LASTPRIV_SEC)
31 { LASTPRIV_SEC
= 42; }
39 if (LASTPRIV_SEC
!= 42)