source:
CIVL/examples/nonbooleanCondition.cvl@
9179b4f
| Last change on this file since 9179b4f was 9f1ed5b, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 148 bytes | |
| Line | |
|---|---|
| 1 | #include<civlc.h> |
| 2 | |
| 3 | void main() { |
| 4 | int i = 1; |
| 5 | float x = 1.0; |
| 6 | |
| 7 | $when(i) {i = 0;} |
| 8 | $when(x) {x = 0.0;} |
| 9 | $assert i == 0; |
| 10 | $assert x == 0.0; |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
