aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/memberLookup/msg_value_modifier_payable.sol
blob: 6e93626f67a4435e9a16e3b8c7352f12446f1a8e (plain) (blame)
1
2
3
4
contract C {
    modifier costs(uint _amount) { require(msg.value >= _amount); _; }
    function f() costs(1 ether) public payable {}
}