brintos

brintos / llvm-project-archived public Read only

0
0
Text · 497 B · ff3fff7 Raw
14 lines · cpp
1#define ID(X) X2 3void test(bool input_var) {4  ID(input_var) = true;5  // Check that input_var shows up when completing at the start, in the middle6  // and at the end of the identifier.7  //8  // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-4):6 %s -o - | FileCheck %s9  // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-5):8 %s -o - | FileCheck %s10  // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-6):15 %s -o - | FileCheck %s11 12  // CHECK: input_var13}14