solidity/test/libsolidity/syntaxTests/viewPureChecker/callvalue_payable_assembly_function_modifier.sol

14 lines
134 B
Solidity
Raw Normal View History

contract C
{
modifier m {
uint x;
assembly {
x := callvalue()
}
_;
}
function f() m public payable {
}
}
// ----