Fix error in NamedDeclPrinterTest

Caused by D56924, shouldn't use raw string literals in macros.

Differential Revision: https://reviews.llvm.org/D60326

llvm-svn: 357799
This commit is contained in:
David Goldman 2019-04-05 19:17:24 +00:00
parent d77fd4d4a1
commit 4af5d748ce

View File

@ -193,29 +193,33 @@ TEST(NamedDeclPrinter, TestLinkageInNamespace) {
} }
TEST(NamedDeclPrinter, TestObjCClassExtension) { TEST(NamedDeclPrinter, TestObjCClassExtension) {
ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches( const char *Code =
R"( R"(
@interface Obj @interface Obj
@end @end
@interface Obj () @interface Obj ()
@property(nonatomic) int property; @property(nonatomic) int property;
@end @end
)", )";
ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches(
Code,
"property", "property",
"Obj::property")); "Obj::property"));
} }
TEST(NamedDeclPrinter, TestObjCClassExtensionWithGetter) { TEST(NamedDeclPrinter, TestObjCClassExtensionWithGetter) {
ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches( const char *Code =
R"( R"(
@interface Obj @interface Obj
@end @end
@interface Obj () @interface Obj ()
@property(nonatomic, getter=myPropertyGetter) int property; @property(nonatomic, getter=myPropertyGetter) int property;
@end @end
)", )";
ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches(
Code,
"property", "property",
"Obj::property")); "Obj::property"));
} }