1 Ensure that dividing INT64_MIN by -1 does not trap with SIGFPE due to 2 signed integer division overflow but yields the mathematically correct 3 unsigned result, consistent with multiplication and subtraction. 4 5 -- Testcase -- 6 {% 7 let min = -9223372036854775807 - 1; 8 9 print(min / -1, "\n"); 10 print(min % -1, "\n"); 11 %} 12 -- End -- 13 14 -- Expect stdout -- 15 9223372036854775808 16 0 17 -- End --
This page was automatically generated by LXR 0.3.1. • OpenWrt