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

struct A			// { dg-message "A::A|candidate expects" }
{
  A (int);				// { dg-message "note" }
};

void
foo ()
{
  A a(0);
#pragma omp parallel private (a)	// { dg-error "no matching function" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 13 }
  ;
}