Features: Fix test to reject missing expectation definitions

Whenever feature support is added to a compiler, the CompileFeatures
test needs to be updated to set expected availability of features.
Add #error directives to ensure the test fails if expectations are
not set.

Suggested-by: Stephen Kelly <steveire@gmail.com>
This commit is contained in:
Brad King 2015-01-26 14:25:22 -05:00
parent 3046be7784
commit 67e76e82df
1 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,15 @@
#ifndef EXPECT_FINAL
# error EXPECT_FINAL not defined
#endif
#ifndef EXPECT_INHERITING_CONSTRUCTORS
# error EXPECT_INHERITING_CONSTRUCTORS not defined
#endif
#ifndef EXPECT_INHERITING_CONSTRUCTORS_AND_FINAL
# error EXPECT_INHERITING_CONSTRUCTORS_AND_FINAL not defined
#endif
#ifndef EXPECT_OVERRIDE_CONTROL
# error EXPECT_OVERRIDE_CONTROL not defined
#endif
#if !HAVE_OVERRIDE_CONTROL
#if EXPECT_OVERRIDE_CONTROL