1 #include "cxx-irgen-top.h" 2 3 S<int> s; 4 instantiate_min()5inline int instantiate_min() { 6 return min(1, 2); 7 } 8 9 inline int instantiate_CtorInit(CtorInit<int> i = CtorInit<int>()) { 10 return i.a; 11 } 12 13 namespace ImplicitSpecialMembers { create_left()14 inline void create_left() { 15 // Trigger declaration, but not definition, of special members. 16 B b(0); C c(0); D d(0); 17 // Trigger definition of copy constructor. 18 C c2(c); D d2(d); 19 } 20 } 21 22 namespace OperatorDeleteLookup { 23 // Trigger definition of A::~A() and lookup of operator delete. 24 // Likewise for B<int>::~B(). f()25 inline void f() { A a; B<int> b; } 26 } 27