mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-26 01:39:11 +00:00
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:
parent
d77fd4d4a1
commit
4af5d748ce
@ -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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user