xref: /aosp_15_r20/external/clang/test/Rewriter/objc-ivar-receiver-1.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5  %s -o -
2*67e74705SXin Li// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5  %s -o - | grep 'newInv->_container'
3*67e74705SXin Li
4*67e74705SXin Li@interface NSMutableArray
5*67e74705SXin Li- (void)addObject:(id)addObject;
6*67e74705SXin Li@end
7*67e74705SXin Li
8*67e74705SXin Li@interface NSInvocation {
9*67e74705SXin Li@private
10*67e74705SXin Li    id _container;
11*67e74705SXin Li}
12*67e74705SXin Li+ (NSInvocation *)invocationWithMethodSignature;
13*67e74705SXin Li
14*67e74705SXin Li@end
15*67e74705SXin Li
16*67e74705SXin Li@implementation NSInvocation
17*67e74705SXin Li
18*67e74705SXin Li+ (NSInvocation *)invocationWithMethodSignature {
19*67e74705SXin Li    NSInvocation *newInv;
20*67e74705SXin Li    id obj = newInv->_container;
21*67e74705SXin Li    [newInv->_container addObject:0];
22*67e74705SXin Li   return 0;
23*67e74705SXin Li}
24*67e74705SXin Li@end
25