[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeCompletion / macros-in-modules.c
blob82c34e0e8f6f9b9d1206bb641088d77a40695bc0
1 // RUN: rm -rf %t && mkdir %t
2 // RUN: echo 'module Foo { header "foo.h" }' > %t/module.modulemap
3 // RUN: echo '#define FOO_MACRO 42' > %t/foo.h
4 // RUN: c-index-test -code-completion-at=%s:%(line+5):1 -I %t %s | FileCheck %s
5 // RUN: c-index-test -code-completion-at=%s:%(line+4):1 -I %t -fmodules -fmodules-cache-path=%t %s | FileCheck %s
7 #include "foo.h"
8 int x =
9 /*here*/1;
11 // CHECK: FOO_MACRO