mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 19:45:40 -04:00

Otherwise the stale module cache data may cause the test to fail. These two tests are new and are the only instances of c-index-test with -fmodules that doesn't have an explicit module cache path. llvm-svn: 242710
12 lines
380 B
C
12 lines
380 B
C
// 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 -fmodules-cache-path=%t %s | FileCheck %s
|
|
|
|
#include "foo.h"
|
|
int x =
|
|
/*here*/1;
|
|
|
|
// CHECK: FOO_MACRO
|