solidity/test/libsolidity/semanticTests/viaYul/conversion/implicit_cast_function_call.sol
2022-05-19 20:23:28 +02:00

18 lines
361 B
Solidity

// IRGeneratorForStatements::visit(FunctionCall const& _functionCall)
contract C {
function f(uint b) public pure returns (uint x) {
x = b;
}
function g() public pure returns (uint x) {
uint8 a;
assembly {
a := 0x12345678
}
x = f(a);
}
}
// ====
// compileToEwasm: also
// ----
// g() -> 0x78