blob: cc9d323ad19fd41327b3bb314fe3b65bf2653b2a [file] [log] [blame]
/* { dg-additional-options -fopenmp } */
/* { dg-require-effective-target fopenmp } */
// Make sure error recovery doesn't get confused by tokens inside a
// deferred pragma.
// OpenMP is a convenient deferred pragma insertion mechanism.
void foo ()
{
1 * "" // { dg-error "invalid" }
#pragma omp atomic {
;
}
void bar ()
{
1 * "" // { dg-error "invalid" }
#pragma omp atomic }
;
}
void baz ()
{
1 * "" // { dg-error "invalid" }
#pragma omp atomic ;
0;
}