You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
345 B
14 lines
345 B
4 months ago
|
#include "cxx-irgen-top.h"
|
||
|
|
||
|
inline int h() { return S<int>::f(); }
|
||
|
|
||
|
namespace ImplicitSpecialMembers {
|
||
|
inline void create_right() {
|
||
|
// Trigger declaration, but not definition, of special members.
|
||
|
B b(0); C c(0); D d(0);
|
||
|
// Trigger definition of move constructor.
|
||
|
B b2(static_cast<B&&>(b));
|
||
|
D d2(static_cast<D&&>(d));
|
||
|
}
|
||
|
}
|