mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #10593 from ethereum/someMoreTests
Some more tests for overflow.
This commit is contained in:
commit
90a0bbefa3
@ -35,3 +35,5 @@ contract C {
|
|||||||
// g(int8,int8): -1, -127 -> -128
|
// g(int8,int8): -1, -127 -> -128
|
||||||
// g(int8,int8): -127, -2 -> FAILURE, hex"4e487b71", 0x11
|
// g(int8,int8): -127, -2 -> FAILURE, hex"4e487b71", 0x11
|
||||||
// g(int8,int8): -2, -127 -> 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
|
||||||
|
@ -33,3 +33,5 @@ contract C {
|
|||||||
// g(int8,int8): 0, 0 -> FAILURE, hex"4e487b71", 0x12
|
// g(int8,int8): 0, 0 -> FAILURE, hex"4e487b71", 0x12
|
||||||
// g(int8,int8): 0, 1 -> 0
|
// g(int8,int8): 0, 1 -> 0
|
||||||
// g(int8,int8): 0, -1 -> 0
|
// g(int8,int8): 0, -1 -> 0
|
||||||
|
// g(int8,int8): -128, -128 -> 0
|
||||||
|
// g(int8,int8): -128, 127 -> -1
|
||||||
|
Loading…
Reference in New Issue
Block a user