/* * @@name: copyprivate.1c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success */ #include float x, y; #pragma omp threadprivate(x, y) void init(float a, float b ) { #pragma omp single copyprivate(a,b,x,y) { scanf("%f %f %f %f", &a, &b, &x, &y); } }