mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add inlining for old optimizer.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity >=0.0;
|
||||
|
||||
contract C {
|
||||
constructor() { x = f; }
|
||||
function() internal view returns (uint) x;
|
||||
|
||||
function a() public pure returns (uint) { return f(); } // this should be inlined
|
||||
function h() public view returns (uint) { return x() + 1; }
|
||||
function f() internal pure returns (uint) { return 6; }
|
||||
}
|
||||
Reference in New Issue
Block a user