solidity/test/libsolidity/syntaxTests/tupleAssignments/nowarn_swap_memory.sol

9 lines
123 B
Solidity
Raw Normal View History

2018-05-04 14:10:25 +00:00
contract C {
struct S { uint a; uint b; }
function f() pure public {
S memory x;
S memory y;
(x, y) = (y, x);
}
}