1 /* { dg-do compile } */
7 #pragma omp target teams
8 goto bad1
; // { dg-error "invalid branch to/from OpenMP structured block" }
10 goto bad2
; // { dg-error "invalid entry to OpenMP structured block" }
11 #pragma omp target teams
16 #pragma omp target teams
20 for (i
= 0; i
< 10; ++i
)
24 switch (x
) // { dg-error "invalid entry to OpenMP structured block" }
26 #pragma omp target teams
27 { case 0:; } // { dg-warning "statement will never be executed" }
37 goto bad1
; // { dg-error "invalid branch to/from OpenMP structured block" }
39 goto bad2
; // { dg-error "invalid entry to OpenMP structured block" }
51 for (i
= 0; i
< 10; ++i
)
55 switch (x
) // { dg-error "invalid entry to OpenMP structured block" }
57 #pragma omp target // { dg-warning "statement will never be executed" }