summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Yung <douglas.yung@sony.com>2017-11-08 00:29:42 +0000
committerDouglas Yung <douglas.yung@sony.com>2017-11-08 00:29:42 +0000
commit76036fce25cbba79885bc9c2da228f06e022e63b (patch)
tree63536d0b18738190badce59def973424f8b62bc0
parent0222224da62299cac4b86fd9f36b82182eda6002 (diff)
downloadbcm5719-llvm-76036fce25cbba79885bc9c2da228f06e022e63b.tar.gz
bcm5719-llvm-76036fce25cbba79885bc9c2da228f06e022e63b.zip
Fix compile issue on MSVC.
llvm-svn: 317642
-rw-r--r--clang-tools-extra/unittests/clangd/JSONExprTests.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/clang-tools-extra/unittests/clangd/JSONExprTests.cpp b/clang-tools-extra/unittests/clangd/JSONExprTests.cpp
index a05b7f8486f..a95b4b0c6ce 100644
--- a/clang-tools-extra/unittests/clangd/JSONExprTests.cpp
+++ b/clang-tools-extra/unittests/clangd/JSONExprTests.cpp
@@ -67,9 +67,11 @@ TEST(JSONExprTests, Escaping) {
'\x7f', // Delete is not escaped.
'\xce', '\x94', // Non-ASCII UTF-8 is not escaped.
};
- EXPECT_EQ(R"("\u0000\u0008\u000c\r\n\tS\"\\)"
- "\x7f\xCE\x94\"",
- s(test));
+
+ std::string teststring = R"("\u0000\u0008\u000c\r\n\tS\"\\)"
+ "\x7f\xCE\x94\"";
+
+ EXPECT_EQ(teststring, s(test));
EXPECT_EQ(R"({"object keys are\nescaped":true})",
s(obj{{"object keys are\nescaped", true}}));
OpenPOWER on IntegriCloud