//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // UNSUPPORTED: libcpp-has-no-threads // // typedef atomic atomic_char; // typedef atomic atomic_schar; // typedef atomic atomic_uchar; // typedef atomic atomic_short; // typedef atomic atomic_ushort; // typedef atomic atomic_int; // typedef atomic atomic_uint; // typedef atomic atomic_long; // typedef atomic atomic_ulong; // typedef atomic atomic_llong; // typedef atomic atomic_ullong; // typedef atomic atomic_char16_t; // typedef atomic atomic_char32_t; // typedef atomic atomic_wchar_t; #include #include int main() { static_assert((std::is_same, std::atomic_char>::value), ""); static_assert((std::is_same, std::atomic_schar>::value), ""); static_assert((std::is_same, std::atomic_uchar>::value), ""); static_assert((std::is_same, std::atomic_short>::value), ""); static_assert((std::is_same, std::atomic_ushort>::value), ""); static_assert((std::is_same, std::atomic_int>::value), ""); static_assert((std::is_same, std::atomic_uint>::value), ""); static_assert((std::is_same, std::atomic_long>::value), ""); static_assert((std::is_same, std::atomic_ulong>::value), ""); static_assert((std::is_same, std::atomic_llong>::value), ""); static_assert((std::is_same, std::atomic_ullong>::value), ""); static_assert((std::is_same, std::atomic_wchar_t>::value), ""); #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS static_assert((std::is_same, std::atomic_char16_t>::value), ""); static_assert((std::is_same, std::atomic_char32_t>::value), ""); #endif // _LIBCPP_HAS_NO_UNICODE_CHARS }