solidity/test/libsolidity/semanticTests/various/create_calldata.sol
Nikola Matic fdc6699159 Rematerialize zero literals with default cleanup sequence
Add unused pruner step to the end of the default cleanup sequence
2023-09-04 15:40:33 +02:00

15 lines
330 B
Solidity

contract C {
bytes public s;
constructor(uint256 x) {
// Due to a bug in EVMHost, msg.data used to contain initcode and constructor arguments.
s = msg.data;
assert(msg.data.length == 0);
}
}
// ----
// constructor(): 42 ->
// gas irOptimized: 145578
// gas legacy: 173845
// gas legacyOptimized: 137877
// s() -> 0x20, 0