URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr35328.C] - Rev 308
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/35328
// { dg-do compile }
// { dg-options "-fopenmp" }
struct A
{
~A ()(); // { dg-error "declared as function returning a function" }
};
struct B
{
B ()(); // { dg-error "declared as function returning a function" }
};
struct C
{
C ();
C (const C &)(); // { dg-error "declared as function returning a function" }
};
void
foo ()
{
A a;
B b;
C c;
#pragma omp parallel firstprivate (a)
;
#pragma omp parallel private (b)
;
#pragma omp parallel firstprivate (c)
;
}
Go to most recent revision | Compare with Previous | Blame | View Log