YouCompleteMe/cpp/llvm/tools/clang/test/Index/complete-in-stringify.c
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

18 lines
344 B
C

const char *func(const char *);
#define MORE __FILE__
#define M(x) "1"#x
#define N(x) func("2"#x MORE)
void foo(const char *);
int test() {
foo(M(x()));
foo(N(x()));
}
// RUN: c-index-test -code-completion-at=%s:11:11 %s | FileCheck %s
// RUN: c-index-test -code-completion-at=%s:12:11 %s | FileCheck %s
// CHECK: Natural language