Home
last modified time | relevance | path

Searched refs:overflow_result (Results 1 – 1 of 1) sorted by relevance

/external/icu/icu4c/source/test/cintltst/
Dputiltst.c132 int32_t overflow_result; in TestPUtilAPI() local
133 doAssert(FALSE, uprv_add32_overflow(INT32_MAX - 2, 1, &overflow_result), "should not overflow"); in TestPUtilAPI()
134 doAssert(INT32_MAX - 1, overflow_result, "should equal INT32_MAX - 1"); in TestPUtilAPI()
135 doAssert(FALSE, uprv_add32_overflow(INT32_MAX - 2, 2, &overflow_result), "should not overflow"); in TestPUtilAPI()
136 doAssert(INT32_MAX, overflow_result, "should equal exactly INT32_MAX"); in TestPUtilAPI()
137 doAssert(TRUE, uprv_add32_overflow(INT32_MAX - 2, 3, &overflow_result), "should overflow"); in TestPUtilAPI()
138 doAssert(FALSE, uprv_mul32_overflow(INT32_MAX / 5, 4, &overflow_result), "should not overflow"); in TestPUtilAPI()
139 doAssert(INT32_MAX / 5 * 4, overflow_result, "should equal INT32_MAX / 5 * 4"); in TestPUtilAPI()
140 doAssert(TRUE, uprv_mul32_overflow(INT32_MAX / 5, 6, &overflow_result), "should overflow"); in TestPUtilAPI()
142 doAssert(FALSE, uprv_add32_overflow(-3, -2, &overflow_result), "should not overflow"); in TestPUtilAPI()
[all …]