view clang/test/Index/complete-in-stringify.c @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1d019706d866
children
line wrap: on
line source

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