solidity/test/libsolidity/semanticTests/array/pop/byte_array_pop_isolated.sol

16 lines
298 B
Solidity
Raw Normal View History

// 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;
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// test() -> 3