macros-in-modules.c 356 B

1234567891011
  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:9:1 -I %t %s | FileCheck %s
  5. // RUN: c-index-test -code-completion-at=%s:9:1 -I %t -fmodules %s | FileCheck %s
  6. #include "foo.h"
  7. int x =
  8. /*here*/1;
  9. // CHECK: FOO_MACRO