blob: 69e4f251e821392a07c7743144d8ef95616fa3bf [file] [log] [blame]
Argyrios Kyrtzidis8a4bfaa2011-08-10 21:12:04 +00001// 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 Kyrtzidis3422fbc2011-08-15 18:44:43 +00008@class Foo;
9
10@interface rdar9535717 {
11 __weak Foo *foo;
12}
13@end
14
Argyrios Kyrtzidis75cf3e82011-08-17 19:25:08 +000015@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 Kyrtzidis3422fbc2011-08-15 18:44:43 +000032
Argyrios Kyrtzidis2799c712011-08-15 23:43:33 +000033// 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 Kyrtzidis3422fbc2011-08-15 18:44:43 +000034// CHECK-WITH-WEAK: ObjCClassRef=Foo:8:8
Argyrios Kyrtzidis75cf3e82011-08-17 19:25:08 +000035
36// RUN: c-index-test -cursor-at=%s:20:10 %s | FileCheck -check-prefix=CHECK-METHOD %s
37// CHECK-METHOD: ObjCInstanceMethodDecl=name:20:1