Browse Source

Features: Emit a test failure if 'override' is present but not expected

Stephen Kelly 10 years ago
parent
commit
3046be7784
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Tests/CompileFeatures/genex_test.cpp

+ 3 - 0
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
 {