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

15 lines
277 B
Solidity
Raw Normal View History

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