mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Manual Resolved Conflicts: Changelog.md * Updated changelog test/externalTests/ens.sh * Merged fixes for upstream from both develop and breaking test/libsolidity/semanticTests/inlineAssembly/external_identifier_access_shadowing.sol * Removed in #11735 (breaking) test/libsolidity/semanticTests/inlineAssembly/function_name_clash.sol * Removed in #12209 (breaking) test/libsolidity/semanticTests/storage/mappings_array2d_pop_delete.sol * Removed in #11843 (breaking) test/libsolidity/semanticTests/storage/mappings_array_pop_delete.sol * Removed in #11843 (breaking) test/libsolidity/syntaxTests/inlineAssembly/basefee_berlin_function.sol * Used version of file from #11842 (breaking)
17 lines
285 B
Solidity
17 lines
285 B
Solidity
contract C {
|
|
function g() public pure returns (uint w) {
|
|
assembly {
|
|
function f() -> t {
|
|
t := 2
|
|
leave
|
|
t := 9
|
|
}
|
|
w := f()
|
|
}
|
|
}
|
|
}
|
|
// ====
|
|
// compileToEwasm: also
|
|
// ----
|
|
// g() -> 2
|