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

13 lines
267 B
Solidity

pragma experimental SMTChecker;
contract C {
function f(bytes32 _x) public pure {
require(_x == "test");
(bytes32 y, bytes16 z) = ("test", "testz");
assert(_x == y);
assert(_x == z);
}
}
// ----
// Warning 4661: (176-191): Assertion violation happens here