diff options
Diffstat (limited to 'test/Index/get-cursor.m')
-rw-r--r-- | test/Index/get-cursor.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Index/get-cursor.m b/test/Index/get-cursor.m index 7acf7bf38c..97730b1ef6 100644 --- a/test/Index/get-cursor.m +++ b/test/Index/get-cursor.m @@ -26,6 +26,18 @@ @synthesize name = _name; @end +@interface rdar10902015 +@end + +@implementation rdar10902015 + +struct S {}; + +-(void)mm:(struct S*)s { + rdar10902015 *i = 0; +} +@end + // RUN: c-index-test -cursor-at=%s:4:28 -cursor-at=%s:5:28 %s | FileCheck -check-prefix=CHECK-PROP %s // CHECK-PROP: ObjCPropertyDecl=foo1:4:26 // CHECK-PROP: ObjCPropertyDecl=foo2:5:27 @@ -35,3 +47,6 @@ // RUN: c-index-test -cursor-at=%s:20:10 %s | FileCheck -check-prefix=CHECK-METHOD %s // CHECK-METHOD: ObjCInstanceMethodDecl=name:20:1 + +// RUN: c-index-test -cursor-at=%s:37:17 %s | FileCheck -check-prefix=CHECK-IN-IMPL %s +// CHECK-IN-IMPL: VarDecl=i:37:17 |