summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/overload/rvalue1.C
blob: 41805949dedc289cbd6c702f744eccd1ca6cc2e0 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/42655

void unused(const bool &) { }

int main() {
  volatile bool x = false;
  unused(!!x); // type of "!x" is bool
  unused(!x); // type of "!x" is bool
}