2 /* { dg-do compile } */
3 /* { dg-options "-fopenmp" } */
5 typedef enum omp_event_handle_t
7 __omp_event_handle_t_max__
= __UINTPTR_MAX__
10 extern void omp_fulfill_event (omp_event_handle_t
);
12 void f (omp_event_handle_t x
, omp_event_handle_t y
, int z
)
14 #pragma omp task detach (x) firstprivate (y, z) /* { dg-bogus "the event handle of a 'detach' clause should not be in a data-sharing clause" } */
17 #pragma omp task detach (x) shared (y) /* { dg-bogus "the event handle of a 'detach' clause should not be in a data-sharing clause" } */