mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
If a module doesn't meet a requirement, neither do its submodules. If we don't propogate that, we might think it's an error to be missing a header in one of those submodules. llvm-svn: 206673
27 lines
643 B
Plaintext
27 lines
643 B
Plaintext
module std {
|
|
module vector { header "vector.h" }
|
|
module type_traits { header "type_traits.h" }
|
|
explicit module hash_map { header "hash_map.h" }
|
|
}
|
|
|
|
module import_self {
|
|
module a { header "import-self-a.h" }
|
|
module b { header "import-self-b.h" export * }
|
|
module c { header "import-self-c.h" }
|
|
module d { header "import-self-d.h" }
|
|
}
|
|
|
|
module missing_headers {
|
|
module missing { header "missing.h" }
|
|
module not_missing { header "not_missing.h" }
|
|
}
|
|
|
|
module missing_unavailable_headers {
|
|
module missing {
|
|
requires !objc
|
|
header "missing.h"
|
|
module also_missing { header "also_missing.h" }
|
|
}
|
|
module not_missing { }
|
|
}
|