Implement return.

This commit is contained in:
chriseth
2019-04-30 13:10:36 +02:00
parent cc5c899291
commit c1ca16cd33
6 changed files with 53 additions and 5 deletions
@@ -0,0 +1,10 @@
contract C {
function f() public pure returns (uint x) {
return 7;
x = 3;
}
}
// ====
// compileViaYul: true
// ----
// f() -> 7
@@ -0,0 +1,11 @@
contract C {
function f() public pure returns (uint) {
uint8 b;
assembly { b := 0xffff }
return b;
}
}
// ====
// compileViaYul: true
// ----
// f() -> 255