2020-03-09 21:14:07 +00:00
|
|
|
contract C {
|
|
|
|
function f() public returns (uint8 x) {
|
|
|
|
assembly {
|
|
|
|
x := 0xffff
|
|
|
|
}
|
|
|
|
x >>= 8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-20 21:16:42 +00:00
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2020-03-09 21:14:07 +00:00
|
|
|
// ----
|
|
|
|
// f() -> 0x0
|