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.2.2/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [appendix-a/] [a.21.3.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
 
3
void work (int);
4
 
5
void
6
a21_good (int n)
7
{
8
  int i;
9
#pragma omp for ordered
10
  for (i = 0; i < n; i++)
11
    {
12
      if (i <= 10)
13
        {
14
#pragma omp ordered
15
          work (i);
16
        }
17
      if (i > 10)
18
        {
19
#pragma omp ordered
20
          work (i + 1);
21
        }
22
    }
23
}

powered by: WebSVN 2.1.0

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