2 // { dg-do compile { target c++11 } }
6 moveonly(moveonly&&) = default;
10 constexpr auto is_throwable(T t) -> decltype(throw t, true) {
14 constexpr bool is_throwable(...) { return false; }
16 constexpr bool b = is_throwable<moveonly>(moveonly{});
17 #if __cplusplus >= 202002L
18 static_assert (b, "move from the function parameter");
20 static_assert (!b, "no move from the function parameter");