1 // Source: Comment 16 of PR51213
2 // { dg-do compile { target c++11 } }
8 constexpr auto hasSize(int) -> decltype(declval<T&>().size(), bool())
12 constexpr bool hasSize(...)
24 static_assert(hasSize<A>(0), "A");
25 static_assert(!hasSize<B>(0), "B");