150
|
1 // 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
|
|
15 int 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 (InBase) : [#int#]bar
|
|
23 // CHECK: foo (InBase) : [#int#]foo
|
|
24 // CHECK-NOT: foobar
|