C++: Correct annotation in test

This commit is contained in:
Jonas Jensen
2020-10-12 11:25:38 +02:00
parent 1d9acbfca9
commit 30b9d13a45

View File

@@ -643,11 +643,11 @@ void two_bounds_from_one_test(short ss, unsigned short us) {
void guard_bound_out_of_range(void) {
int i = 0;
if (i < 0) {
out(i); // 0 .. 0 [BUG: is -max .. +max]
out(i); // unreachable [BUG: is -max .. +max]
}
unsigned int u = 0;
if (u < 0) {
out(u); // 0 .. 0 [BUG: is 0 .. +max]
out(u); // unreachable [BUG: is 0 .. +max]
}
}