solidity/test/libsolidity/smtCheckerTests/functions/functions_external_4.sol

20 lines
283 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C
{
function f(uint _x) public pure returns (uint) {
return _x;
}
}
contract D
{
C c;
function g(uint _y) public view {
uint z = c.f(_y);
assert(z == _y);
}
}
// ----
2020-09-09 14:12:55 +00:00
// Warning 6328: (191-206): Assertion violation happens here.