Author: dgoldman Date: Fri Apr 5 12:17:24 2019 New Revision: 357799 URL: http://llvm.org/viewvc/llvm-project?rev=357799&view=rev Log: Fix error in NamedDeclPrinterTest
Caused by D56924, shouldn't use raw string literals in macros. Differential Revision: https://reviews.llvm.org/D60326 Modified: cfe/trunk/unittests/AST/NamedDeclPrinterTest.cpp Modified: cfe/trunk/unittests/AST/NamedDeclPrinterTest.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/NamedDeclPrinterTest.cpp?rev=357799&r1=357798&r2=357799&view=diff ============================================================================== --- cfe/trunk/unittests/AST/NamedDeclPrinterTest.cpp (original) +++ cfe/trunk/unittests/AST/NamedDeclPrinterTest.cpp Fri Apr 5 12:17:24 2019 @@ -193,29 +193,33 @@ TEST(NamedDeclPrinter, TestLinkageInName } TEST(NamedDeclPrinter, TestObjCClassExtension) { - ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches( - R"( - @interface Obj - @end + const char *Code = +R"( + @interface Obj + @end - @interface Obj () - @property(nonatomic) int property; - @end - )", + @interface Obj () + @property(nonatomic) int property; + @end +)"; + ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches( + Code, "property", "Obj::property")); } TEST(NamedDeclPrinter, TestObjCClassExtensionWithGetter) { - ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches( - R"( - @interface Obj - @end + const char *Code = +R"( + @interface Obj + @end - @interface Obj () - @property(nonatomic, getter=myPropertyGetter) int property; - @end - )", + @interface Obj () + @property(nonatomic, getter=myPropertyGetter) int property; + @end +)"; + ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches( + Code, "property", "Obj::property")); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits