aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/inh-ctor31.C
blob: 3ce080d115b01ff72e46888db6b1f3ef3aca0f93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile { target c++11 } }

struct B;
struct A
{
  A(const B&, int = 0);
};

struct B: A
{
  using A::A;
};

extern B b;
B b2{b};