bolt/deps/llvm-18.1.8/clang/test/CodeCompletion/inside-macros.cpp

14 lines
497 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
#define ID(X) X
void test(bool input_var) {
ID(input_var) = true;
// Check that input_var shows up when completing at the start, in the middle
// and at the end of the identifier.
//
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-4):6 %s -o - | FileCheck %s
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-5):8 %s -o - | FileCheck %s
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-6):15 %s -o - | FileCheck %s
// CHECK: input_var
}