llvm-for-llvmta/tools/clang/test/Modules/Inputs/cxx-irgen-right.h

14 lines
345 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
#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));
}
}