OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [appendix-a/] [a.34.2.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
 
3
void
4
work (int i, int j)
5
{
6
}
7
 
8
void
9
work1 (int i, int n)
10
{
11
  int j;
12
#pragma omp parallel default(shared)
13
  {
14
#pragma omp for
15
    for (j = 0; j < n; j++)
16
      work (i, j);
17
  }
18
}
19
void
20
good_nesting2 (int n)
21
{
22
  int i;
23
#pragma omp parallel default(shared)
24
  {
25
#pragma omp for
26
    for (i = 0; i < n; i++)
27
      work1 (i, n);
28
  }
29
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.