aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/qtest
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-11-04 18:52:41 +0100
committerJay Berkenbilt <ejb@ql.org>2021-11-04 18:53:46 +0100
commitec09b914434b8dbc23bf6043b13ee5d5ecf4c2a6 (patch)
tree02ebea0e8d0b6328cf0c0960f4ff2fd1a1b9c130 /libtests/qtest
parent4a648b9a00d2c4de37bf17165b20a1fc32956eee (diff)
downloadqpdf-ec09b914434b8dbc23bf6043b13ee5d5ecf4c2a6.tar.zst
Add QIntC::range_check_subtract
Diffstat (limited to 'libtests/qtest')
-rw-r--r--libtests/qtest/qintc/qintc.out9
1 files changed, 9 insertions, 0 deletions
diff --git a/libtests/qtest/qintc/qintc.out b/libtests/qtest/qintc/qintc.out
index 5520c635..c78f02ab 100644
--- a/libtests/qtest/qintc/qintc.out
+++ b/libtests/qtest/qintc/qintc.out
@@ -26,3 +26,12 @@ min_ll + 0LL: okay PASSED
min_ll + -1LL: adding -1 to -9223372036854775808 would cause an integer underflow PASSED
max_sc + max_sc: adding  to  would cause an integer overflow PASSED
'!' + '#': okay PASSED
+1 - 2: okay PASSED
+-1 - -2: okay PASSED
+1 - 10: okay PASSED
+-1 - -10: okay PASSED
+0LL - min_ll: subtracting -9223372036854775808 from 0 would cause an integer overflow PASSED
+1LL - min_ll: subtracting -9223372036854775808 from 1 would cause an integer overflow PASSED
+0LL - max_ll: okay PASSED
+-1LL - max_ll: okay PASSED
+-2LL - max_ll: subtracting 9223372036854775807 from -2 would cause an integer underflow PASSED