| // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c++ -Eonly -fmodules-cache-path=%t -I %S/Inputs/submodules %s -verify |
| // FIXME: When we have a syntax for modules in C++, use that. |
| # error HAVE_VECTOR macro is not available (but should be) |
| # error HAVE_TYPE_TRAITS_MAP macro is available (but shouldn't be) |
| # error HAVE_HASH_MAP macro is available (but shouldn't be) |
| @import std.typetraits; // expected-error{{no submodule named 'typetraits' in module 'std'; did you mean 'type_traits'?}} |
| # error HAVE_VECTOR macro is not available (but should be) |
| # error HAVE_TYPE_TRAITS_MAP macro is not available (but should be) |
| # error HAVE_HASH_MAP macro is available (but shouldn't be) |
| @import std.vector.compare; // expected-error{{no submodule named 'compare' in module 'std.vector'}} |
| @import std; // import everything in 'std' |
| # error HAVE_VECTOR macro is not available (but should be) |
| # error HAVE_TYPE_TRAITS_MAP macro is not available (but should be) |
| # error HAVE_HASH_MAP macro is available (but shouldn't be) |
| # error HAVE_VECTOR macro is not available (but should be) |
| # error HAVE_TYPE_TRAITS_MAP macro is not available (but should be) |
| # error HAVE_HASH_MAP macro is not available (but should be) |