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

10 lines
202 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
function f() public view returns (uint) {
uint b = block.timestamp;
uint a = b + 0; // Overflow not possible!
return a;
}
}