aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/inh-ctor4.C
blob: 16dc19731bbe4e63b7378fb8bee7888fbe3db0ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// From N3337
// { dg-do compile { target c++11 } }

struct B1 {
  B1(int);
};
struct B2 {
  B2(int = 13, int = 42);
};
struct D1 : B1 {
  using B1::B1;
};
struct D2 : B2 {
  using B2::B2;
};

D1 d1(1);
D2 d2a(2), d2b(3,4);