mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
181 B
Solidity
12 lines
181 B
Solidity
|
// SPDX-License-Identifier: GPL-3.0
|
||
|
pragma solidity >=0.0;
|
||
|
contract C
|
||
|
{
|
||
|
function f(uint x) public pure {
|
||
|
require(x == 0);
|
||
|
do {
|
||
|
++x;
|
||
|
} while (x < 2);
|
||
|
assert(x == 3);
|
||
|
}
|
||
|
}
|