OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [appendix-a/] [a.35.4.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
wrong4 (int n)
5
{
6
#pragma omp parallel default(shared)
7
  {
8
    int i;
9
#pragma omp for
10
    for (i = 0; i < n; i++)
11
      {
12
        work (i, 0);
13
        /* incorrect nesting of barrier region in a loop region */
14
#pragma omp barrier     /* { dg-warning "may not be closely nested" } */
15
        work (i, 1);
16
      }
17
  }
18
}

powered by: WebSVN 2.1.0

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