Add semantic test

This commit is contained in:
Alex Beregszaszi 2022-06-27 09:53:25 +02:00 committed by Nikola Matic
parent a58fbba0db
commit 72bcbf96c5

View File

@ -0,0 +1,13 @@
pragma stdlib;
import "std/precompiles.sol";
contract C {
function f(uint256 a) external returns (bytes32) {
return sha256(abi.encodePacked(a));
}
}
// ====
// ----
// f(uint256): 1 -> 0xec4916dd28fc4c10d78e287ca5d9cc51ee1ae73cbfde08c6b37324cbfaac8bc5