aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/controlFlow/storageReturn/for_fine.sol
blob: aa82cb9a802e4d0f9e68dbdd970a1f739ad80b18 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                      
contract C {
    struct S { bool f; }
    S s;
    function f() internal view returns (S storage c) {
        for(c = s;;) {
        }
    }
    function g() internal view returns (S storage c) {
        for(; (c = s).f;) {
        }
    }
}
// ----