openmp: Don't ICE on detach clause with erroneous decl [PR98742]
[gcc.git] / gcc / testsuite / c-c++-common / gomp / task-detach-2.c
1 /* PR c++/98742 */
2 /* { dg-do compile } */
3
4 void
5 foo ()
6 {
7 #pragma omp task detach(0) /* { dg-error "before numeric constant" } */
8 ;
9 }