diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2014-03-03 08:13:06 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2014-03-03 08:13:06 +0000 |
| commit | f93725459a0b2e8d7b056a545d245d029d93c6cd (patch) | |
| tree | dbc87772ec08f0b2605b2cf8c44220659710641a /clang/unittests | |
| parent | 1594c1550009af69ba84ba01e29c79274d19692a (diff) | |
| download | bcm5719-llvm-f93725459a0b2e8d7b056a545d245d029d93c6cd.tar.gz bcm5719-llvm-f93725459a0b2e8d7b056a545d245d029d93c6cd.zip | |
MSVC 2012 doesn't support std::initializer_list at all, so don't rely on
that std::vector constructor.
llvm-svn: 202684
Diffstat (limited to 'clang/unittests')
| -rw-r--r-- | clang/unittests/Tooling/ToolingTest.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/unittests/Tooling/ToolingTest.cpp b/clang/unittests/Tooling/ToolingTest.cpp index a9c8f90f14c..302616b8426 100644 --- a/clang/unittests/Tooling/ToolingTest.cpp +++ b/clang/unittests/Tooling/ToolingTest.cpp @@ -240,8 +240,12 @@ TEST(runToolOnCodeWithArgs, TestNoDepFile) { llvm::SmallString<32> DepFilePath; ASSERT_FALSE( llvm::sys::fs::createTemporaryFile("depfile", "d", DepFilePath)); - std::vector<std::string> Args = { "-MMD", "-MT", DepFilePath.str(), "-MF", - DepFilePath.str() }; + std::vector<std::string> Args; + Args.push_back("-MMD"); + Args.push_back("-MT"); + Args.push_back(DepFilePath.str()); + Args.push_back("-MF"); + Args.push_back(DepFilePath.str()); EXPECT_TRUE(runToolOnCodeWithArgs(new SkipBodyAction, "", Args)); EXPECT_FALSE(llvm::sys::fs::exists(DepFilePath.str())); EXPECT_FALSE(llvm::sys::fs::remove(DepFilePath.str())); |

