You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
344 B
18 lines
344 B
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
|