diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-08 03:07:57 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-08 03:07:57 (GMT) |
commit | 42a34e4722a39b39d3c89b6ba4aebd05999120ec (patch) | |
tree | 2a6a7e8c699e38e8a15a3df5da845bc2111c0a10 /Tests | |
parent | 61e87c3a6dea90a07e1f9f41e936d9ee26188111 (diff) | |
download | CMake-42a34e4722a39b39d3c89b6ba4aebd05999120ec.zip CMake-42a34e4722a39b39d3c89b6ba4aebd05999120ec.tar.gz CMake-42a34e4722a39b39d3c89b6ba4aebd05999120ec.tar.bz2 |
ENH: add more junk for the dec cxx compiler to force it to instantiate stuff
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/Complex/Executable/complex.cxx | 5 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/Executable/complex.cxx | 5 | ||||
-rw-r--r-- | Tests/ComplexRelativePaths/Executable/complex.cxx | 5 |
3 files changed, 15 insertions, 0 deletions
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<std::string> v; + std::vector<std::string> 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<std::string> v; + std::vector<std::string> 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<std::string> v; + std::vector<std::string> 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") { |