2012-06-20 14:18:46 +08:00
|
|
|
// 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'
|
2008-01-24 04:34:40 +08:00
|
|
|
|
|
|
|
@interface NSMutableArray
|
|
|
|
- (void)addObject:(id)addObject;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface NSInvocation {
|
|
|
|
@private
|
|
|
|
id _container;
|
|
|
|
}
|
|
|
|
+ (NSInvocation *)invocationWithMethodSignature;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation NSInvocation
|
|
|
|
|
|
|
|
+ (NSInvocation *)invocationWithMethodSignature {
|
|
|
|
NSInvocation *newInv;
|
2008-03-13 07:15:19 +08:00
|
|
|
id obj = newInv->_container;
|
2008-01-24 04:34:40 +08:00
|
|
|
[newInv->_container addObject:0];
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
@end
|