25 lines · plain
1// Note: the run lines follow their respective tests, since line/column2// matter in this test.3 4@protocol Bar5@property (readonly) int bar;6@end7 8@protocol Foo <Bar>9 10@property (nonatomic, readonly) int foo;11- (void)foobar: (int)x;12 13@end14 15int getFoo(id object) {16 id<Foo> modelObject = (id<Foo>)object;17 int foo = modelObject.;18 return foo;19}20 21// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-4):25 %s -o - | FileCheck %s22// CHECK: bar (InBase) : [#int#]bar23// CHECK: foo (InBase) : [#int#]foo24// CHECK-NOT: foobar25