summaryrefslogtreecommitdiff
path: root/clang/test/Index/complete-in-stringify.c
blob: d5185496f8b7d27a895e7e616241cc33983c6d88 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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