| 1 |
// Note: the run lines follow their respective tests, since line/column |
| 2 |
// matter in this test. |
| 3 |
|
| 4 |
@interface TypeWithPropertiesBackedByIvars { |
| 5 |
int _bar; |
| 6 |
int _foo; |
| 7 |
} |
| 8 |
@property(nonatomic) int foo; |
| 9 |
@property(nonatomic) int bar; |
| 10 |
@end |
| 11 |
|
| 12 |
int getFoo(id object) { |
| 13 |
TypeWithPropertiesBackedByIvars *model = (TypeWithPropertiesBackedByIvars *)object; |
| 14 |
int foo = model.; |
| 15 |
return foo; |
| 16 |
} |
| 17 |
|
| 18 |
// RUN: %clang_cc1 -fsyntax-only -code-completion-with-fixits -code-completion-at=%s:%(line-4):19 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s |
| 19 |
// CHECK-CC1-NOT: [#int#]_bar |
| 20 |
// CHECK-CC1-NOT: [#int#]_foo |
| 21 |
// CHECK-CC1: [#int#]bar |
| 22 |
// CHECK-CC1: [#int#]foo |