diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-03-10 00:19:04 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-03-10 00:19:04 +0000 |
| commit | 2708e52029451d9337106cbcad2e12225af1219b (patch) | |
| tree | c88b3b7e0d8886b9ef212b0fb6df1e5c75eaaf86 /clang/test/Modules/public-private.modulemap | |
| parent | 2547f93e95c8f06a1589615b923be9445f41e581 (diff) | |
| download | bcm5719-llvm-2708e52029451d9337106cbcad2e12225af1219b.tar.gz bcm5719-llvm-2708e52029451d9337106cbcad2e12225af1219b.zip | |
[modules] This check is run before we resolve the header, not after, so just
check that private headers are in a list matching the role. (We can't perform
the opposite checks for non-private headers because we infer those.)
llvm-svn: 231728
Diffstat (limited to 'clang/test/Modules/public-private.modulemap')
| -rw-r--r-- | clang/test/Modules/public-private.modulemap | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/Modules/public-private.modulemap b/clang/test/Modules/public-private.modulemap index b07d1616653..ef4ae9885fe 100644 --- a/clang/test/Modules/public-private.modulemap +++ b/clang/test/Modules/public-private.modulemap @@ -1,5 +1,10 @@ // RUN: %clang_cc1 -fmodules -fmodule-map-file=%s -I%S -include "Inputs/empty.h" /dev/null -module Blah { +// RUN: %clang_cc1 -fmodules -fmodule-map-file=%s -I%S -include "Inputs/dummy.h" /dev/null +module A { header "Inputs/empty.h" private header "Inputs/empty.h" } +module B { + private header "Inputs/dummy.h" + header "Inputs/dummy.h" +} |

