瀏覽代碼

Remember to surround the other deprecated test in the Borland check.

Stephen Kelly 14 年之前
父節點
當前提交
1c6b41bee7
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt

+ 4 - 1
Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt

@@ -11,5 +11,8 @@ static_build_pass("Libstatic l; return l.libstatic_exported();" "Failed to build
 
 if (NOT ${CMAKE_CXX_COMPILER_ID} MATCHES Borland)
   static_build_fail("Libstatic l; return l.libstatic_deprecated();" "Built use of deprecated class method. This should not be possible.")
+  static_build_fail("libstatic_deprecated();" "Built use of deprecated function. This should not be possible.")
+else()
+  static_build_pass("Libstatic l; return l.libstatic_deprecated();" "Built use of deprecated class method. This should not be possible.")
+  static_build_pass("libstatic_deprecated();" "Built use of deprecated function. This should not be possible.")
 endif()
-static_build_fail("libstatic_deprecated();" "Built use of deprecated function. This should not be possible.")