solidity/test/libyul/evmCodeTransform/stackReuse/function_params_and_retparams.yul
Daniel Kirchner fd36ec3dca Test updates.
2021-07-06 19:05:36 +02:00

23 lines
439 B
Plaintext

// This does not re-use the parameters for the return parameters
// We do not expect parameters to be fully unused, so the stack
// layout for a function is still fixed, even though parameters
// can be re-used.
{
function f(a, b, c, d) -> x, y { }
}
// ====
// stackOptimization: true
// ----
// stop
// /* "":218:252 */
// tag_1:
// pop
// pop
// pop
// pop
// 0x00
// swap1
// 0x00
// swap1
// jump // out