solidity/test/libsolidity/semanticTests/viaYul/implicit_cast_local_assignment.sol
2019-04-24 22:52:17 +02:00

14 lines
302 B
Solidity

// 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