From e02398022d0bac1bc9e890154be8884e67fd8b13 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 7 Nov 2017 02:18:24 +0000 Subject: [PATCH] ClangdTests/JSONExprTests.cpp: Appease g++-4.8 to move raw string literal out of macro arg. llvm-svn: 317538 --- clang-tools-extra/unittests/clangd/JSONExprTests.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/clang-tools-extra/unittests/clangd/JSONExprTests.cpp b/clang-tools-extra/unittests/clangd/JSONExprTests.cpp index b6a2c56..87c0d34 100644 --- a/clang-tools-extra/unittests/clangd/JSONExprTests.cpp +++ b/clang-tools-extra/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", {}}, -- 2.7.4