2020-03-09 21:14:07 +00:00
|
|
|
contract C {
|
|
|
|
function f() public returns (uint256 r, bytes32 r2) {
|
|
|
|
assembly {
|
|
|
|
r := 7
|
|
|
|
r2 := "abcdef"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2020-03-09 21:14:07 +00:00
|
|
|
// ----
|
|
|
|
// f() -> 7, "abcdef"
|