summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-24 14:22:23 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-26 19:41:33 (GMT)
commit3046be77847ce54baae1d432dec224282dedcc16 (patch)
treeadcb3a7dc82434cae0e4df03a7c9202f6ee5e9fa /Tests/CompileFeatures
parent9b4d4344c67bece5b8074f6fc711feb6a169121b (diff)
downloadCMake-3046be77847ce54baae1d432dec224282dedcc16.zip
CMake-3046be77847ce54baae1d432dec224282dedcc16.tar.gz
CMake-3046be77847ce54baae1d432dec224282dedcc16.tar.bz2
Features: Emit a test failure if 'override' is present but not expected
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r--Tests/CompileFeatures/genex_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/genex_test.cpp b/Tests/CompileFeatures/genex_test.cpp
index d9c8eec..7919eb4 100644
--- a/Tests/CompileFeatures/genex_test.cpp
+++ b/Tests/CompileFeatures/genex_test.cpp
@@ -4,6 +4,9 @@
#error "Expect override control feature"
#endif
#else
+#if !EXPECT_OVERRIDE_CONTROL
+#error "Expect no override control feature"
+#endif
struct A
{