summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-01-21 18:21:03 +0000
committerPavel Labath <pavel@labath.sk>2019-01-21 18:21:03 +0000
commit738cccefb2239f0c43bb5b61bfbf9e3c89861433 (patch)
tree19996d04c5c30c73f1204be70702a7de13999d37
parent9b73ae96c50d5716a64525f07b60b6c3eb9b0d0c (diff)
downloadbcm5719-llvm-738cccefb2239f0c43bb5b61bfbf9e3c89861433.tar.gz
bcm5719-llvm-738cccefb2239f0c43bb5b61bfbf9e3c89861433.zip
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
-rw-r--r--llvm/unittests/ADT/OptionalTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/ADT/OptionalTest.cpp b/llvm/unittests/ADT/OptionalTest.cpp
index e7cd6bd766d..9d6d5d29fe0 100644
--- a/llvm/unittests/ADT/OptionalTest.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud