2014-05-20 04:59:20 +08:00
|
|
|
typedef struct A B;
|
|
|
|
extern const int variable;
|
|
|
|
extern constexpr int function();
|
|
|
|
constexpr int test(bool b) { return b ? variable : function(); }
|
|
|
|
|
|
|
|
namespace N {
|
|
|
|
typedef struct A B;
|
|
|
|
extern const int variable;
|
|
|
|
extern constexpr int function();
|
|
|
|
}
|
|
|
|
typedef N::B NB;
|
|
|
|
constexpr int N_test(bool b) { return b ? N::variable : N::function(); }
|
|
|
|
|
|
|
|
@import redecl_add_after_load_top;
|
|
|
|
typedef C::A CB;
|
|
|
|
constexpr int C_test(bool b) { return b ? C::variable : C::function(); }
|
|
|
|
|
|
|
|
struct D {
|
2015-03-28 05:16:39 +08:00
|
|
|
struct A;
|
2014-05-20 04:59:20 +08:00
|
|
|
static const int variable;
|
2015-03-28 05:16:39 +08:00
|
|
|
static constexpr int function();
|
2014-05-20 04:59:20 +08:00
|
|
|
};
|
|
|
|
typedef D::A DB;
|
2015-03-28 05:16:39 +08:00
|
|
|
constexpr int D_test(bool b) { return b ? D::variable : D::function(); }
|