fix test, msvc 14 bug
This commit is contained in:
parent
713a504d5f
commit
e155d22c34
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,7 @@ TEST_CASE("constexpr") {
|
||||||
constexpr auto cx5 = NAMEOF_FULL(__cplusplus);
|
constexpr auto cx5 = NAMEOF_FULL(__cplusplus);
|
||||||
REQUIRE(std::strcmp(cx5, "__cplusplus") == 0);
|
REQUIRE(std::strcmp(cx5, "__cplusplus") == 0);
|
||||||
}
|
}
|
||||||
|
#if !defined(_MSC_VER) || _MSC_VER > 1910
|
||||||
|
|
||||||
SECTION("NAMEOF_VARIABLE") {
|
SECTION("NAMEOF_VARIABLE") {
|
||||||
constexpr auto cx1 = NAMEOF_VARIABLE((&somevar)->somefield);
|
constexpr auto cx1 = NAMEOF_VARIABLE((&somevar)->somefield);
|
||||||
|
@ -107,6 +108,8 @@ TEST_CASE("constexpr") {
|
||||||
constexpr auto cx1 = NAMEOF_VARIABLE_FULL((&somevar)->somefield);
|
constexpr auto cx1 = NAMEOF_VARIABLE_FULL((&somevar)->somefield);
|
||||||
REQUIRE(std::strcmp(cx1, "(&somevar)->somefield") == 0);
|
REQUIRE(std::strcmp(cx1, "(&somevar)->somefield") == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("simple name") {
|
TEST_CASE("simple name") {
|
||||||
|
|
Loading…
Reference in a new issue