/* * @@name: tasking.12c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: rt-error */ #include void foo ( ) { int x = 2; #pragma omp task mergeable { x++; } #pragma omp taskwait printf("%d\n",x); // prints 2 or 3 }