diff --git a/Tests/CompileFeatures/CMakeLists.txt b/Tests/CompileFeatures/CMakeLists.txt index 106f29c0c..9de0da27e 100644 --- a/Tests/CompileFeatures/CMakeLists.txt +++ b/Tests/CompileFeatures/CMakeLists.txt @@ -194,7 +194,7 @@ if (CMAKE_CXX_COMPILE_FEATURES) set_property(TARGET CompileFeaturesGenex PROPERTY CXX_STANDARD 11) target_compile_definitions(CompileFeaturesGenex PRIVATE HAVE_OVERRIDE_CONTROL=$ - HAVE_NULLPTR=$ + HAVE_AUTO_TYPE=$ HAVE_INHERITING_CONSTRUCTORS=$ HAVE_FINAL=$ HAVE_INHERITING_CONSTRUCTORS_AND_FINAL=$ @@ -204,7 +204,7 @@ if (CMAKE_CXX_COMPILE_FEATURES) target_compile_features(CompileFeaturesGenex2 PRIVATE cxx_static_assert) target_compile_definitions(CompileFeaturesGenex2 PRIVATE HAVE_OVERRIDE_CONTROL=$ - HAVE_NULLPTR=$ + HAVE_AUTO_TYPE=$ HAVE_INHERITING_CONSTRUCTORS=$ HAVE_FINAL=$ HAVE_INHERITING_CONSTRUCTORS_AND_FINAL=$ @@ -216,7 +216,7 @@ if (CMAKE_CXX_COMPILE_FEATURES) target_link_libraries(CompileFeaturesGenex3 PRIVATE static_assert_iface) target_compile_definitions(CompileFeaturesGenex3 PRIVATE HAVE_OVERRIDE_CONTROL=$ - HAVE_NULLPTR=$ + HAVE_AUTO_TYPE=$ HAVE_INHERITING_CONSTRUCTORS=$ HAVE_FINAL=$ HAVE_INHERITING_CONSTRUCTORS_AND_FINAL=$ diff --git a/Tests/CompileFeatures/genex_test.cpp b/Tests/CompileFeatures/genex_test.cpp index 0389dbddb..d9c8eec67 100644 --- a/Tests/CompileFeatures/genex_test.cpp +++ b/Tests/CompileFeatures/genex_test.cpp @@ -17,9 +17,9 @@ struct B final : A #endif -#if !HAVE_NULLPTR -#error "Expect nullptr feature" -#else +#if !HAVE_AUTO_TYPE +# error Expect cxx_auto_type support +#endif #if !HAVE_INHERITING_CONSTRUCTORS # if EXPECT_INHERITING_CONSTRUCTORS @@ -51,13 +51,6 @@ struct B final : A # endif #endif -const char* getString() -{ - return nullptr; -} - -#endif - int main() {