Add semantic test for SELFBALANCE in inline assembly

This commit is contained in:
Alex Beregszaszi 2019-11-14 12:13:05 +01:00
parent fc2af72a3d
commit cbb08ae3db

View File

@ -0,0 +1,12 @@
contract C {
function f() public payable returns (uint ret) {
assembly {
ret := selfbalance()
}
}
}
// ====
// EVMVersion: >=istanbul
// compileViaYul: also
// ----
// f(), 254 ether -> 254