Просмотр исходного кода

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

Stephen Kelly 11 лет назад
Родитель
Сommit
3046be7784
1 измененных файлов с 3 добавлено и 0 удалено
  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
 {