aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/tupleAssignments/nowarn_swap_storage_pointers.sol
blob: 5f7a18f7db77779e2377308c74b7b24119f9b306 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                          
        contract C {
            struct S { uint a; uint b; }
            S x; S y;
            function f() public {
                S storage x_local = x;
                S storage y_local = y;
                S storage z_local = x;
                (x, y_local, x_local, z_local) = (y, x_local, y_local, y);
            }
        }