Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeCompletion / inside-macros.cpp
blobff3fff77d2a4e295935e1282a0bef356003d2d5f
1 #define ID(X) X
3 void test(bool input_var) {
4 ID(input_var) = true;
5 // Check that input_var shows up when completing at the start, in the middle
6 // and at the end of the identifier.
7 //
8 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-4):6 %s -o - | FileCheck %s
9 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-5):8 %s -o - | FileCheck %s
10 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-6):15 %s -o - | FileCheck %s
12 // CHECK: input_var