solidity/test/libsolidity/semanticTests/array/pop/byte_array_pop_isolated.sol
2022-05-19 20:23:28 +02:00

15 lines
275 B
Solidity

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