diff options
Diffstat (limited to 'clang/unittests/AST/DeclPrinterTest.cpp')
-rw-r--r-- | clang/unittests/AST/DeclPrinterTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/unittests/AST/DeclPrinterTest.cpp b/clang/unittests/AST/DeclPrinterTest.cpp index ade55aaee36..66da3866029 100644 --- a/clang/unittests/AST/DeclPrinterTest.cpp +++ b/clang/unittests/AST/DeclPrinterTest.cpp @@ -77,7 +77,8 @@ public: OwningPtr<FrontendActionFactory> Factory(newFrontendActionFactory(&Finder)); if (!runToolOnCodeWithArgs(Factory->create(), Code, Args, FileName)) - return testing::AssertionFailure() << "Parsing error in \"" << Code << "\""; + return testing::AssertionFailure() + << "Parsing error in \"" << Code.str() << "\""; if (Printer.getNumFoundDecls() == 0) return testing::AssertionFailure() @@ -90,8 +91,8 @@ public: if (Printer.getPrinted() != ExpectedPrinted) return ::testing::AssertionFailure() - << "Expected \"" << ExpectedPrinted << "\", " - "got \"" << Printer.getPrinted() << "\""; + << "Expected \"" << ExpectedPrinted.str() << "\", " + "got \"" << Printer.getPrinted().str() << "\""; return ::testing::AssertionSuccess(); } |