source:
CIVL/examples/languageFeatures/cast.cvl@
4e86cdd
| Last change on this file since 4e86cdd was 3ff27cf, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 156 bytes | |
| Rev | Line | |
|---|---|---|
| [36b5ada] | 1 | /* Commandline execution: |
| 2 | * civl verify cast.cvl | |
| 3 | * */ | |
| [e6b02c8] | 4 | #include<civlc.cvh> |
| [eba949b] | 5 | |
| 6 | void main() { | |
| 7 | int i = 0; | |
| 8 | float j = (float) i; | |
| 9 | ||
| [3ff27cf] | 10 | $assert((j == 0.0)); |
| [eba949b] | 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
