solidity/test/libsolidity/smtCheckerTests/special/msg_sender_fail_1.sol

14 lines
335 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C
{
function f(address c) public view {
address a = msg.sender;
address b = msg.sender;
assert(a == b);
assert(c == msg.sender);
}
}
// ----
2021-01-06 15:06:15 +00:00
// Warning 6328: (155-178): CHC: Assertion violation happens here.\nCounterexample:\n\nc = 39\n\nTransaction trace:\nC.constructor()\nC.f(39)