diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-11-07 02:18:24 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-11-07 02:18:24 +0000 |
commit | 636169e4db49cc79472da7f033fae9bd0074062c (patch) | |
tree | cb0cb05eb4090417bd822793019b7ce776722405 | |
parent | a96b995361216b7320975d37c2444db5ff05aba0 (diff) |
ClangdTests/JSONExprTests.cpp: Appease g++-4.8 to move raw string literal out of macro arg.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@317538 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | unittests/clangd/JSONExprTests.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/unittests/clangd/JSONExprTests.cpp b/unittests/clangd/JSONExprTests.cpp index b6a2c562..87c0d34f 100644 --- a/unittests/clangd/JSONExprTests.cpp +++ b/unittests/clangd/JSONExprTests.cpp @@ -76,8 +76,7 @@ TEST(JSONExprTests, Escaping) { } TEST(JSONExprTests, PrettyPrinting) { - EXPECT_EQ( - R"({ + const char str[] = R"({ "empty_array": [], "empty_object": {}, "full_array": [ @@ -91,7 +90,10 @@ TEST(JSONExprTests, PrettyPrinting) { } ] } -})", +})"; + + EXPECT_EQ( + str, sp(obj{ {"empty_object", obj{}}, {"empty_array", {}}, |