From 2537a3648334fc0a51a68f3ee443cba2db8074be Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 8 Dec 2011 17:01:29 +0000 Subject: 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 --- clang/test/Modules/submodules.m | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 clang/test/Modules/submodules.m (limited to 'clang/test/Modules/submodules.m') 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; +} + -- cgit v1.2.3