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

16 lines
309 B
Solidity
Raw Normal View History

// Test for regression of https://github.com/ethereum/solidity/issues/8406
contract C {
address constant e = 0x1212121212121212121212121000002134593163;
2020-12-14 17:34:40 +00:00
function f() public returns (bytes1 z) {
assembly { z := e }
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 0x00