C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / cancel-3.C
blob87e757b77680d75c87d8ab9b0a7a9d2c3a42cc5f
1 // { dg-do compile }
3 struct S { int s; } s;
5 void
6 foo (void)
8   #pragma omp parallel
9   {
10     #pragma omp cancel parallel if (s)  // { dg-error "could not convert 's' from 'S' to 'bool'" }
11   }