URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr27325.C] - Rev 693
Compare with Previous | Blame | View Log
// PR middle-end/27325
// { dg-do compile }
// { dg-options "-O2 -fopenmp" }
struct A { A(); ~A(); int i; };
int
foo ()
{
A a;
#pragma omp parallel private (a)
for (int i = 0; i < 5; ++i)
a.i++;
return 0;
}
int
bar ()
{
A a;
#pragma omp for private (a)
for (int i = 0; i < 5; ++i)
a.i++;
return 0;
}