Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / block-9.c
blob202599f2ae2e030077c8c89b8ea87147b3022e2b
1 // { dg-do compile }
3 void foo(int i)
5 int j;
6 switch (i) // { dg-error "invalid entry to OpenMP structured block" }
8 #pragma omp parallel // { dg-warning "statement will never be executed" }
9 { case 0:; }
10 #pragma omp for
11 for (j = 0; j < 10; ++ j)
12 { case 1:; }
13 #pragma omp critical
14 { case 2:; }
15 #pragma omp master
16 { case 3:; }
17 #pragma omp sections
18 { case 4:;
19 #pragma omp section
20 { case 5:; }
22 #pragma omp ordered
23 { default:; }