2011-08-11 05:12:04 +08:00
|
|
|
// Test is line- and column-sensitive. Run lines are below.
|
|
|
|
|
|
|
|
@interface rdar9771715
|
|
|
|
@property (readonly) int foo1;
|
|
|
|
@property (readwrite) int foo2;
|
|
|
|
@end
|
|
|
|
|
2011-08-16 02:44:43 +08:00
|
|
|
@class Foo;
|
|
|
|
|
|
|
|
@interface rdar9535717 {
|
|
|
|
__weak Foo *foo;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
2011-08-11 05:12:04 +08:00
|
|
|
// RUN: c-index-test -cursor-at=%s:4:28 %s | FileCheck -check-prefix=CHECK-PROP1 %s
|
|
|
|
// RUN: c-index-test -cursor-at=%s:5:28 %s | FileCheck -check-prefix=CHECK-PROP2 %s
|
|
|
|
// CHECK-PROP1: ObjCPropertyDecl=foo1:4:26
|
|
|
|
// CHECK-PROP2: ObjCPropertyDecl=foo2:5:27
|
2011-08-16 02:44:43 +08:00
|
|
|
|
2011-08-16 07:43:33 +08:00
|
|
|
// 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
|
2011-08-16 02:44:43 +08:00
|
|
|
// CHECK-WITH-WEAK: ObjCClassRef=Foo:8:8
|