xref: /llvm-project/clang/test/Modules/Inputs/cxx-irgen-right.h (revision 6de7a247824b4d15e97c551a919410cbce90a24f)
1 #include "cxx-irgen-top.h"
2 
h()3 inline int h() { return S<int>::f(); }
4 
5 namespace ImplicitSpecialMembers {
create_right()6   inline void create_right() {
7     // Trigger declaration, but not definition, of special members.
8     B b(0); C c(0); D d(0);
9     // Trigger definition of move constructor.
10     B b2(static_cast<B&&>(b));
11     D d2(static_cast<D&&>(d));
12   }
13 }
14