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:9 %s -o - | FileCheck -check-prefix=CC2 %s
17 // Run the same tests, this time with macros loaded from the PCH file.
18 // RUN: %clang_cc1 -emit-pch -o %t %S/Inputs/macros.h
19 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:12:14 %s -o - | FileCheck -check-prefix=CC1 %s
20 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:14:9 %s -o - | FileCheck -check-prefix=CC2 %s
22 // CC1: BAR(<#X#>, <#Y#>)
25 // CC1: IDENTITY(<#X#>)
31 // CC2: BAR(<#X#>, <#Y#>)
35 // CC2: IDENTITY(<#X#>)