diff options
| author | Douglas Gregor <dgregor@apple.com> | 2012-01-13 22:31:52 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2012-01-13 22:31:52 +0000 |
| commit | 3a5999bc1cc661a0f71e0a186d12a8cbb3c9223c (patch) | |
| tree | 66874550405b1917278b80b29582967fba1881da /clang/test | |
| parent | 071c69cd7c114409926c9bbc29233cc8ab19841f (diff) | |
| download | bcm5719-llvm-3a5999bc1cc661a0f71e0a186d12a8cbb3c9223c.tar.gz bcm5719-llvm-3a5999bc1cc661a0f71e0a186d12a8cbb3c9223c.zip | |
When inferring a module for a framework, first determine whether that
framework is actually a subframework within a top-level framework. If
so, only infer a module for the top-level framework and then dig out
the appropriate submodule.
This helps us cope with an amusing subframeworks anti-pattern, where
one uses -F <framework>/Frameworks to get direct include access to the
subframeworks of a framework (which otherwise would not be
permitted).
llvm-svn: 148148
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Modules/subframeworks.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Modules/subframeworks.m b/clang/test/Modules/subframeworks.m index 82c4a4bbf27..e87bc6bac33 100644 --- a/clang/test/Modules/subframeworks.m +++ b/clang/test/Modules/subframeworks.m @@ -1,6 +1,6 @@ // RUN: rm -rf %t -// RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs %s -verify -// RUN: %clang_cc1 -x objective-c++ -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs %s -verify +// RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs -F %S/Inputs/DependsOnModule.framework/Frameworks %s -verify +// RUN: %clang_cc1 -x objective-c++ -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs -F %S/Inputs/DependsOnModule.framework/Frameworks %s -verify @import DependsOnModule; |

