solidity/test/libsolidity/semanticTests/inlineAssembly/inline_assembly_write_to_stack.sol
2023-05-11 10:56:55 -05:00

11 lines
184 B
Solidity

contract C {
function f() public returns (uint256 r, bytes32 r2) {
assembly {
r := 7
r2 := "abcdef"
}
}
}
// ----
// f() -> 7, "abcdef"