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

struct A
{
  A (int x = 6);			// { dg-message "A::A\\(int\\)" }
  A (long long x = 12LL);		// { dg-message "note" }
};

void
foo ()
{
  A a(6);
#pragma omp parallel private (a)	// { dg-error "call of overloaded" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 14 }
  ;
}