Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Modules / Inputs / redecl-add-after-load-decls.h
bloba4227971a876317af1737ce34ec272672788fda0
1 typedef struct A B;
2 extern const int variable;
3 extern constexpr int function();
4 constexpr int test(bool b) { return b ? variable : function(); }
6 namespace N {
7 typedef struct A B;
8 extern const int variable;
9 extern constexpr int function();
11 typedef N::B NB;
12 constexpr int N_test(bool b) { return b ? N::variable : N::function(); }
14 @import redecl_add_after_load_top;
15 typedef C::A CB;
16 constexpr int C_test(bool b) { return b ? C::variable : C::function(); }
18 struct D {
19 struct A;
20 static const int variable;
21 static constexpr int function();
23 typedef D::A DB;
24 constexpr int D_test(bool b) { return b ? D::variable : D::function(); }