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()
}
}
}
// ====
// EVMVersion: >=istanbul
// compileViaYul: also
// ----
// f() -> 1