C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / block-5.C
blob985e761d3855ebab7e6d1f1378b4a8fdfd30b108
1 // { dg-do compile }
3 void foo()
5   #pragma omp master
6     {
7       goto bad1;        // { dg-message "from here" }
8     }
10   #pragma omp master
11     {
12     bad1:               // { dg-error "jump" }
13                         // { dg-message "exits OpenMP" "" { target *-*-* } .-1 }
14       return;           // { dg-error "invalid exit" }
15     }
18 // { dg-message "error: invalid branch to/from OpenMP structured block" "" { target *-*-* } 7 }