Debian Codegraph @

gcc/testsuite/g++.dg/gomp/pr81011.C

raw
1 // PR c++/81011
2 // { dg-do compile }
3
4 class A { A (const A&); }; // { dg-message "declared private here" }
5 void foo (const A&);
6
7 void
8 bar (A& a)
9 {
10 #pragma omp task // { dg-error "is private within this context" }
11 foo (a);
12 }
13
14 void
15 baz (A& a)
16 {
17 #pragma omp task firstprivate (a) // { dg-error "is private within this context" }
18 foo (a);
19 }