зеркало из https://github.com/microsoft/clang-1.git
objc modern translator: fix up attribute for dynamic property in a category.
// rdar://11095151 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156127 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
514d3b6b93
Коммит
ebfa272051
|
@ -7160,7 +7160,7 @@ void RewriteModernObjC::RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *IDecl,
|
|||
ClassProperties.push_back(&*I);
|
||||
|
||||
Write_prop_list_t_initializer(*this, Context, Result, ClassProperties,
|
||||
/* Container */0,
|
||||
/* Container */IDecl,
|
||||
"_OBJC_$_PROP_LIST_",
|
||||
FullCategoryName);
|
||||
|
||||
|
|
|
@ -33,3 +33,13 @@ typedef void (^void_block_t)(void);
|
|||
// CHECK: T@?,C,V__completion
|
||||
// CHECK: T@\"PropertyClass\",&,VYVAR
|
||||
|
||||
@interface Test @end
|
||||
@interface Test (Category)
|
||||
@property int q;
|
||||
@end
|
||||
|
||||
@implementation Test (Category)
|
||||
@dynamic q;
|
||||
@end
|
||||
|
||||
// CHECK: {{"q","Ti,D"}}
|
||||
|
|
Загрузка…
Ссылка в новой задаче