mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
17 lines
309 B
Plaintext
17 lines
309 B
Plaintext
|
// A test where all parameters are used
|
||
|
{
|
||
|
sstore(f(1), 0)
|
||
|
function f(a) -> x { x := a }
|
||
|
function g(b) -> y { y := g(b) }
|
||
|
}
|
||
|
// ----
|
||
|
// step: unusedFunctionParameterPruner
|
||
|
//
|
||
|
// {
|
||
|
// sstore(f(1), 0)
|
||
|
// function f(a) -> x
|
||
|
// { x := a }
|
||
|
// function g(b) -> y
|
||
|
// { y := g(b) }
|
||
|
// }
|