1 typedef struct A B; 2 extern const int variable; 3 extern constexpr int function(); test(bool b)4constexpr 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; N_test(bool b)12constexpr int N_test(bool b) { return b ? N::variable : N::function(); } 13 14 @import redecl_add_after_load_top; 15 typedef C::A CB; C_test(bool b)16constexpr 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; D_test(bool b)24constexpr int D_test(bool b) { return b ? D::variable : D::function(); } 25