xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/Inputs/redecl-add-after-load.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc struct A {};
2*0a6a1f1dSLionel Sambuc extern const int variable = 0;
function()3*0a6a1f1dSLionel Sambuc extern constexpr int function() { return 0; }
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc namespace N {
6*0a6a1f1dSLionel Sambuc   struct A {};
7*0a6a1f1dSLionel Sambuc   extern const int variable = 0;
function()8*0a6a1f1dSLionel Sambuc   extern constexpr int function() { return 0; }
9*0a6a1f1dSLionel Sambuc }
10*0a6a1f1dSLionel Sambuc 
11*0a6a1f1dSLionel Sambuc @import redecl_add_after_load_top;
12*0a6a1f1dSLionel Sambuc struct C::A {};
13*0a6a1f1dSLionel Sambuc const int C::variable = 0;
function()14*0a6a1f1dSLionel Sambuc constexpr int C::function() { return 0; }
15*0a6a1f1dSLionel Sambuc 
16*0a6a1f1dSLionel Sambuc struct D {
17*0a6a1f1dSLionel Sambuc   struct A;
18*0a6a1f1dSLionel Sambuc   static const int variable;
19*0a6a1f1dSLionel Sambuc   static constexpr int function();
20*0a6a1f1dSLionel Sambuc };
21*0a6a1f1dSLionel Sambuc struct D::A {};
22*0a6a1f1dSLionel Sambuc const int D::variable = 0;
function()23*0a6a1f1dSLionel Sambuc constexpr int D::function() { return 0; }
24