1 /* Note: the RUN lines are near the end of the file, since line/column
2 matter for this test. */
11 @property float Prop2;
20 @synthesize Prop2, Prop1, Prop3 = StoredProp3;
45 @synthesize Prop2 = Prop2_;
59 // RUN: c-index-test -code-completion-at=%s:20:13 %s | FileCheck -check-prefix=CHECK-CC1 %s
60 // CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText Prop0}
61 // CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText Prop1}
62 // CHECK-CC1: ObjCPropertyDecl:{ResultType float}{TypedText Prop2}
63 // CHECK-CC1: ObjCPropertyDecl:{ResultType id}{TypedText Prop3}
64 // CHECK-CC1: ObjCPropertyDecl:{ResultType id}{TypedText Prop4}
65 // RUN: c-index-test -code-completion-at=%s:20:20 %s | FileCheck -check-prefix=CHECK-CC2 %s
66 // CHECK-CC2: ObjCPropertyDecl:{ResultType int}{TypedText Prop0}
67 // CHECK-CC2: ObjCPropertyDecl:{ResultType int}{TypedText Prop1}
68 // CHECK-CC2-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop3}
69 // CHECK-CC2: ObjCPropertyDecl:{ResultType id}{TypedText Prop4}
70 // RUN: c-index-test -code-completion-at=%s:20:35 %s | FileCheck -check-prefix=CHECK-CC3 %s
71 // CHECK-CC3: ObjCIvarDecl:{ResultType id}{TypedText _Prop3} (36)
72 // CHECK-CC3: ObjCIvarDecl:{ResultType int}{TypedText RandomIVar} (35)
73 // CHECK-CC3: ObjCIvarDecl:{ResultType id}{TypedText StoredProp3} (8)
75 // RUN: c-index-test -code-completion-at=%s:21:10 %s | FileCheck -check-prefix=CHECK-CC4 %s
76 // CHECK-CC4: ObjCPropertyDecl:{ResultType int}{TypedText Prop0}
77 // CHECK-CC4-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop4}
79 // RUN: c-index-test -code-completion-at=%s:29:13 %s | FileCheck -check-prefix=CHECK-CC5 %s
80 // CHECK-CC5: ObjCPropertyDecl:{ResultType int}{TypedText Prop0} (35)
81 // CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText Prop1} (35)
82 // CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType float}{TypedText Prop2} (35)
83 // CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop3} (35)
84 // CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop4} (35)
86 // RUN: c-index-test -code-completion-at=%s:9:11 %s | FileCheck -check-prefix=CHECK-CC6 %s
87 // CHECK-CC6: ObjCInterfaceDecl:{TypedText MyClass} (50)
90 // RUN: c-index-test -code-completion-at=%s:45:21 -fobjc-nonfragile-abi %s | FileCheck -check-prefix=CHECK-CC7 %s
91 // CHECK-CC7-NOT: ObjCIvarDecl:{ResultType id}{TypedText _Prop2}
92 // CHECK-CC7: ObjCIvarDecl:{ResultType I4 *}{TypedText Prop1} (17)
93 // CHECK-CC7: ObjCIvarDecl:{ResultType id}{TypedText Prop2_} (7)
95 // RUN: c-index-test -code-completion-at=%s:57:13 -fobjc-nonfragile-abi %s | FileCheck -check-prefix=CHECK-CC8 %s
96 // CHECK-CC8: ObjCPropertyDecl:{ResultType int}{TypedText Prop5} (35)