solidity/test/libsolidity/syntaxTests/controlFlow/storageReturn/assembly/for_fine.sol
2020-03-09 16:23:10 +01:00

16 lines
343 B
Solidity

contract C {
struct S { bool f; }
S s;
function f() internal pure returns (S storage c) {
assembly {
for { c_slot := s_slot } iszero(0) {} {}
}
}
function g() internal pure returns (S storage c) {
assembly {
for { c_slot := s_slot } iszero(1) {} {}
}
}
}
// ----