From 1c6b41bee7fb1e2b85be4ab3497889ab72089f69 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 11 Aug 2011 00:19:20 +0200 Subject: Remember to surround the other deprecated test in the Borland check. --- Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt b/Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt index a41b168..168cae8 100644 --- a/Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt +++ b/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.") -- cgit v0.12