Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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>
();