OpenCores
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" } */
    ;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.