diff options
Diffstat (limited to 'test/CodeCompletion/macros-in-modules.c')
-rw-r--r-- | test/CodeCompletion/macros-in-modules.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeCompletion/macros-in-modules.c b/test/CodeCompletion/macros-in-modules.c new file mode 100644 index 0000000..82ffaae --- /dev/null +++ b/test/CodeCompletion/macros-in-modules.c @@ -0,0 +1,11 @@ +// RUN: rm -rf %t && mkdir %t +// RUN: echo 'module Foo { header "foo.h" }' > %t/module.modulemap +// RUN: echo '#define FOO_MACRO 42' > %t/foo.h +// RUN: c-index-test -code-completion-at=%s:9:1 -I %t %s | FileCheck %s +// RUN: c-index-test -code-completion-at=%s:9:1 -I %t -fmodules %s | FileCheck %s + +#include "foo.h" +int x = +/*here*/1; + +// CHECK: FOO_MACRO |