12 lines · c
1// RUN: rm -rf %t && mkdir %t2// RUN: echo 'module Foo { header "foo.h" }' > %t/module.modulemap3// RUN: echo '#define FOO_MACRO 42' > %t/foo.h4// RUN: c-index-test -code-completion-at=%s:%(line+5):1 -I %t %s | FileCheck %s5// RUN: c-index-test -code-completion-at=%s:%(line+4):1 -I %t -fmodules -fmodules-cache-path=%t %s | FileCheck %s6 7#include "foo.h"8int x =9/*here*/1;10 11// CHECK: FOO_MACRO12