solidity/test/cmdlineTests/model_checker_ext_calls_empty_arg/input.sol

15 lines
227 B
Solidity
Raw Normal View History

// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract Ext {
function f() public view returns (uint) {
return 42;
}
}
contract test {
function g(Ext e) public view {
uint x = e.f();
assert(x == 42);
}
}