diff options
Diffstat (limited to 'test/libsolidity/smtCheckerTests/special/msg_sender_fail_1.sol')
-rw-r--r-- | test/libsolidity/smtCheckerTests/special/msg_sender_fail_1.sol | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/libsolidity/smtCheckerTests/special/msg_sender_fail_1.sol b/test/libsolidity/smtCheckerTests/special/msg_sender_fail_1.sol new file mode 100644 index 00000000..9a4eefd5 --- /dev/null +++ b/test/libsolidity/smtCheckerTests/special/msg_sender_fail_1.sol @@ -0,0 +1,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 |