brintos

brintos / llvm-project-archived public Read only

0
0
Text · 636 B · 0a46c6b Raw
23 lines · plain
1// Note: the run lines follow their respective tests, since line/column2// 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@end11 12int 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 %s19// CHECK-CC1-NOT: [#int#]_bar20// CHECK-CC1-NOT: [#int#]_foo21// CHECK-CC1: [#int#]bar22// CHECK-CC1: [#int#]foo23