diff options
Diffstat (limited to 'test/Modules/Inputs/redecl-add-after-load.h')
-rw-r--r-- | test/Modules/Inputs/redecl-add-after-load.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/Modules/Inputs/redecl-add-after-load.h b/test/Modules/Inputs/redecl-add-after-load.h new file mode 100644 index 000000000000..6951a76289f0 --- /dev/null +++ b/test/Modules/Inputs/redecl-add-after-load.h @@ -0,0 +1,23 @@ +struct A {}; +extern const int variable = 0; +extern constexpr int function() { return 0; } + +namespace N { + struct A {}; + extern const int variable = 0; + extern constexpr int function() { return 0; } +} + +@import redecl_add_after_load_top; +struct C::A {}; +const int C::variable = 0; +constexpr int C::function() { return 0; } + +struct D { + struct A; + static const int variable; + static constexpr int function(); +}; +struct D::A {}; +const int D::variable = 0; +constexpr int D::function() { return 0; } |