brintos

brintos / llvm-project-archived public Read only

0
0
Text · 344 B · d518549 Raw
18 lines · c
1const char *func(const char *);2 3#define MORE __FILE__4 5#define M(x) "1"#x6#define N(x) func("2"#x MORE)7 8void foo(const char *);9 10int test() {11    foo(M(x()));12    foo(N(x()));13}14 15// RUN: c-index-test -code-completion-at=%s:11:11 %s | FileCheck %s16// RUN: c-index-test -code-completion-at=%s:12:11 %s | FileCheck %s17// CHECK: Natural language18