mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
261 B
Solidity
14 lines
261 B
Solidity
pragma experimental SMTChecker;
|
|
|
|
contract C {
|
|
function f(bytes32 _x) public pure {
|
|
require(_x == "test");
|
|
bytes32 y = _x;
|
|
bytes32 z = _x;
|
|
assert(z == "test");
|
|
assert(y == "testx");
|
|
}
|
|
}
|
|
// ----
|
|
// Warning: (170-190): Assertion violation happens here
|