| 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 |
| 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 |