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

14 lines
321 B
Solidity

pragma experimental SMTChecker;
contract B {
function f() pure public {
g("0123456");
}
function g(bytes7 a) pure public {
assert(a == "0123456");
assert(a == "1234567");
}
}
// ----
// Warning 6328: (162-184): Assertion violation happens here
// Warning 6328: (136-158): Assertion violation happens here