minix/external/bsd/llvm/dist/clang/test/Index/complete-in-stringify.c
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

17 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