1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
extern void abort (void); main() { int i = 0; #pragma omp parallel shared (i) { #pragma omp single { i++; } } if (i != 1) abort (); return 0; }