solidity/test/libsolidity/ASTJSON/assembly/slot_offset.sol

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) }
}
}
// ----