solidity/test/libsolidity/smtCheckerTests/loops/while_loop_simple_2.sol
2018-11-22 13:33:28 +00:00

10 lines
189 B
Solidity

pragma experimental SMTChecker;
// Check that condition is assumed.
contract C {
function f(uint x) public pure {
while (x == 2) {
assert(x == 2);
}
}
}