aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr81011.C
blob: 4abd609596cbca822788de5201d6ce648b1bdbdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/81011
// { dg-do compile }

class A { A (const A&); };		// { dg-message "declared private here" }
void foo (const A&);

void
bar (A& a)
{
#pragma omp task			// { dg-error "is private within this context" }
  foo (a);
}

void
baz (A& a)
{
#pragma omp task firstprivate (a)	// { dg-error "is private within this context" }
  foo (a);
}