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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [appendix-a/] [a.35.1.c] - Rev 689

Compare with Previous | Blame | View Log

/* { dg-do compile } */
 
void
work (int i, int j)
{
}
 
void
wrong1 (int n)
{
#pragma omp parallel default(shared)
  {
    int i, j;
#pragma omp for
    for (i = 0; i < n; i++)
      {
	/* incorrect nesting of loop regions */
#pragma omp for		/* { dg-warning "may not be closely nested" } */
	for (j = 0; j < n; j++)
	  work (i, j);
      }
  }
}
 

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.