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) {
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"));
}