URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [pr34607.c] - Rev 826
Compare with Previous | Blame | View Log
/* PR c++/34607 */ /* { dg-do compile } */ /* { dg-options "-fopenmp -std=gnu99" } */ /* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 0 } */ void foo () { #pragma omp for for (int i =; i < 2; ++i) /* { dg-error "expected expression before" } */ ; #pragma omp for for (T i = 54; i < 56; i++) /* { dg-error "expected iteration declaration" } */ ; T j; /* { dg-error "undeclared|for each function|expected" } */ #pragma omp for for (j = 1; j < 3; j++) /* { dg-error "undeclared" } */ ; }