1*f4a2713aSLionel Sambuc// Note: the run lines follow their respective tests, since line/column 2*f4a2713aSLionel Sambuc// matter in this test. 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc@interface Foo { 5*f4a2713aSLionel Sambuc void *isa; 6*f4a2713aSLionel Sambuc} 7*f4a2713aSLionel Sambuc@property(copy) Foo *myprop; 8*f4a2713aSLionel Sambuc@property(retain, nonatomic) id xx; 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:7:11 %s -fno-objc-arc | FileCheck -check-prefix=CHECK-CC1 %s 11*f4a2713aSLionel Sambuc// CHECK-CC1: {TypedText assign} 12*f4a2713aSLionel Sambuc// CHECK-CC1-NEXT: {TypedText atomic} 13*f4a2713aSLionel Sambuc// CHECK-CC1-NEXT: {TypedText copy} 14*f4a2713aSLionel Sambuc// CHECK-CC1-NEXT: {TypedText getter}{Text =}{Placeholder method} 15*f4a2713aSLionel Sambuc// CHECK-CC1-NEXT: {TypedText nonatomic} 16*f4a2713aSLionel Sambuc// CHECK-CC1-NEXT: {TypedText readonly} 17*f4a2713aSLionel Sambuc// CHECK-CC1-NEXT: {TypedText readwrite} 18*f4a2713aSLionel Sambuc// CHECK-CC1-NEXT: {TypedText retain} 19*f4a2713aSLionel Sambuc// CHECK-CC1-NEXT: {TypedText setter}{Text =}{Placeholder method} 20*f4a2713aSLionel Sambuc// CHECK-CC1-NEXT: {TypedText strong} 21*f4a2713aSLionel Sambuc// CHECK-CC1-NEXT: {TypedText unsafe_unretained} 22*f4a2713aSLionel Sambuc// CHECK-CC1-NOT: {TypedText weak} 23*f4a2713aSLionel Sambuc 24*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:7:11 %s -fobjc-arc -fobjc-runtime=macosx-10.7 | FileCheck -check-prefix=CHECK-CC1-ARC %s 25*f4a2713aSLionel Sambuc// CHECK-CC1-ARC: {TypedText assign} 26*f4a2713aSLionel Sambuc// CHECK-CC1-ARC-NEXT: {TypedText atomic} 27*f4a2713aSLionel Sambuc// CHECK-CC1-ARC-NEXT: {TypedText copy} 28*f4a2713aSLionel Sambuc// CHECK-CC1-ARC-NEXT: {TypedText getter}{Text =}{Placeholder method} 29*f4a2713aSLionel Sambuc// CHECK-CC1-ARC-NEXT: {TypedText nonatomic} 30*f4a2713aSLionel Sambuc// CHECK-CC1-ARC-NEXT: {TypedText readonly} 31*f4a2713aSLionel Sambuc// CHECK-CC1-ARC-NEXT: {TypedText readwrite} 32*f4a2713aSLionel Sambuc// CHECK-CC1-ARC-NEXT: {TypedText retain} 33*f4a2713aSLionel Sambuc// CHECK-CC1-ARC-NEXT: {TypedText setter}{Text =}{Placeholder method} 34*f4a2713aSLionel Sambuc// CHECK-CC1-ARC-NEXT: {TypedText strong} 35*f4a2713aSLionel Sambuc// CHECK-CC1-ARC-NEXT: {TypedText unsafe_unretained} 36*f4a2713aSLionel Sambuc// CHECK-CC1-ARC-NEXT: {TypedText weak} 37*f4a2713aSLionel Sambuc 38*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:8:18 %s | FileCheck -check-prefix=CHECK-CC2 %s 39*f4a2713aSLionel Sambuc// CHECK-CC2: {TypedText getter}{Text =}{Placeholder method} 40*f4a2713aSLionel Sambuc// CHECK-CC2-NEXT: {TypedText nonatomic} 41*f4a2713aSLionel Sambuc// CHECK-CC2-NEXT: {TypedText readonly} 42*f4a2713aSLionel Sambuc// CHECK-CC2-NEXT: {TypedText readwrite} 43*f4a2713aSLionel Sambuc// CHECK-CC2-NEXT: {TypedText setter}{Text =}{Placeholder method} 44*f4a2713aSLionel Sambuc@end 45