From af53b6eadb4926677877c1e50f9b84cc7e90d9a9 Mon Sep 17 00:00:00 2001 From: neargye Date: Tue, 26 Mar 2019 12:37:43 +0500 Subject: [PATCH] fix test --- test/test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.cpp b/test/test.cpp index 0d89a9d..7b3a3c3 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -454,7 +454,7 @@ TEST_CASE("Spaces and Tabs ignored") { REQUIRE(NAMEOF( struct_var ) == "struct_var"); REQUIRE(NAMEOF_FULL( struct_var ) == "struct_var"); REQUIRE(NAMEOF_RAW( struct_var ) == "struct_var"); -#if defined(__clang__) || defined(_MSC_VER) +#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) REQUIRE(NAMEOF_ENUM( color ) == "RED"); #elif defined(__GNUC__) REQUIRE(NAMEOF_ENUM( color ) == "(Color)-1"); @@ -467,7 +467,7 @@ TEST_CASE("Spaces and Tabs ignored") { REQUIRE(NAMEOF( struct_var ) == "struct_var"); REQUIRE(NAMEOF_FULL( struct_var ) == "struct_var"); REQUIRE(NAMEOF_RAW( struct_var ) == "struct_var"); -#if defined(__clang__) || defined(_MSC_VER) +#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) REQUIRE(NAMEOF_ENUM( color ) == "RED"); #elif defined(__GNUC__) REQUIRE(NAMEOF_ENUM( color ) == "(Color)-1");