10 void test(struct Point
*p
) {
11 // RUN: %clang_cc1 -include %S/Inputs/macros.h -fsyntax-only -code-completion-macros -code-completion-at=%s:12:14 %s -o - | FileCheck -check-prefix=CC1 %s
12 switch (p
->IDENTITY(color
)) {
13 // RUN: %clang_cc1 -include %S/Inputs/macros.h -fsyntax-only -code-completion-macros -code-completion-at=%s:14:10 %s -o - | FileCheck -check-prefix=CC2 %s
16 // RUN: %clang_cc1 -include %S/Inputs/macros.h -fsyntax-only -code-completion-macros -code-completion-at=%s:17:8 %s -o - | FileCheck -check-prefix=CC3 %s
20 // Run the same tests, this time with macros loaded from the PCH file.
21 // RUN: %clang_cc1 -emit-pch -o %t %S/Inputs/macros.h
22 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:12:14 %s -o - | FileCheck -check-prefix=CC1 %s
23 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:14:10 %s -o - | FileCheck -check-prefix=CC2 %s
24 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:17:8 %s -o - | FileCheck -check-prefix=CC3 %s
31 // CC2: BAR(<#X#>, <#Y#>)
35 // CC2: IDENTITY(<#X#>)
36 // CC2: MACRO_WITH_HISTORY(<#X#>, <#Y#>)
44 // CC3: MACRO_WITH_HISTORY