Caused by D56924, shouldn't use raw string literals in macros.
Differential Revision: https://reviews.llvm.org/D60326
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@357799
91177308-0d34-0410-b5e6-
96231b3b80d8
}
TEST(NamedDeclPrinter, TestObjCClassExtension) {
+ const char *Code =
+R"(
+ @interface Obj
+ @end
+
+ @interface Obj ()
+ @property(nonatomic) int property;
+ @end
+)";
ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches(
- R"(
- @interface Obj
- @end
-
- @interface Obj ()
- @property(nonatomic) int property;
- @end
- )",
+ Code,
"property",
"Obj::property"));
}
TEST(NamedDeclPrinter, TestObjCClassExtensionWithGetter) {
+ const char *Code =
+R"(
+ @interface Obj
+ @end
+
+ @interface Obj ()
+ @property(nonatomic, getter=myPropertyGetter) int property;
+ @end
+)";
ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches(
- R"(
- @interface Obj
- @end
-
- @interface Obj ()
- @property(nonatomic, getter=myPropertyGetter) int property;
- @end
- )",
+ Code,
"property",
"Obj::property"));
}