Skip to content

Commit b817c3c

Browse files
committed
Add test 39-signed-overflows/15-div-minus-1 (issue #1803)
1 parent 9b9e214 commit b817c3c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// PARAM: --enable ana.int.interval
2+
#include <limits.h>
3+
4+
int main() {
5+
int bad = INT_MIN / -1; // WARN
6+
int x, y;
7+
if (y != 0) {
8+
bad = x / y; // TODO WARN
9+
}
10+
return 0;
11+
}

0 commit comments

Comments
 (0)