c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / task-detach-3.c
blob97e622de2cd0e82c0a3a616c2137eee7277215da
1 /* PR c++/100319 */
2 /* { dg-do compile } */
3 /* { dg-options "-fopenmp" } */
5 typedef enum omp_event_handle_t
7 __omp_event_handle_t_max__ = __UINTPTR_MAX__
8 } omp_event_handle_t;
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" } */