1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <stdlib.h> int main (void) { int i; i = 4; #pragma omp single copyprivate (i) { i = 6; } if (i != 6) abort (); return 0; }