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

17 lines
337 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
function g() internal pure returns (bytes32, bytes16) {
return ("test", "testz");
}
function f(bytes32 _x) public pure {
require(_x == "test");
(bytes32 y, bytes16 z) = g();
assert(_x == y);
assert(_x == z);
}
}
// ----
// Warning: (251-266): Assertion violation happens here