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

13 lines
269 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
2021-04-23 15:59:01 +00:00
// compileToEwasm: also
2020-09-25 10:21:55 +00:00
// ----
// f() -> 0x1212121212121212121212121000002134593163