2015-06-25 03:27:02 +08:00
|
|
|
// 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
|
2015-07-21 05:22:46 +08:00
|
|
|
// RUN: c-index-test -code-completion-at=%s:9:1 -I %t -fmodules -fmodules-cache-path=%t %s | FileCheck %s
|
2015-06-25 03:27:02 +08:00
|
|
|
|
|
|
|
#include "foo.h"
|
|
|
|
int x =
|
|
|
|
/*here*/1;
|
|
|
|
|
|
|
|
// CHECK: FOO_MACRO
|