From: Pavel Labath Date: Mon, 21 Jan 2019 18:21:03 +0000 (+0000) Subject: Fix compilation error with gcc 4.8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0e594470af65e932d102de31621b66041e83a7b;p=llvm 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351756 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ADT/OptionalTest.cpp b/unittests/ADT/OptionalTest.cpp index e7cd6bd766d..9d6d5d29fe0 100644 --- a/unittests/ADT/OptionalTest.cpp +++ b/unittests/ADT/OptionalTest.cpp @@ -558,10 +558,10 @@ TEST_F(OptionalTest, UseInUnitTests) { // Test that we invoke the streaming operators when pretty-printing values in // EXPECT macros. EXPECT_NONFATAL_FAILURE(EXPECT_EQ(llvm::None, ComparableAndStreamable::get()), - R"(Expected: llvm::None - Which is: None -To be equal to: ComparableAndStreamable::get() - Which is: ComparableAndStreamable)"); + "Expected: llvm::None\n" + " Which is: None\n" + "To be equal to: ComparableAndStreamable::get()\n" + " Which is: ComparableAndStreamable"); // Test that it is still possible to compare objects which do not have a // custom streaming operator.