blob: ea46df0ae657e4175a18c79f278f2110382703c7 [file] [log] [blame]
// PR c++/48530
// { dg-do compile { target c++11 } }
template<class T,
class = decltype(T())
>
char f(int);
template<class>
char (&f(...))[2];
struct DelDtor {
DelDtor() = default;
~DelDtor() = delete;
};
static_assert(sizeof(f<DelDtor>(0)) != 1, "Error");