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/] [appendix-a/] [a.21.2.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
 
3
void
4
work (int i)
5
{
6
}
7
 
8
void
9
a21_wrong (int n)
10
{
11
  int i;
12
#pragma omp for ordered
13
  for (i = 0; i < n; i++)
14
    {
15
/* incorrect because an iteration may not execute more than one
16
    ordered region */
17
#pragma omp ordered
18
      work (i);
19
#pragma omp ordered
20
      work (i + 1);
21
    }
22
}

powered by: WebSVN 2.1.0

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