Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / pr35328.C
blob718283b5957fd86b0180be9bd779d9dc1cb29ebf
1 // PR c++/35328
2 // { dg-do compile }
3 // { dg-options "-fopenmp" }
5 struct A
7   ~A ()();              // { dg-error "declared as function returning a function" }
8 };
9 struct B
11   B ()();               // { dg-error "declared as function returning a function" }
13 struct C
15   C ();
16   C (const C &)();      // { dg-error "declared as function returning a function" }
19 void
20 foo ()
22   A a;
23   B b;
24   C c;
25   #pragma omp parallel firstprivate (a)
26     ;
27   #pragma omp parallel private (b)
28     ;
29   #pragma omp parallel firstprivate (c)
30     ;