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/] [sharing-2.c] - Rev 149

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

/* { dg-do compile } */
 
void
foo (void)
{
  int i;
  int a[10];
  #pragma omp parallel private (i) shared (a)
  {
    i = 1;
    #pragma omp parallel shared (a, i)
    {
      #pragma omp master
	i = 2;
      #pragma omp parallel private (i) shared (a)
      {
	for (i = 0; i < 10; i++)
	  a[i] = i + 1;
      }
      #pragma omp master
	i = 3;
    }
    i = 4;
  }
}
 

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.