source:
CIVL/mods/dev.civl.com/examples/languageFeatures/abstractFunNoArg.cvl@
8553be8
| Last change on this file since 8553be8 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 184 bytes | |
| Line | |
|---|---|
| 1 | #include <civlc.cvh> |
| 2 | #include <assert.h> |
| 3 | |
| 4 | $abstract int random(void); // ERROR: abstract functions requires >= 1 input |
| 5 | |
| 6 | void main() { |
| 7 | int x = 0; |
| 8 | |
| 9 | x = random(); |
| 10 | assert(x==1); |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
