source:
CIVL/examples/languageFeatures/break.cvl@
6a4e2e0
| Last change on this file since 6a4e2e0 was 420d7f3, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 234 bytes | |
| Rev | Line | |
|---|---|---|
| [420d7f3] | 1 | #include <civlc.h> |
| 2 | ||
| 3 | void main() { | |
| 4 | int i, j; | |
| 5 | for (i = 0; i < 5; i++) { | |
| 6 | for (j = 0; j < 10; j++) { | |
| 7 | if (j == 6) { | |
| 8 | break; | |
| 9 | } | |
| 10 | } | |
| 11 | if ( i == 3) { | |
| 12 | break; | |
| 13 | } | |
| 14 | } | |
| 15 | $assert i == 3; | |
| 16 | $assert j == 6; | |
| 17 | } |
Note:
See TracBrowser
for help on using the repository browser.
