Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wbool-operation-1.C

raw
1 // PR c++/82040
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wbool-operation" }
4
5 template <class c>
6 decltype (~c{})
7 call ()
8 {
9 return ~false; // { dg-warning "on an expression of type 'bool'" }
10 }
11 template int call<bool>();