//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This test uses new symbols that were not defined in the libc++ shipped on // darwin11 and darwin12: // XFAIL: with_system_cxx_lib=macosx10.7 // XFAIL: with_system_cxx_lib=macosx10.8 // // template // class moneypunct // : public locale::facet, // public money_base // { // public: // typedef _CharT char_type; // typedef basic_string string_type; // static const bool intl = International; #include #include template void test(const _Tp &) {} int main() { static_assert((std::is_base_of >::value), ""); static_assert((std::is_base_of >::value), ""); static_assert((std::is_base_of >::value), ""); static_assert((std::is_base_of >::value), ""); static_assert((std::is_same::char_type, char>::value), ""); static_assert((std::is_same::char_type, wchar_t>::value), ""); static_assert((std::is_same::string_type, std::string>::value), ""); static_assert((std::is_same::string_type, std::wstring>::value), ""); test(std::moneypunct::intl); test(std::moneypunct::intl); test(std::moneypunct::intl); test(std::moneypunct::intl); }