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

struct X
{
  X(int) {}
  explicit X(X const &) {}
};

int main()
{
  X x = 1;
}