Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CXX / over / over.built / p4.cpp
blobd7cd99c68d6a283bb179a2ed67c8dd8450e9de89
1 // RUN: %clang_cc1 -std=c++17 -verify %s -Wno-tautological-compare
3 void f(int i, bool b) {
4 (void)++i;
5 (void)i++;
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}}