7 void test(struct Point
*p
) {
9 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:8:6 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
19 void test2(struct Point2 p
) {
23 void test3(struct Point2
*p
) {
27 // RUN: %clang_cc1 -fsyntax-only -code-completion-with-fixits -code-completion-at=%s:20:6 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
28 // CHECK-CC2: x (requires fix-it: {20:4-20:6} to ".")
30 // RUN: %clang_cc1 -fsyntax-only -code-completion-with-fixits -code-completion-at=%s:24:5 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
31 // CHECK-CC3: x (requires fix-it: {24:4-24:5} to "->")
33 void test4(struct Point
*p
) {
35 (int)(0,1,2,3,4,p
)->x
;
37 // RUN: %clang_cc1 -fsyntax-only -code-completion-with-fixits -code-completion-at=%s:34:13 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
38 // RUN: %clang_cc1 -fsyntax-only -code-completion-with-fixits -code-completion-at=%s:35:23 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s