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