solidity/test/libyul/yulInterpreterTests/function_calls.yul

15 lines
335 B
Plaintext
Raw Normal View History

2018-02-08 17:20:54 +00:00
{
function f(a, b) -> x, y {
x := add(a, b)
y := mul(a, b)
}
let r, t := f(6, 7)
sstore(r, t)
}
// ----
// Trace:
// SSTORE(13, 42)
// Memory dump:
// Storage dump:
// 000000000000000000000000000000000000000000000000000000000000000d: 000000000000000000000000000000000000000000000000000000000000002a