Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wbool-operation-1.C
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>
();