aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/deprecated_functions.sol
blob: ff3af7d29efc29b3db36303cbfb8eac53fad09ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
contract test {
    function f() pure public {
        bytes32 x = sha3();
        x;
    }
    function g() public {
        suicide(1);
    }
}
// ----
// TypeError: (58-64): "sha3" has been deprecated in favour of "keccak256"
// TypeError: (99-109): "suicide" has been deprecated in favour of "selfdestruct"