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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr27325.C] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR middle-end/27325
2
// { dg-do compile }
3
// { dg-options "-O2 -fopenmp" }
4
 
5
struct A { A(); ~A(); int i; };
6
 
7
int
8
foo ()
9
{
10
  A a;
11
#pragma omp parallel private (a)
12
  for (int i = 0; i < 5; ++i)
13
    a.i++;
14
  return 0;
15
}
16
 
17
int
18
bar ()
19
{
20
  A a;
21
#pragma omp for private (a)
22
  for (int i = 0; i < 5; ++i)
23
    a.i++;
24
  return 0;
25
}

powered by: WebSVN 2.1.0

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