PR testsuite/86649
[official-gcc.git] / gcc / testsuite / g++.dg / overload / rvalue1.C
blob41805949dedc289cbd6c702f744eccd1ca6cc2e0
1 // PR c++/42655
3 void unused(const bool &) { }
5 int main() {
6   volatile bool x = false;
7   unused(!!x); // type of "!x" is bool
8   unused(!x); // type of "!x" is bool