solidity/test/libsolidity/semanticTests/array/pop/array_pop_isolated.sol
2020-11-13 12:32:39 +01:00

15 lines
278 B
Solidity

// This tests that the compiler knows the correct size of the function on the stack.
contract c {
uint256[] data;
function test() public returns (uint256 x) {
x = 2;
data.pop;
x = 3;
}
}
// ====
// compileViaYul: also
// ----
// test() -> 3