solidity/test/libsolidity/semanticTests/inlineAssembly/chainid.sol

13 lines
199 B
Solidity
Raw Normal View History

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