Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 30b9d13

Browse files
committed
C++: Correct annotation in test
1 parent 1d9acbf commit 30b9d13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • cpp/ql/test/library-tests/rangeanalysis/SimpleRangeAnalysis

cpp/ql/test/library-tests/rangeanalysis/SimpleRangeAnalysis/test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,11 +643,11 @@ void two_bounds_from_one_test(short ss, unsigned short us) {
643643
void guard_bound_out_of_range(void) {
644644
int i = 0;
645645
if (i < 0) {
646-
out(i); // 0 .. 0 [BUG: is -max .. +max]
646+
out(i); // unreachable [BUG: is -max .. +max]
647647
}
648648

649649
unsigned int u = 0;
650650
if (u < 0) {
651-
out(u); // 0 .. 0 [BUG: is 0 .. +max]
651+
out(u); // unreachable [BUG: is 0 .. +max]
652652
}
653653
}

0 commit comments

Comments
 (0)