source:
CIVL/examples/specialStatements/when3.cvl@
18c7e5b
| Last change on this file since 18c7e5b was f654c25, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 115 bytes | |
| Rev | Line | |
|---|---|---|
| [f654c25] | 1 | #include<civlc.cvh> |
| 2 | ||
| 3 | int main(){ | |
| 4 | int a=100, b=1; | |
| 5 | ||
| 6 | $when(a>10){ | |
| 7 | int a = 9; | |
| 8 | ||
| 9 | b=a; | |
| 10 | } | |
| 11 | $assert(b==9); | |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
