mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix constant evaluation build
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C {
|
||||
uint constant x = 7;
|
||||
uint constant y = 3;
|
||||
uint constant z = x / y;
|
||||
|
||||
function f() public pure {
|
||||
assert(z == 2);
|
||||
assert(z == x / 3);
|
||||
assert(z == 7 / y);
|
||||
assert(z * 3 != 7);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user