solidity/test/libsolidity/smtCheckerTests/types/bytes_2_fail.sol
2020-07-23 18:49:03 +02:00

12 lines
217 B
Solidity

pragma experimental SMTChecker;
contract C
{
function f(bytes memory b1, bytes memory b2) public pure {
b1 = b2;
assert(b1[1] == b2[2]);
}
}
// ----
// Warning 6328: (119-141): Assertion violation happens here