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 10 // RUN: c-index-test -code-completion-at=%s:7:11 %s -fno-objc-arc | FileCheck -check-prefix=CHECK-CC1 %s 11 // CHECK-CC1: {TypedText assign} 12 // CHECK-CC1-NEXT: {TypedText atomic} 13 // CHECK-CC1-NEXT: {TypedText copy} 14 // CHECK-CC1-NEXT: {TypedText getter}{Text =}{Placeholder method} 15 // CHECK-CC1-NEXT: {TypedText nonatomic} 16 // CHECK-CC1-NEXT: {TypedText readonly} 17 // CHECK-CC1-NEXT: {TypedText readwrite} 18 // CHECK-CC1-NEXT: {TypedText retain} 19 // CHECK-CC1-NEXT: {TypedText setter}{Text =}{Placeholder method} 20 // CHECK-CC1-NEXT: {TypedText strong} 21 // CHECK-CC1-NEXT: {TypedText unsafe_unretained} 22 // CHECK-CC1-NOT: {TypedText weak} 23 24 // 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 // CHECK-CC1-ARC: {TypedText assign} 26 // CHECK-CC1-ARC-NEXT: {TypedText atomic} 27 // CHECK-CC1-ARC-NEXT: {TypedText copy} 28 // CHECK-CC1-ARC-NEXT: {TypedText getter}{Text =}{Placeholder method} 29 // CHECK-CC1-ARC-NEXT: {TypedText nonatomic} 30 // CHECK-CC1-ARC-NEXT: {TypedText readonly} 31 // CHECK-CC1-ARC-NEXT: {TypedText readwrite} 32 // CHECK-CC1-ARC-NEXT: {TypedText retain} 33 // CHECK-CC1-ARC-NEXT: {TypedText setter}{Text =}{Placeholder method} 34 // CHECK-CC1-ARC-NEXT: {TypedText strong} 35 // CHECK-CC1-ARC-NEXT: {TypedText unsafe_unretained} 36 // CHECK-CC1-ARC-NEXT: {TypedText weak} 37 38 // RUN: c-index-test -code-completion-at=%s:8:18 %s | FileCheck -check-prefix=CHECK-CC2 %s 39 // CHECK-CC2: {TypedText getter}{Text =}{Placeholder method} 40 // CHECK-CC2-NEXT: {TypedText nonatomic} 41 // CHECK-CC2-NEXT: {TypedText readonly} 42 // CHECK-CC2-NEXT: {TypedText readwrite} 43 // CHECK-CC2-NEXT: {TypedText setter}{Text =}{Placeholder method} 44 @end 45