comparison clang/test/Rewriter/objc-ivar-receiver-1.m @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
comparison
equal deleted inserted replaced
147:c2174574ed3a 150:1d019706d866
1 // RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o -
2 // RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o - | grep 'newInv->_container'
3
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;
20 id obj = newInv->_container;
21 [newInv->_container addObject:0];
22 return 0;
23 }
24 @end