(root)/
gcc-13.2.0/
libstdc++-v3/
testsuite/
20_util/
is_invocable/
dangling_ref.cc
// { dg-do compile { target c++17 } }
#include <type_traits>

static_assert( not std::is_invocable_r_v<const int&, int()> );
static_assert( not std::is_invocable_r_v<int&&, int()> );
static_assert( not std::is_invocable_r_v<const long&, int()> );