mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Implement return.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user