minix/external/bsd/libc++/dist/libcxx/test/localization/locale.categories/category.messages/locale.messages/types.pass.cpp
Lionel Sambuc 4684ddb6aa LLVM Minix changes
- import libcxx
 - reduce targets to the one when compiled as a tools

Change-Id: Iabb8427f80ff8e89463559a28bcb8b4f2bdbc496
2014-07-28 17:05:59 +02:00

34 lines
1.3 KiB
C++

//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
// <locale>
// template <class _CharT>
// class messages
// : public locale::facet,
// public messages_base
// {
// public:
// typedef _CharT char_type;
// typedef basic_string<_CharT> string_type;
#include <locale>
#include <type_traits>
int main()
{
static_assert((std::is_base_of<std::locale::facet, std::messages<char> >::value), "");
static_assert((std::is_base_of<std::messages_base, std::messages<char> >::value), "");
static_assert((std::is_base_of<std::locale::facet, std::messages<wchar_t> >::value), "");
static_assert((std::is_base_of<std::messages_base, std::messages<wchar_t> >::value), "");
static_assert((std::is_same<std::messages<char>::char_type, char>::value), "");
static_assert((std::is_same<std::messages<wchar_t>::char_type, wchar_t>::value), "");
static_assert((std::is_same<std::messages<char>::string_type, std::string>::value), "");
static_assert((std::is_same<std::messages<wchar_t>::string_type, std::wstring>::value), "");
}