complete-member-access.m revision ff5ce6eefc7c253ef6edf4d4bfc996fdd82d09aa
1/* Note: the RUN lines are near the end of the file, since line/column 2 matter for this test. */ 3 4@protocol MyProtocol 5@property float ProtoProp; 6@end 7 8@interface Super { 9 int SuperIVar; 10} 11@end 12@interface Int : Super<MyProtocol> 13{ 14 int IVar; 15} 16 17@property int prop1; 18@end 19 20void test_props(Int* ptr) { 21 ptr.prop1 = 0; 22 ptr->IVar = 0; 23} 24 25// RUN: c-index-test -code-completion-at=%s:21:7 %s | FileCheck -check-prefix=CHECK-CC1 %s 26// CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText prop1} 27// CHECK-CC1: ObjCPropertyDecl:{ResultType float}{TypedText ProtoProp} 28// RUN: c-index-test -code-completion-at=%s:22:8 %s | FileCheck -check-prefix=CHECK-CC2 %s 29// CHECK-CC2: ObjCIvarDecl:{ResultType int}{TypedText IVar} 30// CHECK-CC2: ObjCIvarDecl:{ResultType int}{TypedText SuperIVar} 31