2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / pr81011.C
blob4abd609596cbca822788de5201d6ce648b1bdbdb
1 // PR c++/81011
2 // { dg-do compile }
4 class A { A (const A&); };              // { dg-message "declared private here" }
5 void foo (const A&);
7 void
8 bar (A& a)
10 #pragma omp task                        // { dg-error "is private within this context" }
11   foo (a);
14 void
15 baz (A& a)
17 #pragma omp task firstprivate (a)       // { dg-error "is private within this context" }
18   foo (a);