xref: /aosp_15_r20/external/clang/test/CodeCompletion/macros-in-modules.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: rm -rf %t && mkdir %t
2*67e74705SXin Li // RUN: echo 'module Foo { header "foo.h" }' > %t/module.modulemap
3*67e74705SXin Li // RUN: echo '#define FOO_MACRO 42' > %t/foo.h
4*67e74705SXin Li // RUN: c-index-test -code-completion-at=%s:9:1 -I %t %s | FileCheck %s
5*67e74705SXin Li // RUN: c-index-test -code-completion-at=%s:9:1 -I %t -fmodules -fmodules-cache-path=%t %s | FileCheck %s
6*67e74705SXin Li 
7*67e74705SXin Li #include "foo.h"
8*67e74705SXin Li int x =
9*67e74705SXin Li /*here*/1;
10*67e74705SXin Li 
11*67e74705SXin Li // CHECK: FOO_MACRO
12