summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/genex_test.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-17 14:58:45 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-17 15:07:53 (GMT)
commit782591350ced90d4289d220f91bdbdb4acec2ba6 (patch)
tree45739d77ac4372f36ad54952ef696c6a73872d8e /Tests/CompileFeatures/genex_test.cpp
parent7b9fc88b045fd34df73e3cc864c9ac924a449cd3 (diff)
downloadCMake-782591350ced90d4289d220f91bdbdb4acec2ba6.zip
CMake-782591350ced90d4289d220f91bdbdb4acec2ba6.tar.gz
CMake-782591350ced90d4289d220f91bdbdb4acec2ba6.tar.bz2
Features: Test presence of cxx_auto_type with genex.
The purpose of that test is to cover the case where the genex reports '1', and the feature is chosen to be present on all/most supported compilers. GNU 4.4 does not support cxx_nullptr.
Diffstat (limited to 'Tests/CompileFeatures/genex_test.cpp')
-rw-r--r--Tests/CompileFeatures/genex_test.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/Tests/CompileFeatures/genex_test.cpp b/Tests/CompileFeatures/genex_test.cpp
index 0389dbd..d9c8eec 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()
{