aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/explicit4.C
blob: 4a73de52545601bd3803614f57d3753b9bb4045b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/66392

struct B { };

struct A {
  explicit A (A const&);
  A (B const&);
};

int main () {
  A x = B ();
}