You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
558 B
25 lines
558 B
// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o -
|
|
// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o - | grep 'newInv->_container'
|
|
|
|
@interface NSMutableArray
|
|
- (void)addObject:(id)addObject;
|
|
@end
|
|
|
|
@interface NSInvocation {
|
|
@private
|
|
id _container;
|
|
}
|
|
+ (NSInvocation *)invocationWithMethodSignature;
|
|
|
|
@end
|
|
|
|
@implementation NSInvocation
|
|
|
|
+ (NSInvocation *)invocationWithMethodSignature {
|
|
NSInvocation *newInv;
|
|
id obj = newInv->_container;
|
|
[newInv->_container addObject:0];
|
|
return 0;
|
|
}
|
|
@end
|