Some more tests for overflow.

This commit is contained in:
chriseth 2020-12-14 14:29:54 +01:00 committed by hrkrshnn
parent d257ab7141
commit 9c3690c246
2 changed files with 4 additions and 0 deletions

View File

@ -35,3 +35,5 @@ contract C {
// g(int8,int8): -1, -127 -> -128
// g(int8,int8): -127, -2 -> FAILURE, hex"4e487b71", 0x11
// g(int8,int8): -2, -127 -> FAILURE, hex"4e487b71", 0x11
// g(int8,int8): -128, 0 -> -128
// g(int8,int8): 0, -128 -> -128

View File

@ -33,3 +33,5 @@ contract C {
// g(int8,int8): 0, 0 -> FAILURE, hex"4e487b71", 0x12
// g(int8,int8): 0, 1 -> 0
// g(int8,int8): 0, -1 -> 0
// g(int8,int8): -128, -128 -> 0
// g(int8,int8): -128, 127 -> -1