diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-02-13 23:50:20 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-02-13 23:50:20 +0000 |
commit | ec87a50a3e9175441b5e4b38cc477881c078edf8 (patch) | |
tree | d12a6d127ce020625b20516b3fb086547aa5ab59 /clang/test/Modules/header-in-multiple-maps.cpp | |
parent | 9ea81b00410b8e5dea6ac9a57fc8f38752b5db12 (diff) | |
download | bcm5719-llvm-ec87a50a3e9175441b5e4b38cc477881c078edf8.tar.gz bcm5719-llvm-ec87a50a3e9175441b5e4b38cc477881c078edf8.zip |
[modules] If we have a choice between including a file textually and importing
a prebuilt form from a module, prefer the modular form, all else being equal.
llvm-svn: 229188
Diffstat (limited to 'clang/test/Modules/header-in-multiple-maps.cpp')
-rw-r--r-- | clang/test/Modules/header-in-multiple-maps.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Modules/header-in-multiple-maps.cpp b/clang/test/Modules/header-in-multiple-maps.cpp new file mode 100644 index 00000000000..a9c0c80eca8 --- /dev/null +++ b/clang/test/Modules/header-in-multiple-maps.cpp @@ -0,0 +1,9 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/header-in-multiple-maps -fmodule-map-file=%S/Inputs/header-in-multiple-maps/map1 -verify %s +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/header-in-multiple-maps -fmodule-map-file=%S/Inputs/header-in-multiple-maps/map2 -verify %s +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/header-in-multiple-maps -fmodule-map-file=%S/Inputs/header-in-multiple-maps/map3 -verify %s +// expected-no-diagnostics + +#include "a.h" +#include "a.h" +A *p; |