blob: 82e9ead445d032b7b31e84e3c989c83791f6994d [file] [log] [blame]
// PR c++/82040
// { dg-do compile { target c++11 } }
// { dg-options "-Wbool-operation" }
template <class c>
decltype (~c{})
call ()
{
return ~false; // { dg-warning "on an expression of type 'bool'" }
}
template int call<bool>();