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 | 118076d1640c973a5794c2a4b484d2fccd349da2 (patch) | |
tree | a86708e56e39eec18ab71fd8abde6f1b2f8d8ebd /test/Modules/public-private.modulemap | |
parent | e32a61193f8faa43b949892f0dc2d6baf447a143 (diff) | |
download | clang-118076d1640c973a5794c2a4b484d2fccd349da2.tar.gz |
[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.)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@231728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules/public-private.modulemap')
-rw-r--r-- | test/Modules/public-private.modulemap | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Modules/public-private.modulemap b/test/Modules/public-private.modulemap index b07d161665..ef4ae9885f 100644 --- a/test/Modules/public-private.modulemap +++ b/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" +} |