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/] [pr27416.c] - Rev 826

Compare with Previous | Blame | View Log

/* PR middle-end/27416 */
/* { dg-do compile } */
 
void
foo (void)
{
  int i = 0, j = 0;
#pragma omp for firstprivate (j) /* { dg-error "is private in outer context" } */
  for (i = 0; i < 10; i++)
    j++;
}
 
int
bar (void)
{
  int i, j;
#pragma omp for lastprivate (j)	/* { dg-error "is private in outer context" } */
  for (i = 0; i < 10; i++)
    j = i;
  return j;
}
 
int
baz (void)
{
  int i, j = 0;
#pragma omp for reduction (+:j)	/* { dg-error "is private in outer context" } */
  for (i = 0; i < 10; i++)
    j++;
  return 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.