mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
330 B
Solidity
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: 147541
|
||
|
// gas legacy: 177488
|
||
|
// gas legacyOptimized: 140089
|
||
|
// s() -> 0x20, 0
|