Add semantic test for CHAINID in inline assembly

This commit is contained in:
Alex Beregszaszi 2019-11-14 12:00:16 +01:00
parent 0033d63522
commit fc2af72a3d

View File

@ -0,0 +1,12 @@
contract C {
function f() public returns (uint id) {
assembly {
id := chainid()
}
}
}
// ====
// compileViaYul: also
// EVMVersion: >=istanbul
// ----
// f() -> 1