solidity/test/libsolidity/syntaxTests/controlFlow/storageReturn/assembly/stub.sol

11 lines
176 B
Solidity
Raw Normal View History

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