Skip to content

Commit cb745bf

Browse files
committed
Add test for ContinueStatement
1 parent 4a0ded2 commit cb745bf

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

Foo.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
abstract contract Config
2+
{
3+
function lookup(uint id) public
4+
virtual returns (address adr);
5+
}

tests/AllSolidityFeatures/AllSolidityFeatures.sol

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,3 +411,9 @@ contract multilineReturn {
411411
5;
412412
}
413413
}
414+
415+
contract continueStatement {
416+
function a() {
417+
while (true) { continue; }
418+
}
419+
}

tests/AllSolidityFeatures/__snapshots__/jsfmt.spec.js.snap

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,12 @@ contract multilineReturn {
414414
5;
415415
}
416416
}
417+
418+
contract continueStatement {
419+
function a() {
420+
while (true) { continue; }
421+
}
422+
}
417423
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
418424
// Examples taken from the Solidity documentation online.
419425
@@ -874,4 +880,13 @@ contract multilineReturn {
874880
}
875881
}
876882
883+
884+
contract continueStatement {
885+
function a() {
886+
while (true) {
887+
continue;
888+
}
889+
}
890+
}
891+
877892
`;

0 commit comments

Comments
 (0)