| 1 |
// { dg-do compile { target c++17 } } |
| 2 |
#include <type_traits> |
| 3 |
|
| 4 |
static_assert( not std::is_invocable_r_v<const int&, int()> ); |
| 5 |
static_assert( not std::is_invocable_r_v<int&&, int()> ); |
| 6 |
static_assert( not std::is_invocable_r_v<const long&, int()> ); |