diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-12-08 17:01:29 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-12-08 17:01:29 +0000 |
| commit | 2537a3648334fc0a51a68f3ee443cba2db8074be (patch) | |
| tree | a10236aa39e0f65ac7efd766a17313c6a100537b /clang/test/Modules/submodules.m | |
| parent | ecd8a94acfc744026beddc1819cc61412904c1ad (diff) | |
| download | bcm5719-llvm-2537a3648334fc0a51a68f3ee443cba2db8074be.tar.gz bcm5719-llvm-2537a3648334fc0a51a68f3ee443cba2db8074be.zip | |
Keep track of import dependencies between submodules within the module
that's currently being built. This is important for supporting
transitive dependencies ("export *" in the module map) completely.
llvm-svn: 146156
Diffstat (limited to 'clang/test/Modules/submodules.m')
| -rw-r--r-- | clang/test/Modules/submodules.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Modules/submodules.m b/clang/test/Modules/submodules.m new file mode 100644 index 00000000000..e5a050f0f42 --- /dev/null +++ b/clang/test/Modules/submodules.m @@ -0,0 +1,11 @@ + +// RUN: rm -rf %t +// RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fauto-module-import -F %S/Inputs %s -verify + +// Note: transitively imports Module.Sub2. +__import_module__ Module.Sub; + +int getValue() { + return *Module_Sub + *Module_Sub2; +} + |

