summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr26690-2.C
blob: ec93cd11a248b5d373caa05f3a66a570e5ca5697 (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
{
  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" }
  ;
}