2 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c++ -Eonly -fmodules-cache-path=%t -I %S/Inputs/submodules %s -verify
3 // FIXME: When we have a syntax for modules in C++, use that.
8 # error HAVE_VECTOR macro is not available (but should be)
11 #ifdef HAVE_TYPE_TRAITS
12 # error HAVE_TYPE_TRAITS_MAP macro is available (but shouldn't be)
16 # error HAVE_HASH_MAP macro is available (but shouldn't be)
19 @import std
.typetraits
; // expected-error{{no submodule named 'typetraits' in module 'std'; did you mean 'type_traits'?}}
22 # error HAVE_VECTOR macro is not available (but should be)
25 #ifndef HAVE_TYPE_TRAITS
26 # error HAVE_TYPE_TRAITS_MAP macro is not available (but should be)
30 # error HAVE_HASH_MAP macro is available (but shouldn't be)
33 @import std.vector.compare; // expected-error{{no submodule named 'compare' in module 'std.vector'}}
35 @import std; // import everything in 'std'
38 # error HAVE_VECTOR macro is not available (but should be)
41 #ifndef HAVE_TYPE_TRAITS
42 # error HAVE_TYPE_TRAITS_MAP macro is not available (but should be)
46 # error HAVE_HASH_MAP macro is available (but shouldn't be)
52 # error HAVE_VECTOR macro is not available (but should be)
55 #ifndef HAVE_TYPE_TRAITS
56 # error HAVE_TYPE_TRAITS_MAP macro is not available (but should be)
60 # error HAVE_HASH_MAP macro is not available (but should be)