2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / inh-ctor33.C
blob0e8520745a966b21c8e2364501c25b4fe4fcb2da
1 // { dg-do link { target c++11 } }
2 // { dg-options -fnew-inheriting-ctors }
4 struct A
6   A() { }
7   A(const A&);                  // should never be called
8 };
10 struct B
12   B(A) { }
15 struct C: B
17   using B::B;
20 int main()
22   C c{A()};