2 // { dg-do compile { target c++11 } }
7 template<typename T, typename U,
8 typename = decltype((declval<T>().*declval<U>())())>
9 constexpr bool test(int)
14 template<typename T, typename U>
15 constexpr bool test(...)
23 static_assert(!test<S, void (S::*)() &>(0), "");
24 static_assert(test<S, void (S::*)() &&>(0), "");
25 static_assert(test<S &, void (S::*)() &>(0), "");
26 static_assert(!test<S &, void (S::*)() &&>(0), "");