mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
22 lines
294 B
Solidity
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
|
|
}
|
|
}
|
|
}
|