solidity/test/libsolidity/syntaxTests/controlFlow/storageReturn/smoke.sol

11 lines
353 B
Solidity
Raw Normal View History

contract C {
struct S { bool f; }
S s;
function f() internal pure {}
function g() internal view returns (S storage) { return s; }
function h() internal view returns (S storage c) { return s; }
function i() internal view returns (S storage c) { c = s; }
function j() internal view returns (S storage c) { (c) = s; }
}
// ----