summaryrefslogtreecommitdiff
path: root/Tests/CompileFeatures
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-24 15:22:23 +0100
committerBrad King <brad.king@kitware.com>2015-01-26 14:41:33 -0500
commit3046be77847ce54baae1d432dec224282dedcc16 (patch)
treeadcb3a7dc82434cae0e4df03a7c9202f6ee5e9fa /Tests/CompileFeatures
parent9b4d4344c67bece5b8074f6fc711feb6a169121b (diff)
downloadcmake-3046be77847ce54baae1d432dec224282dedcc16.tar.gz
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 d9c8eec671..7919eb4019 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
{