solidity/test/libsolidity/ASTJSON/assembly/slot_offset.sol
2019-11-13 12:13:22 +01:00

10 lines
158 B
Solidity

contract C {
struct S { uint x; }
S s;
function e() pure public {
assembly { let x := s_offset let y := mul(s_slot, 2) }
}
}
// ----