mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-14 12:12:07 +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) {
|
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"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user