solidity/test/libsolidity/smtCheckerTests/special/msg_sender_fail_1.sol
2021-01-04 10:03:16 +01:00

14 lines
337 B
Solidity

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);
}
}
// ----
// Warning 6328: (155-178): CHC: Assertion violation happens here.\nCounterexample:\n\nc = 39\n\n\nTransaction trace:\nC.constructor()\nC.f(39)