solidity/test/cmdlineTests/optimizer_inliner_call_from_constructor/input.sol

10 lines
264 B
Solidity
Raw Normal View History

2021-01-14 12:02:14 +00:00
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract C {
uint x;
constructor() { x = a(); }
function a() public pure returns (uint) { return f(); } // this should be inlined
function f() internal pure returns (uint) { return 6; }
}