aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/tight_packing_literals_fine.sol
blob: 46407f718bdbc852900f4c939982d8cbd49465ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
contract C {
    function f() pure public returns (bytes32) {
        return keccak256(uint8(1));
    }
    function g() pure public returns (bytes) {
        return abi.encode(1);
    }
    function h() pure public returns (bytes) {
        return abi.encodePacked(uint8(1));
    }
}