brintos

brintos / llvm-project-archived public Read only

0
0
Text · 345 B · 30686a1 Raw
14 lines · c
1#include "cxx-irgen-top.h"2 3inline int h() { return S<int>::f(); }4 5namespace ImplicitSpecialMembers {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