blob: 18d2108957f1ad4985cd3ee48c0327a8a9cc6f27 [file] [log] [blame]
/*
TEST_OUTPUT:
----
fail_compilation/test4682.d(10): Error: integer overflow: `int.min / -1`
fail_compilation/test4682.d(11): Error: integer overflow: `long.min / -1L`
fail_compilation/test4682.d(12): Error: integer overflow: `int.min % -1`
fail_compilation/test4682.d(13): Error: integer overflow: `long.min % -1L`
----
*/
auto a = int.min / -1;
auto b = long.min / -1;
auto c = int.min % -1;
auto d = long.min % -1;