1*67e74705SXin Li// Note: this test is line- and column-sensitive. Test commands are at 2*67e74705SXin Li// the end. 3*67e74705SXin Li 4*67e74705SXin Li 5*67e74705SXin Li@interface A 6*67e74705SXin Li@property int prop1; 7*67e74705SXin Li@end 8*67e74705SXin Li 9*67e74705SXin Li@interface B : A { 10*67e74705SXin Li float _prop2; 11*67e74705SXin Li} 12*67e74705SXin Li@property float prop2; 13*67e74705SXin Li@property short prop3; 14*67e74705SXin Li@end 15*67e74705SXin Li 16*67e74705SXin Li@interface B () 17*67e74705SXin Li@property double prop4; 18*67e74705SXin Li@end 19*67e74705SXin Li 20*67e74705SXin Li@implementation B 21*67e74705SXin Li@synthesize prop2 = _prop2; 22*67e74705SXin Li 23*67e74705SXin Li- (int)method { 24*67e74705SXin Li return _prop2; 25*67e74705SXin Li} 26*67e74705SXin Li 27*67e74705SXin Li@dynamic prop3; 28*67e74705SXin Li 29*67e74705SXin Li- (short)method2 { 30*67e74705SXin Li return _prop4; 31*67e74705SXin Li} 32*67e74705SXin Li 33*67e74705SXin Li- (short)method3 { 34*67e74705SXin Li return prop3; 35*67e74705SXin Li} 36*67e74705SXin Li@end 37*67e74705SXin Li 38*67e74705SXin Li// RUN: c-index-test -code-completion-at=%s:24:1 -target x86_64-apple-macosx10.7 -fobjc-nonfragile-abi %s | FileCheck %s 39*67e74705SXin Li// RUN: c-index-test -code-completion-at=%s:30:2 -target x86_64-apple-macosx10.7 -fobjc-nonfragile-abi %s | FileCheck %s 40*67e74705SXin Li// RUN: c-index-test -code-completion-at=%s:34:2 -target x86_64-apple-macosx10.7 -fobjc-nonfragile-abi %s | FileCheck %s 41*67e74705SXin Li 42*67e74705SXin Li// CHECK: NotImplemented:{TypedText _Bool} (50) 43*67e74705SXin Li// CHECK: ObjCIvarDecl:{ResultType float}{TypedText _prop2} (35) 44*67e74705SXin Li// CHECK-NOT: prop2 45*67e74705SXin Li// CHECK-NOT: prop3 46*67e74705SXin Li// CHECK: ObjCIvarDecl:{ResultType double}{TypedText _prop4} (35) 47