Add semantic test for SELFBALANCE in inline assembly

This commit is contained in:
Alex Beregszaszi committed 2019-11-19 17:09:18 +01:00
1 parent fc2af72a3d
commit cbb08ae3db
1 file changed
+12
@@ -0,0 +1,12 @@
contract C {
function f() public payable returns (uint ret) {
assembly {
ret := selfbalance()
}
}
}
// ====
// EVMVersion: >=istanbul
// compileViaYul: also
// ----
// f(), 254 ether -> 254