mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add semantic test
This commit is contained in:
parent
a58fbba0db
commit
72bcbf96c5
13
test/libsolidity/semanticTests/stdlib/sha256.sol
Normal file
13
test/libsolidity/semanticTests/stdlib/sha256.sol
Normal 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
|
Loading…
Reference in New Issue
Block a user