blob: 6b50ff03032fb689e8fe762f9a84f3545c9a8e37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// PR c/25996
void
test1 (void)
{
#pragma omp for
for (i = 0; i < 1; ++i); // { dg-error "not declared|expected iteration decl" }
}
void
test2 (void)
{
int i;
#pragma omp for
for (i = j; i < 1; ++i); // { dg-error "not declared|expected iteration decl" }
}
void
test3 (void)
{
int i;
#pragma omp for
for (i = 0; i < j; ++i); // { dg-error "not declared|invalid controlling predicate" }
}
void
test4 (void)
{
int i;
#pragma omp for
for (i = 0; i < 10; i += j); // { dg-error "not declared|invalid increment expression" }
}
|