blob: 5fb028e808e9498021f04103e2e6e1fad4d37390 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -rewrite-objc %s -o -
2// RUN: %clang_cc1 -rewrite-objc %s -o - | grep 'newInv->_container'
Fariborz Jahanian7da8d942008-01-23 20:34:40 +00003
4@interface NSMutableArray
5- (void)addObject:(id)addObject;
6@end
7
8@interface NSInvocation {
9@private
10 id _container;
11}
12+ (NSInvocation *)invocationWithMethodSignature;
13
14@end
15
16@implementation NSInvocation
17
18+ (NSInvocation *)invocationWithMethodSignature {
19 NSInvocation *newInv;
Steve Naroff5518e7c2008-03-12 23:15:19 +000020 id obj = newInv->_container;
Fariborz Jahanian7da8d942008-01-23 20:34:40 +000021 [newInv->_container addObject:0];
22 return 0;
23}
24@end