brintos

brintos / llvm-project-archived public Read only

0
0
Text · 586 B · 31ae805 Raw
27 lines · c
1#include "cxx-irgen-top.h"2 3S<int> s;4 5inline int instantiate_min() {6  return min(1, 2);7}8 9inline int instantiate_CtorInit(CtorInit<int> i = CtorInit<int>()) {10  return i.a;11}12 13namespace ImplicitSpecialMembers {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 22namespace OperatorDeleteLookup {23  // Trigger definition of A::~A() and lookup of operator delete.24  // Likewise for B<int>::~B().25  inline void f() { A a; B<int> b; }26}27