// -*- 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. // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11, c++14 // // struct monostate {}; #include #include int main() { using M = std::monostate; static_assert(std::is_trivially_default_constructible::value, ""); static_assert(std::is_trivially_copy_constructible::value, ""); static_assert(std::is_trivially_copy_assignable::value, ""); static_assert(std::is_trivially_destructible::value, ""); constexpr M m{}; ((void)m); }