1 // RUN: %libarcher-compile -fopenmp-version=50 && env OMP_NUM_THREADS='3' \
5 // Checked gcc 10.1 still does not support detach clause on task construct.
6 // UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8, gcc-9, gcc-10
7 // gcc 11 introduced detach clause, but gomp interface in libomp has no support
8 // XFAIL: gcc-11, gcc-12
9 // clang supports detach clause since version 11.
10 // UNSUPPORTED: clang-10, clang-9, clang-8, clang-7
11 // icc compiler does not support detach clause.
22 omp_event_handle_t event
;
23 #pragma omp task detach(event) if (0)
24 { omp_fulfill_event(event
); }