From ec09b914434b8dbc23bf6043b13ee5d5ecf4c2a6 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 4 Nov 2021 13:52:41 -0400 Subject: Add QIntC::range_check_subtract --- libtests/qtest/qintc/qintc.out | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libtests/qtest') 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 -- cgit v1.2.3-54-g00ecf