solidity/test/libsolidity/semanticTests/viaYul/return_and_convert.sol

12 lines
188 B
Solidity
Raw Normal View History

2019-04-24 21:48:12 +00:00
contract C {
function f() public pure returns (uint) {
uint8 b;
assembly { b := 0xffff }
return b;
}
}
// ====
// compileViaYul: true
// ----
// f() -> 255