summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/self-import-header.m
diff options
context:
space:
mode:
authorBen Langmuir <blangmuir@apple.com>2015-02-24 04:58:15 +0000
committerBen Langmuir <blangmuir@apple.com>2015-02-24 04:58:15 +0000
commit1f6a32b3e7aa095263a5a0bbb1cc0576dce441a6 (patch)
tree147eaf2b4883a589053c55467ca88f26a00c065a /clang/test/Modules/self-import-header.m
parentd0a19981c4f6d275707571fc1530ac8846853940 (diff)
downloadbcm5719-llvm-1f6a32b3e7aa095263a5a0bbb1cc0576dce441a6.tar.gz
bcm5719-llvm-1f6a32b3e7aa095263a5a0bbb1cc0576dce441a6.zip
Don't load Framework module.map files when searching subdirectories
This would cause frameworks to have spurious "redefinition" errors if they had both a (legacy) "module.map" and a (new) "module.modulemap" file and we happened to do a sub-directory search in that directory using a non-framework include path (e.g. -Ifoo/ -Ffoo/). For migration purposes it's very handy that the compiler will prefer the new spelling of the filename and not look at the old one if it doesn't need to. llvm-svn: 230308
Diffstat (limited to 'clang/test/Modules/self-import-header.m')
-rw-r--r--clang/test/Modules/self-import-header.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Modules/self-import-header.m b/clang/test/Modules/self-import-header.m
index 4dccd94050d..9b4bd5dee52 100644
--- a/clang/test/Modules/self-import-header.m
+++ b/clang/test/Modules/self-import-header.m
@@ -3,6 +3,7 @@
// RUN: rm -rf %t
// RUN: %clang -fsyntax-only -isysroot %S/Inputs/System/usr/include -fmodules -fmodules-cache-path=%t \
// RUN: -target x86_64-darwin \
-// RUN: -F %S -I %S/Inputs/self-import-header %s -D__need_wint_t -Werror=implicit-function-declaration
+// RUN: -F %S -F %S/Inputs/self-import-header -I %S/Inputs/self-import-header \
+// RUN: %s -D__need_wint_t -Werror=implicit-function-declaration
@import af;
OpenPOWER on IntegriCloud