1 // RUN: %libomp-compile-and-run
4 #include "omp_testsuite.h"
6 /* Utility function do spend some time in a loop */
7 int test_omp_task_imp_shared()
17 for (k
= 0; k
< NUM_TASKS
; k
++) {
18 #pragma omp task shared(i)
22 //this should be shared implicitly
27 return ((result
== NUM_TASKS
));
35 for(i
= 0; i
< REPETITIONS
; i
++) {
36 if(!test_omp_task_imp_shared()) {