blob: 0ed55387e3d666a7ab2d0947de6c0e3c78c51d08 [file] [log] [blame]
Alex Lorenz06cfa992016-10-12 11:40:15 +00001// Note: the run lines follow their respective tests, since line/column
2// matter in this test.
3
4@protocol Bar
5@property (readonly) int bar;
6@end
7
8@protocol Foo <Bar>
9
10@property (nonatomic, readonly) int foo;
11- (void)foobar: (int)x;
12
13@end
14
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:17:25 %s -o - | FileCheck %s
22// CHECK: bar : [#int#]bar
23// CHECK: foo : [#int#]foo
24// CHECK-NOT: foobar