Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/inh-ctor20.C

raw
1 // PR c++/70972
2 // { dg-do compile { target c++11 } }
3
4 struct moveonly {
5 moveonly(moveonly&&) = default;
6 moveonly() = default;
7 };
8
9 struct A {
10 A(moveonly) {}
11 };
12 struct B : A {
13 using A::A;
14 };
15
16 B b(moveonly{});