Ilya Biryukov | b8f231a | 2018-01-22 17:18:28 +0000 | [diff] [blame] | 1 | #define ID(X) X |
| 2 | |
| 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:4:6 %s -o - | FileCheck %s |
| 9 | // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:4:8 %s -o - | FileCheck %s |
| 10 | // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:4:15 %s -o - | FileCheck %s |
| 11 | |
| 12 | // CHECK: input_var |
| 13 | } |