solidity/test/libsolidity/smtCheckerTests/typecast/string_literal_to_fixed_bytes_function_call.sol
2020-03-11 16:29:07 +01:00

14 lines
311 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: (162-184): Assertion violation happens here
// Warning: (162-184): Assertion violation happens here