aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/inh-ctor28.C
blob: 55e1d8c943f976f60eca8fe95e00468dff452ae5 (plain)
1
2
3
4
5
6
7
// { dg-do compile { target c++11 } }
// { dg-options -fnew-inheriting-ctors }

struct V { V(int); };
struct W : virtual V { using V::V; };
struct X : virtual W, virtual V { using W::W; };
X x(0);