1  /* PR c++/100319 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-fopenmp" } */
       4  
       5  typedef enum omp_event_handle_t
       6  {
       7    __omp_event_handle_t_max__ = __UINTPTR_MAX__
       8  } omp_event_handle_t;
       9  
      10  extern void omp_fulfill_event (omp_event_handle_t);
      11  
      12  void f (omp_event_handle_t x, omp_event_handle_t y, int z)
      13  {
      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" } */
      15      ;
      16  
      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" } */
      18      ;
      19  }