aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/special/msg_sender_fail_1.sol
blob: 9a4eefd5291c47d306c2c5be7003cb17b0f38df9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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: (155-178): Assertion violation happens here