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.35.5.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
wrong5 (int n)
5
{
6
#pragma omp parallel
7
  {
8
#pragma omp critical
9
    {
10
      work (n, 0);
11
/* incorrect nesting of barrier region in a critical region */
12
#pragma omp barrier
13
      work (n, 1);
14
    }
15
  }
16
}

powered by: WebSVN 2.1.0

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