solidity/test/libsolidity/semanticTests/constants/asm_constant_file_level.sol

12 lines
245 B
Solidity
Raw Normal View History

2020-09-25 10:21:55 +00:00
address constant e = 0x1212121212121212121212121000002134593163;
contract C {
function f() public returns (address z) {
assembly { z := e }
}
}
// ====
// compileViaYul: also
2020-09-25 10:21:55 +00:00
// ----
// f() -> 0x1212121212121212121212121000002134593163