complete-property-flags.m revision 54f016150acf7e0d4dab702d3d7d5e40ba1fdebf
1// Note: the run lines follow their respective tests, since line/column 2// matter in this test. 3 4@interface Foo { 5 void *isa; 6} 7@property(copy) Foo *myprop; 8@property(retain, nonatomic) id xx; 9// RUN: c-index-test -code-completion-at=%s:7:11 %s | FileCheck -check-prefix=CHECK-CC1 %s 10// CHECK-CC1: {TypedText assign} 11// CHECK-CC1-NEXT: {TypedText copy} 12// CHECK-CC1-NEXT: {TypedText getter}{Text = }{Placeholder method} 13// CHECK-CC1-NEXT: {TypedText nonatomic} 14// CHECK-CC1-NEXT: {TypedText readonly} 15// CHECK-CC1-NEXT: {TypedText readwrite} 16// CHECK-CC1-NEXT: {TypedText retain} 17// CHECK-CC1-NEXT: {TypedText setter}{Text = }{Placeholder method} 18// RUN: c-index-test -code-completion-at=%s:8:18 %s | FileCheck -check-prefix=CHECK-CC2 %s 19// CHECK-CC2: {TypedText assign} 20// CHECK-CC2-NEXT: {TypedText copy} 21// CHECK-CC2-NEXT: {TypedText getter}{Text = }{Placeholder method} 22// CHECK-CC2-NEXT: {TypedText nonatomic} 23// CHECK-CC2-NEXT: {TypedText readonly} 24// CHECK-CC2-NEXT: {TypedText readwrite} 25// CHECK-CC2-NEXT: {TypedText setter}{Text = }{Placeholder method} 26@end 27 28 29 30