added test

This commit is contained in:
Martin Blicha 2020-12-08 13:05:16 +01:00
parent 0ebab439be
commit 12aa654bad

View File

@ -0,0 +1,11 @@
pragma experimental SMTChecker;
contract C {
function f(int a, uint b) public view {
a >>= tx.gasprice;
require(a == 16 && b == 2);
a >>= b;
assert(a == 4); // should hold
}
}
// ----