URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr25996.C] - Rev 839
Go to most recent revision | Compare with Previous | Blame | View Log
// 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" }
}
Go to most recent revision | Compare with Previous | Blame | View Log