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 | } |
9 | // CHECK-MESSAGES: warning |
10 |
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 | } |
9 | // CHECK-MESSAGES: warning |
10 |