blob: 2bc1cdb5723d79a6cfcd245697d6e87fbbb6e5b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// { dg-do compile }
void foo()
{
int i, j;
for (i = 0; i < 10; ++i)
{
#pragma omp for
for (j = ({ continue; 0; }); // { dg-error "invalid branch" }
j < ({ continue; 10; }); // { dg-error "invalid branch" }
j += ({ continue; 1; })) // { dg-error "invalid branch" }
continue;
#pragma omp for
for (j = ({ break; 0; }); // { dg-error "invalid branch" }
j < ({ break; 10; }); // { dg-error "invalid branch" }
j += ({ break; 1; })) // { dg-error "invalid branch" }
break; // { dg-error "break" }
}
}
|