Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / block-1.c
blobe67e6c3fce59bdd6d752f864728ff189efc0ea2e
1 // { dg-do compile }
3 void foo()
5 bad1:
6 #pragma omp parallel
7 goto bad1; // { dg-error "invalid branch to/from OpenMP structured block" }
9 goto bad2; // { dg-error "invalid entry to OpenMP structured block" }
10 #pragma omp parallel
12 bad2: ;
15 #pragma omp parallel
17 int i;
18 goto ok1;
19 for (i = 0; i < 10; ++i)
20 { ok1: break; }