Preprocessor: Evaluate INT_MIN % -1 to 0.

This commit is contained in:
Aaron Muir Hamilton
2017-10-24 10:59:01 +00:00
parent 047b65f953
commit 9d4a1b24e9
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
#if (-2147483648 / -1) != 0
#error INT_MIN / -1 should yield 0, something went wrong.
#endif
#if (-2147483648 % -1) != 0
#error INT_MIN % -1 should yield 0, something went wrong.
#endif