aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/viewPureChecker/builtin_functions.sol
blob: 2503a319836d9c63e3b90ad5c79a3021e3e1ecab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
contract C {
    function f() public {
        address(this).transfer(1);
        require(address(this).send(2));
        selfdestruct(address(this));
        (bool success,) = address(this).delegatecall("");
        require(success);
        (success,) = address(this).call("");
        require(success);
    }
    function g() pure public {
        bytes32 x = keccak256("abc");
        bytes32 y = sha256("abc");
        address z = ecrecover(bytes32(uint256(1)), uint8(2), bytes32(uint256(3)), bytes32(uint256(4)));
        require(true);
        assert(true);
        x; y; z;
    }
    function() payable external {}
}