6 bad1: // { dg-error "jump to label" }
7 #pragma omp target teams
8 goto bad1; // { dg-message "from here|exits OpenMP" }
10 goto bad2; // { dg-message "from here" }
11 #pragma omp target teams
13 bad2: ; // { dg-error "jump to label" }
14 // { dg-message "enters OpenMP" "" { target *-*-* } .-1 }
17 #pragma omp target teams
21 for (i = 0; i < 10; ++i)
27 #pragma omp target teams
28 { case 0:; } // { dg-error "jump" }
29 // { dg-warning "statement will never be executed" "" { target *-*-* } 27 }
30 // { dg-message "enters" "" { target *-*-* } 28 }
37 bad1: // { dg-error "jump to label" }
40 goto bad1; // { dg-message "from here|exits OpenMP" }
42 goto bad2; // { dg-message "from here" }
46 bad2: ; // { dg-error "jump to label" }
47 // { dg-message "enters OpenMP" "" { target *-*-* } .-1 }
55 for (i = 0; i < 10; ++i)
61 #pragma omp target // { dg-warning "statement will never be executed" }
63 { case 0:; } // { dg-error "jump" }
64 // { dg-message "enters" "" { target *-*-* } .-1 }
68 // { dg-error "invalid branch to/from OpenMP structured block" "" { target *-*-* } 8 }
69 // { dg-error "invalid entry to OpenMP structured block" "" { target *-*-* } 10 }
70 // { dg-error "invalid branch to/from OpenMP structured block" "" { target *-*-* } 40 }
71 // { dg-error "invalid entry to OpenMP structured block" "" { target *-*-* } 42 }