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

22 lines
294 B
Solidity

pragma experimental SMTChecker;
contract C {
address owner;
constructor() {
owner = msg.sender;
assert(owner >= address(0)); // should hold
}
}
contract D {
address owner;
constructor() {
unchecked {
owner = msg.sender;
assert(owner >= address(0)); // should hold
}
}
}