summaryrefslogtreecommitdiffstats
path: root/test/Modules/Inputs/cxx-irgen-right.h
blob: 30686a12479a29bc2b72ecafff541ea97dcbc772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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));
  }
}
OpenPOWER on IntegriCloud