Argyrios Kyrtzidis | 8a4bfaa | 2011-08-10 21:12:04 +0000 | [diff] [blame] | 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 | |
Argyrios Kyrtzidis | 3422fbc | 2011-08-15 18:44:43 +0000 | [diff] [blame] | 8 | @class Foo; |
| 9 | |
| 10 | @interface rdar9535717 { |
| 11 | __weak Foo *foo; |
| 12 | } |
| 13 | @end |
| 14 | |
Argyrios Kyrtzidis | 75cf3e8 | 2011-08-17 19:25:08 +0000 | [diff] [blame] | 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 |
Argyrios Kyrtzidis | 3422fbc | 2011-08-15 18:44:43 +0000 | [diff] [blame] | 32 | |
Argyrios Kyrtzidis | 2799c71 | 2011-08-15 23:43:33 +0000 | [diff] [blame] | 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 |
Argyrios Kyrtzidis | 3422fbc | 2011-08-15 18:44:43 +0000 | [diff] [blame] | 34 | // CHECK-WITH-WEAK: ObjCClassRef=Foo:8:8 |
Argyrios Kyrtzidis | 75cf3e8 | 2011-08-17 19:25:08 +0000 | [diff] [blame] | 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 |