summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/ctor6.C
blob: 0b14ecc6eb215390fc3a8b5625fb2276140b9c69 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do compile }

// There is no ambiguity in finding a right constructor for X b(a).

class X {
public:
  X(const X&, int = 3);
};

extern X a;
X b(a);