[clang-tools-extra] r317538 - ClangdTests/JSONExprTests.cpp: Appease g++-4.8 to move raw string literal out of macro arg.
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 6 18:18:24 PST 2017
Author: chapuni
Date: Mon Nov 6 18:18:24 2017
New Revision: 317538
URL: http://llvm.org/viewvc/llvm-project?rev=317538&view=rev
Log:
ClangdTests/JSONExprTests.cpp: Appease g++-4.8 to move raw string literal out of macro arg.
Modified:
clang-tools-extra/trunk/unittests/clangd/JSONExprTests.cpp
Modified: clang-tools-extra/trunk/unittests/clangd/JSONExprTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/JSONExprTests.cpp?rev=317538&r1=317537&r2=317538&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/JSONExprTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/JSONExprTests.cpp Mon Nov 6 18:18:24 2017
@@ -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", {}},
More information about the cfe-commits
mailing list