source:
CIVL/examples/languageFeatures/continue.cvl@
e5f2e6db
| Last change on this file since e5f2e6db was 36b5ada, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 417 bytes | |
| Rev | Line | |
|---|---|---|
| [36b5ada] | 1 | /* Commandline execution: |
| 2 | * civl verify continue.cvl | |
| 3 | * */ | |
| [420d7f3] | 4 | #include <civlc.h> |
| 5 | ||
| 6 | void main() { | |
| 7 | for (int i = 0; i < 5; i++) { | |
| 8 | for (int j = 0; j < 5; j++) { | |
| 9 | for (int k = 0; k < 7; k++) { | |
| 10 | if (k < 4) { | |
| 11 | continue; | |
| 12 | } | |
| 13 | $assert k >= 4; | |
| 14 | } | |
| 15 | if (j > 3) { | |
| 16 | continue; | |
| 17 | } | |
| 18 | $assert j <= 3; | |
| 19 | } | |
| 20 | if (i <= 2) { | |
| 21 | continue; | |
| 22 | } | |
| 23 | $assert i > 2; | |
| 24 | } | |
| 25 | } |
Note:
See TracBrowser
for help on using the repository browser.
