OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [block-7.c] - Rev 867

Go to most recent revision | Compare with Previous | Blame | View Log

// { dg-do compile }
 
void foo()
{
  int i, j;
  for (i = 0; i < 10; ++i)
    {
      #pragma omp for
      for (j = ({ continue; 0; });	// { dg-error "invalid exit" }
	   j < ({ continue; 10; });	// { dg-error "invalid exit" }
	   j += ({ continue; 1; }))	// { dg-error "invalid exit" }
	continue;
 
      #pragma omp for
      for (j = ({ break; 0; });		// { dg-error "invalid exit" }
	   j < ({ break; 10; });	// { dg-error "invalid exit" }
	   j += ({ break; 1; }))	// { dg-error "invalid exit" }
	break;				// { dg-error "break" }
    }
}
 

Go to most recent revision | 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.