2009-11-08 09:45:36 +08:00
|
|
|
// RUN: clang-cc -rewrite-objc %s -o -
|
2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc -rewrite-objc %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
|