1 // Test is line- and column-sensitive. Run lines are below. 2 3 @interface rdar9771715 4 @property (readonly) int foo1; 5 @property (readwrite) int foo2; 6 @end 7 8 @class Foo; 9 10 @interface rdar9535717 { 11 __weak Foo *foo; 12 } 13 @end 14 15 @interface Test1 { 16 id _name; 17 } 18 @end 19 @interface Test1 () 20 - (id)name; 21 @end 22 @interface Test1 () 23 @property (copy) id name; 24 @end 25 @implementation Test1 26 @synthesize name = _name; 27 @end 28 29 // RUN: c-index-test -cursor-at=%s:4:28 -cursor-at=%s:5:28 %s | FileCheck -check-prefix=CHECK-PROP %s 30 // CHECK-PROP: ObjCPropertyDecl=foo1:4:26 31 // CHECK-PROP: ObjCPropertyDecl=foo2:5:27 32 33 // RUN: c-index-test -cursor-at=%s:11:11 %s -ccc-host-triple x86_64-apple-macosx10.7.0 | FileCheck -check-prefix=CHECK-WITH-WEAK %s 34 // CHECK-WITH-WEAK: ObjCClassRef=Foo:8:8 35 36 // RUN: c-index-test -cursor-at=%s:20:10 %s | FileCheck -check-prefix=CHECK-METHOD %s 37 // CHECK-METHOD: ObjCInstanceMethodDecl=name:20:1 38