mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
330 B
Solidity
13 lines
330 B
Solidity
|
pragma experimental SMTChecker;
|
||
|
contract C {
|
||
|
function g() public pure returns (bytes32 val) { return "abc"; }
|
||
|
function f1() public pure returns (bytes32 val) { return g(); }
|
||
|
|
||
|
function a() public pure {
|
||
|
assert(f1() == "abc");
|
||
|
assert(f1() == "cde");
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (238-259): Assertion violation happens here
|