//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // // 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(int, char**) { 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 (&)()>(); return 0; }