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

15 lines
327 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
function f(bytes32 _x) public pure {
require(_x != "test");
bytes32 y = _x;
bytes32 z = _x;
assert(z == "test");
assert(y != "testx");
}
}
// ----
2020-07-13 18:48:00 +00:00
// Warning 6328: (147-166): Assertion violation happens here
// Warning 6328: (170-190): Assertion violation happens here