You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
473 B
14 lines
473 B
#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:4:6 %s -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:4:8 %s -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:4:15 %s -o - | FileCheck %s
|
|
|
|
// CHECK: input_var
|
|
}
|