mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
352 B
Solidity
19 lines
352 B
Solidity
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;
|
|
(y, z) = g();
|
|
assert(_x == y);
|
|
assert(_x == z);
|
|
}
|
|
}
|
|
// ----
|
|
// Warning 4661: (261-276): Assertion violation happens here
|