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