summaryrefslogtreecommitdiff
path: root/test/Modules/public-private.modulemap
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-03-10 00:19:04 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-03-10 00:19:04 +0000
commit118076d1640c973a5794c2a4b484d2fccd349da2 (patch)
treea86708e56e39eec18ab71fd8abde6f1b2f8d8ebd /test/Modules/public-private.modulemap
parente32a61193f8faa43b949892f0dc2d6baf447a143 (diff)
downloadclang-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.modulemap7
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"
+}