Fix compilation error with gcc 4.8

This version of gcc seems to be having issues with raw literals inside macro
arguments. I change the string to use regular string literals instead.

llvm-svn: 351756
This commit is contained in:
Pavel Labath 2019-01-21 18:21:03 +00:00
parent 9b73ae96c5
commit 738cccefb2
1 changed files with 4 additions and 4 deletions

View File

@ -558,10 +558,10 @@ TEST_F(OptionalTest, UseInUnitTests) {
// Test that we invoke the streaming operators when pretty-printing values in // Test that we invoke the streaming operators when pretty-printing values in
// EXPECT macros. // EXPECT macros.
EXPECT_NONFATAL_FAILURE(EXPECT_EQ(llvm::None, ComparableAndStreamable::get()), EXPECT_NONFATAL_FAILURE(EXPECT_EQ(llvm::None, ComparableAndStreamable::get()),
R"(Expected: llvm::None "Expected: llvm::None\n"
Which is: None " Which is: None\n"
To be equal to: ComparableAndStreamable::get() "To be equal to: ComparableAndStreamable::get()\n"
Which is: ComparableAndStreamable)"); " Which is: ComparableAndStreamable");
// Test that it is still possible to compare objects which do not have a // Test that it is still possible to compare objects which do not have a
// custom streaming operator. // custom streaming operator.