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