xref: /llvm-project/clang/test/CXX/over/over.built/p4.cpp (revision 1427742750ed1fcd2ead639c4ec5178fc34c9257)
1 // RUN: %clang_cc1 -std=c++17 -verify %s -Wno-tautological-compare
2 
f(int i,bool b)3 void f(int i, bool b) {
4   (void)++i;
5   (void)i++;
6 
7   (void)++b; // expected-error {{ISO C++17 does not allow incrementing expression of type bool}}
8   (void)b++; // expected-error {{ISO C++17 does not allow incrementing expression of type bool}}
9 }
10 
11