1*0a6a1f1dSLionel Sambuc 2*0a6a1f1dSLionel Sambuc // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test \ 3*0a6a1f1dSLionel Sambuc // RUN: -code-completion-at=%S/Inputs/complete-at-EOF.c:4:1 %S/Inputs/complete-at-EOF.c | FileCheck -check-prefix=CHECK-EOF %s 4*0a6a1f1dSLionel Sambuc // CHECK-EOF: macro definition:{TypedText CAKE} 5*0a6a1f1dSLionel Sambuc // CHECK-EOF: TypedefDecl:{TypedText foo} 6*0a6a1f1dSLionel Sambuc 7*0a6a1f1dSLionel Sambuc // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test \ 8*0a6a1f1dSLionel Sambuc // RUN: -code-completion-at=%S/Inputs/complete-at-EOF.c:2:1 %S/Inputs/complete-at-EOF.c | FileCheck -check-prefix=CHECK-AFTER-PREAMBLE %s 9*0a6a1f1dSLionel Sambuc // CHECK-AFTER-PREAMBLE: macro definition:{TypedText CAKE} 10