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/] [pr27415.c] - Rev 816

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

/* PR middle-end/27415 */
/* { dg-do compile } */
 
void
test1 (void)
{
  int i = 0;
#pragma omp parallel
#pragma omp for firstprivate (i)		/* { dg-error "should not be firstprivate" } */
  for (i = 0; i < 10; i++)
    ;
}
 
void
test2 (void)
{
  int i = 0;
#pragma omp parallel for firstprivate (i)	/* { dg-error "should not be firstprivate" } */
  for (i = 0; i < 10; i++)
    ;
}
 
void
test3 (void)
{
  int i = 0;
#pragma omp parallel
#pragma omp for reduction (+:i)			/* { dg-error "should not be reduction" } */
  for (i = 0; i < 10; i++)
    ;
}
 
void
test4 (void)
{
  int i = 0;
#pragma omp parallel for reduction (*:i)	/* { dg-error "should not be reduction" } */
  for (i = 0; i < 10; i++)
    ;
}
 
void
test5 (void)
{
  int i = 0;
#pragma omp parallel firstprivate (i)
#pragma omp for
  for (i = 0; i < 10; i++)
    ;
}
 

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.