//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // // template // struct unwrap_ref_decay; // // template // using unwrap_ref_decay_t = typename unwrap_ref_decay::type; // UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 #include #include template void check() { static_assert(std::is_same_v::type, Result>); static_assert(std::is_same_v::type, std::unwrap_ref_decay_t>); } struct T { }; int main() { check(); check(); check(); check(); check(); check(); check(); check(); check(); check(); check(); check(); check, T&>(); check&, T&>(); check, T const&>(); check&, T const&>(); check, T*&>(); check&, T*&>(); check, T const*&>(); check&, T const*&>(); check, T (&)[3]>(); check&, T (&)[3]>(); check, T (&)()>(); check&, T (&)()>(); }