source:
CIVL/examples/languageFeatures/nonbooleanCondition.cvl@
38b7d06
| Last change on this file since 38b7d06 was 793cfc2, 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.
