18 lines
342 B
C
18 lines
342 B
C
// { dg-do compile }
|
|
|
|
void foo()
|
|
{
|
|
#pragma omp master
|
|
{
|
|
goto bad1; // { dg-error "from here" }
|
|
}
|
|
|
|
#pragma omp master
|
|
{
|
|
bad1: // { dg-error "jump|exits OpenMP" }
|
|
return; // { dg-error "invalid exit" }
|
|
}
|
|
}
|
|
|
|
// { dg-message "error: invalid branch to/from an OpenMP structured block" "" { target *-*-* } 7 }
|