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