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

11 lines
176 B
Solidity

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