// PR c++/56913 // { dg-do compile { target c++11 } } template T &&declval(); template().*declval())())> constexpr bool test(int) { return true; } template constexpr bool test(...) { return false; } struct S {}; static_assert(!test(0), ""); static_assert(test(0), ""); static_assert(test(0), ""); static_assert(!test(0), "");