xref: /llvm-project/clang/test/CodeCompletion/macros-in-modules.m (revision cf9b25e0adc42546e4dc5ff51ee8674d45bac26b)
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+4):1 -I %t -fmodules-cache-path=%t -fmodules %s | FileCheck %s
5
6@import Foo;
7int x =
8/*here*/1;
9
10// CHECK: FOO_MACRO
11