solidity/test/cmdlineTests/optimizer_inliner_dynamic_reference_constructor/input.sol
2021-02-09 19:08:58 +01:00

12 lines
362 B
Solidity

// 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; }
}