1// RUN: %check_clang_tidy %s bugprone-inc-dec-in-conditions %t
2
3_BitInt(8) v_401_0() {
4 0 && ({
5 _BitInt(5) y = 0;
6 16777215wb ?: ++y;
7 });
8 return 0;
9}
10// CHECK-MESSAGES: warning
11

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of clang-tools-extra/test/clang-tidy/checkers/bugprone/inc-dec-in-conditions-bitint-no-crash.c