Merge topic 'test-features-enforce-expectation'

67e76e82 Features: Fix test to reject missing expectation definitions
3046be77 Features: Emit a test failure if 'override' is present but not expected
This commit is contained in:
Brad King 2015-01-27 11:22:12 -05:00 committed by CMake Topic Stage
commit c1f5d6e6f5
1 changed files with 15 additions and 0 deletions

View File

@ -1,9 +1,24 @@
#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
#error "Expect override control feature"
#endif
#else
#if !EXPECT_OVERRIDE_CONTROL
#error "Expect no override control feature"
#endif
struct A
{