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(); } |
5 | |
6 | namespace N { |
7 | typedef struct A B; |
8 | extern const int variable; |
9 | extern constexpr int function(); |
10 | } |
11 | typedef N::B NB; |
12 | constexpr int N_test(bool b) { return b ? N::variable : N::function(); } |
13 | |
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(); } |
17 | |
18 | struct D { |
19 | struct A; |
20 | static const int variable; |
21 | static constexpr int function(); |
22 | }; |
23 | typedef D::A DB; |
24 | constexpr int D_test(bool b) { return b ? D::variable : D::function(); } |
25 | |