mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
159f50e189
These were marked IR-only, but they do pass on the old codegen too. Also add old codegen version of semantictests/revertStrings/function_entry_checks.
15 lines
418 B
Solidity
15 lines
418 B
Solidity
contract C {
|
|
function keccak1() public pure returns (bytes32) {
|
|
return keccak256("123");
|
|
}
|
|
function keccak2() public pure returns (bytes32) {
|
|
bytes memory a = "123";
|
|
return keccak256(a);
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// keccak1() -> 0x64e604787cbf194841e7b68d7cd28786f6c9a0a3ab9f8b0a0e87cb4387ab0107
|
|
// keccak2() -> 0x64e604787cbf194841e7b68d7cd28786f6c9a0a3ab9f8b0a0e87cb4387ab0107
|