mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
{
|
||||
switch calldataload(0)
|
||||
case 0 {
|
||||
recursive()
|
||||
sstore(0, 1)
|
||||
}
|
||||
case 1 {
|
||||
terminating()
|
||||
sstore(0, 7)
|
||||
}
|
||||
case 2 {
|
||||
reverting()
|
||||
sstore(0, 7)
|
||||
}
|
||||
|
||||
|
||||
function recursive()
|
||||
{
|
||||
recursive()
|
||||
}
|
||||
function terminating()
|
||||
{
|
||||
return(0, 0)
|
||||
}
|
||||
function reverting()
|
||||
{
|
||||
revert(0, 0)
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// step: deadCodeEliminator
|
||||
//
|
||||
// {
|
||||
// switch calldataload(0)
|
||||
// case 0 { recursive() }
|
||||
// case 1 { terminating() }
|
||||
// case 2 { reverting() }
|
||||
// function recursive()
|
||||
// { recursive() }
|
||||
// function terminating()
|
||||
// { return(0, 0) }
|
||||
// function reverting()
|
||||
// { revert(0, 0) }
|
||||
// }
|
||||
Reference in New Issue
Block a user