]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp1z/inh-ctor33.C
Implement P0136R1, Rewording inheriting constructors.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp1z / inh-ctor33.C
1 // { dg-do link { target c++11 } }
2 // { dg-options -fnew-inheriting-ctors }
3
4 struct A
5 {
6 A() { }
7 A(const A&); // should never be called
8 };
9
10 struct B
11 {
12 B(A) { }
13 };
14
15 struct C: B
16 {
17 using B::B;
18 };
19
20 int main()
21 {
22 C c{A()};
23 }