solidity/test/libyul/yulInterpreterTests/function_calls.yul
2019-02-25 11:58:36 +01:00

15 lines
335 B
Plaintext

{
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