bolt/deps/llvm-18.1.8/clang/test/CXX/over/over.built/p4.cpp
2025-02-14 19:21:04 +01:00

10 lines
316 B
C++

// RUN: %clang_cc1 -std=c++17 -verify %s -Wno-tautological-compare
void f(int i, bool b) {
(void)++i;
(void)i++;
(void)++b; // expected-error {{ISO C++17 does not allow incrementing expression of type bool}}
(void)b++; // expected-error {{ISO C++17 does not allow incrementing expression of type bool}}
}