foo(void)1 int foo (void) 2 { 3 int i, a; 4 5 a = 30; 6 7 #pragma omp parallel for lastprivate (a) 8 for (i = 0; i < 10; i++) 9 a = a + i; 10 11 return a; 12 } 13