1 | const char *func(const char *); |
---|---|
2 | |
3 | #define MORE __FILE__ |
4 | |
5 | #define M(x) "1"#x |
6 | #define N(x) func("2"#x MORE) |
7 | |
8 | void foo(const char *); |
9 | |
10 | int test() { |
11 | foo(M(x())); |
12 | foo(N(x())); |
13 | } |
14 | |
15 | // RUN: c-index-test -code-completion-at=%s:11:11 %s | FileCheck %s |
16 | // RUN: c-index-test -code-completion-at=%s:12:11 %s | FileCheck %s |
17 | // CHECK: Natural language |
18 |