Let tree_single_nonzero_warnv_p use range information
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / taskgroup-1.c
blobf39b7ef725534b6433ebc2660826b1cb79b8b8c2
1 /* { dg-do compile } */
3 void
4 foo (int x)
6 bad1:
7 #pragma omp taskgroup
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 taskgroup
13 bad2: ;
16 #pragma omp taskgroup
18 int i;
19 goto ok1;
20 for (i = 0; i < 10; ++i)
21 { ok1: break; }
24 switch (x) // { dg-error "invalid entry to OpenMP structured block" }
26 #pragma omp taskgroup // { dg-warning "statement will never be executed" }
27 { case 0:; }