Files
clang-p2996/clang/test/Modules/public-private.modulemap
Richard Smith 2708e52029 [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
2015-03-10 00:19:04 +00:00

11 lines
328 B
Plaintext

// RUN: %clang_cc1 -fmodules -fmodule-map-file=%s -I%S -include "Inputs/empty.h" /dev/null
// 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"
}