Support to keep bounds derived on implicit integer casts.

This commit is contained in:
Cornelius Riemenschneider
2020-02-03 17:33:06 +01:00
parent cf8efbb5a0
commit 36479d3fd6
2 changed files with 23 additions and 0 deletions

View File

@@ -192,3 +192,19 @@ int test16(int i) {
long l;
l = i;
}
// implicit integer casts
void test17(int i, long l) {
if (i < l) {
sink(i);
}
if (i < l - 2) {
sink (i);
}
}
void test18(int x, int y) {
if (x < y - 2) {
sink(x);
}
}