solidity/test/libsolidity/semanticTests/viaYul/conversion/implicit_cast_local_assignment.sol

14 lines
302 B
Solidity
Raw Normal View History

// IRGeneratorForStatements::visit(VariableDeclarationStatement const& _varDeclStatement)
contract C {
function f() public pure returns (uint y) {
uint8 a;
assembly { a := 0x12345678 }
uint z = a;
y = z;
}
}
// ====
// compileViaYul: true
// ----
// f() -> 0x78