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

16 lines
262 B
Solidity
Raw Normal View History

2020-02-12 02:21:42 +00:00
pragma experimental SMTChecker;
contract C
{
bytes32 x;
function f(bytes8 y) public view {
assert(x == g());
assert(x != y);
}
function g() public view returns (bytes32) {
return x;
}
}
// ----
// Warning: (116-130): Assertion violation happens here