Add inlining for old optimizer.

This commit is contained in:
Daniel Kirchner
2021-02-09 19:08:58 +01:00
parent e777cad78a
commit cb74a45fd6
43 changed files with 1463 additions and 74 deletions
@@ -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; }
}