diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2019-05-14 21:58:59 +0000 |
---|---|---|
committer | Jordan Rupprecht <rupprecht@google.com> | 2019-05-14 21:58:59 +0000 |
commit | b35a2aa71f76a334a9c98c0a3c3995b5d902d2b9 (patch) | |
tree | cdff4a5d1a715d4ad622fd8f190128b54bebe440 /test/Modules/relative-import-path.c | |
parent | 3748d41833787fcbf59cc5624e8d2b042a8991bc (diff) | |
parent | 741e05796da92b46d4f7bcbee00702ff37df6489 (diff) |
Creating branches/google/stable and tags/google/stable/2019-05-14 from r360103upstream/google/stable
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/google/stable@360714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules/relative-import-path.c')
-rw-r--r-- | test/Modules/relative-import-path.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/Modules/relative-import-path.c b/test/Modules/relative-import-path.c new file mode 100644 index 0000000000..045ab2bd3c --- /dev/null +++ b/test/Modules/relative-import-path.c @@ -0,0 +1,26 @@ +// RUN: rm -rf %t +// RUN: cp -r %S/Inputs/relative-import-path %t +// RUN: cp %s %t/t.c + +// Use FileCheck, which is more flexible. +// +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache \ +// RUN: -fdisable-module-hash -fsyntax-only \ +// RUN: -I%S/Inputs/relative-import-path \ +// RUN: -working-directory=%t \ +// RUN: -Rmodule-build -Rmodule-import t.c 2>&1 |\ +// RUN: FileCheck %s -implicit-check-not "remark:" -DWORKDIR=%t + +#include "A.h" // \ +// CHECK: remark: building module 'A' +// CHECK: remark: building module 'B' +// CHECK: remark: building module 'C' +// CHECK: remark: finished building module 'C' +// CHECK: remark: importing module 'C' from '[[WORKDIR]]{{[/\\]cache[/\\]}}C.pcm' +// CHECK: remark: finished building module 'B' +// CHECK: remark: importing module 'B' from '[[WORKDIR]]{{[/\\]cache[/\\]}}B.pcm' +// CHECK: remark: importing module 'C' into 'B' from '[[WORKDIR]]{{[/\\]cache[/\\]}}C.pcm' +// CHECK: remark: finished building module 'A' +// CHECK: remark: importing module 'A' from '[[WORKDIR]]{{[/\\]cache[/\\]}}A.pcm' +// CHECK: remark: importing module 'B' into 'A' from '[[WORKDIR]]{{[/\\]cache[/\\]}}B.pcm' +// CHECK: remark: importing module 'C' into 'B' from '[[WORKDIR]]{{[/\\]cache[/\\]}}C.pcm' |