mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add test with internal function
This commit is contained in:
parent
9acec99c31
commit
0386d39942
@ -0,0 +1,11 @@
|
||||
contract C
|
||||
{
|
||||
function f() internal returns (uint x) {
|
||||
assembly {
|
||||
x := callvalue()
|
||||
}
|
||||
}
|
||||
function g() public returns (uint) {
|
||||
return f();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user