aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/tupleAssignments/nowarn_swap_memory.sol
blob: b20bbf9008f74d431306a4038b48f117d89afc2b (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
    struct S { uint a; uint b; }
    function f() pure public {
        S memory x;
        S memory y;
        (x, y) = (y, x);
    }
}