瀏覽代碼

ENH: add more junk for the dec cxx compiler to force it to instantiate stuff

Bill Hoffman 23 年之前
父節點
當前提交
42a34e4722

+ 5 - 0
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")
     {

+ 5 - 0
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")
     {

+ 5 - 0
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")
     {