solidity/test/libsolidity/smtCheckerTests/types/fixed_bytes_1.sol

17 lines
317 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C
{
bytes32 x;
function f(bytes8 y) public view {
assert(x != y);
assert(x != g());
}
function g() public view returns (bytes32) {
return x;
}
}
// ----
// Warning: (96-110): Assertion violation happens here
// Warning: (114-130): Assertion violation happens here