Debian Codegraph @

gcc/testsuite/gcc.dg/gomp/block-5.c

raw
1 // { dg-do compile }
2
3 void foo()
4 {
5 #pragma omp master
6 {
7 goto bad1; // { dg-error "invalid branch to/from OpenMP structured block" }
8 }
9
10 #pragma omp master
11 {
12 bad1:
13 return; // { dg-error "invalid branch to/from OpenMP structured block" }
14 }
15 }