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/] [pr27388-1.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR middle-end/27388 */
2
/* { dg-do compile } */
3
/* { dg-options "-fopenmp -fdump-tree-omplower" } */
4
 
5
int n, o;
6
 
7
void
8
foo (void)
9
{
10
#pragma omp parallel firstprivate (n)
11
  {
12
    int i;
13
#pragma omp parallel for firstprivate (n)
14
    for (i = 0; i < 10; i++)
15
      ++n;
16
#pragma omp atomic
17
    o += n;
18
  }
19
}
20
 
21
/* { dg-final { scan-tree-dump-times "shared\\\(i\\\)" 0 "omplower" } } */
22
/* { dg-final { scan-tree-dump-times "private\\\(i\\\)" 1 "omplower" } } */
23
/* { dg-final { cleanup-tree-dump "omplower" } } */

powered by: WebSVN 2.1.0

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