solidity/test/libsolidity/semanticTests/various/create_calldata.sol

15 lines
330 B
Solidity
Raw Normal View History

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 ->
2023-08-04 10:27:18 +00:00
// gas irOptimized: 144924
// gas legacy: 173845
2023-08-04 10:27:18 +00:00
// gas legacyOptimized: 137677
// s() -> 0x20, 0