Skip to content
Snippets Groups Projects
Commit 0d360f12 authored by Daniel Jasper's avatar Daniel Jasper
Browse files

Avoid using set::emplace as it is apparently not supported by gcc 4.7.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239816 91177308-0d34-0410-b5e6-96231b3b80d8
parent 5b8e5c34
No related branches found
No related tags found
No related merge requests found
...@@ -39,8 +39,8 @@ TEST(Rewriter, ContinuesOverwritingFilesOnError) { ...@@ -39,8 +39,8 @@ TEST(Rewriter, ContinuesOverwritingFilesOnError) {
TEST(Rewriter, AdjacentInsertAndDelete) { TEST(Rewriter, AdjacentInsertAndDelete) {
Replacements Replaces; Replacements Replaces;
Replaces.emplace("<file>", 6, 6, ""); Replaces.insert(Replacement("<file>", 6, 6, ""));
Replaces.emplace("<file>", 6, 0, "replaced\n"); Replaces.insert(Replacement("<file>", 6, 0, "replaced\n"));
EXPECT_EQ("line1\nreplaced\nline3\nline4", EXPECT_EQ("line1\nreplaced\nline3\nline4",
applyAllReplacements("line1\nline2\nline3\nline4", Replaces)); applyAllReplacements("line1\nline2\nline3\nline4", Replaces));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment