From 42a34e4722a39b39d3c89b6ba4aebd05999120ec Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 7 Mar 2002 22:07:57 -0500 Subject: ENH: add more junk for the dec cxx compiler to force it to instantiate stuff --- Tests/Complex/Executable/complex.cxx | 5 +++++ Tests/ComplexOneConfig/Executable/complex.cxx | 5 +++++ Tests/ComplexRelativePaths/Executable/complex.cxx | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx index 428ce62..b08dcdc 100644 --- a/Tests/Complex/Executable/complex.cxx +++ b/Tests/Complex/Executable/complex.cxx @@ -471,10 +471,15 @@ int main() cmFailed("the LOAD_CACHE or CONFIGURE_FILE command is broken, " "CACHE_TEST_VAR_INTERNAL is not defined."); #else + std::vector v; + std::vector v2; + v = v2; std::string cachetest = CACHE_TEST_VAR_INTERNAL; std::string copy = cachetest; cachetest.find("bar"); cachetest.rfind("bar"); + copy.replace(0,0,0,'a'); + copy.append(cachetest); copy = cachetest.substr(0, cachetest.size()); if(cachetest != "bar") { diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx index 428ce62..b08dcdc 100644 --- a/Tests/ComplexOneConfig/Executable/complex.cxx +++ b/Tests/ComplexOneConfig/Executable/complex.cxx @@ -471,10 +471,15 @@ int main() cmFailed("the LOAD_CACHE or CONFIGURE_FILE command is broken, " "CACHE_TEST_VAR_INTERNAL is not defined."); #else + std::vector v; + std::vector v2; + v = v2; std::string cachetest = CACHE_TEST_VAR_INTERNAL; std::string copy = cachetest; cachetest.find("bar"); cachetest.rfind("bar"); + copy.replace(0,0,0,'a'); + copy.append(cachetest); copy = cachetest.substr(0, cachetest.size()); if(cachetest != "bar") { diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx index 428ce62..b08dcdc 100644 --- a/Tests/ComplexRelativePaths/Executable/complex.cxx +++ b/Tests/ComplexRelativePaths/Executable/complex.cxx @@ -471,10 +471,15 @@ int main() cmFailed("the LOAD_CACHE or CONFIGURE_FILE command is broken, " "CACHE_TEST_VAR_INTERNAL is not defined."); #else + std::vector v; + std::vector v2; + v = v2; std::string cachetest = CACHE_TEST_VAR_INTERNAL; std::string copy = cachetest; cachetest.find("bar"); cachetest.rfind("bar"); + copy.replace(0,0,0,'a'); + copy.append(cachetest); copy = cachetest.substr(0, cachetest.size()); if(cachetest != "bar") { -- cgit v0.12