2008-06-12 20:40:02 +08:00
|
|
|
// RUN: clang -rewrite-objc %s -o - &&
|
2008-04-15 06:03:09 +08:00
|
|
|
// RUN: clang -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
|