Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Modules / Inputs / cxx-irgen-left.h
blob31ae805c9a19bff60610dc60fb19b906d5cbfa1f
1 #include "cxx-irgen-top.h"
3 S<int> s;
5 inline int instantiate_min() {
6 return min(1, 2);
9 inline int instantiate_CtorInit(CtorInit<int> i = CtorInit<int>()) {
10 return i.a;
13 namespace 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);
22 namespace 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; }