mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
18 lines
438 B
Solidity
18 lines
438 B
Solidity
contract C {
|
|
function f() public pure {
|
|
/// TestCase1: condition.operator
|
|
for(uint i = 0; i < 42; ++i) {
|
|
}
|
|
/// TestCase2: initializationExpression.initialValue.value
|
|
for(uint i = 1; i < 42; i = i * 2) {
|
|
}
|
|
/// TestCase3: loopExpression.expression.subExpression.name
|
|
for(uint i = 0; i < 42; i++) {
|
|
}
|
|
}
|
|
}
|
|
// ----
|
|
// TestCase1: <
|
|
// TestCase2: 1
|
|
// TestCase3: i
|