]> granicus.if.org Git - clang/commitdiff
MSVC cannot understand temporaries formed from initializer lists.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 3 Mar 2014 07:49:35 +0000 (07:49 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 3 Mar 2014 07:49:35 +0000 (07:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202682 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Tooling/ToolingTest.cpp

index f34fab0fc7854c1432f2c933c86752f4623e5605..a9c8f90f14c6fd5f5ffb97f7d498491a91dd5d2c 100644 (file)
@@ -240,9 +240,9 @@ TEST(runToolOnCodeWithArgs, TestNoDepFile) {
   llvm::SmallString<32> DepFilePath;
   ASSERT_FALSE(
       llvm::sys::fs::createTemporaryFile("depfile", "d", DepFilePath));
-  EXPECT_TRUE(runToolOnCodeWithArgs(
-      new SkipBodyAction, "",
-      { "-MMD", "-MT", DepFilePath.str(), "-MF", DepFilePath.str() }));
+  std::vector<std::string> Args = { "-MMD", "-MT", DepFilePath.str(), "-MF",
+                                    DepFilePath.str() };
+  EXPECT_TRUE(runToolOnCodeWithArgs(new SkipBodyAction, "", Args));
   EXPECT_FALSE(llvm::sys::fs::exists(DepFilePath.str()));
   EXPECT_FALSE(llvm::sys::fs::remove(DepFilePath.str()));
 }