☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor20.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/inh-ctor20.C
code
plain
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{});