2 // { dg-options "-fopenmp" }
4 struct A { int i; A (); ~A (); };
6 struct C { int i; mutable int j; C (); ~C (); };
8 template <typename T> void bar (const T *);
13 const A foo (const A d, const C e)
18 #pragma omp parallel private (a) // { dg-error "may appear only in 'shared' or 'firstprivate' clauses" }
20 #pragma omp parallel private (b) // { dg-error "may appear only in 'shared' or 'firstprivate' clauses" }
22 #pragma omp parallel private (c)
24 #pragma omp parallel private (d) // { dg-error "may appear only in 'shared' or 'firstprivate' clauses" }
26 #pragma omp parallel private (e)
28 #pragma omp parallel private (f) // { dg-error "may appear only in 'shared' or 'firstprivate' clauses" }
30 #pragma omp parallel private (g)