solidity/test/libsolidity/syntaxTests/viewPureChecker/callvalue_nonpayable_assembly_function_internal.sol
2019-03-19 20:45:27 +01:00

12 lines
179 B
Solidity

contract C
{
function f() internal returns (uint x) {
assembly {
x := callvalue()
}
}
function g() public returns (uint) {
return f();
}
}