Richard Smith | d28ac5b | 2014-03-22 23:33:22 +0000 | [diff] [blame] | 1 | #include "cxx-irgen-top.h" |
2 | |||||
3 | inline int h() { return S<int>::f(); } | ||||
Richard Smith | 6de7a24 | 2014-07-31 23:46:44 +0000 | [diff] [blame] | 4 | |
5 | namespace 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 | } |