source:
CIVL/mods/dev.civl.abc/examples/c/assigns.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 258 bytes | |
| Rev | Line | |
|---|---|---|
| [aad342c] | 1 | int f(int x, int y){ |
| 2 | return x+y; | |
| 3 | } | |
| 4 | ||
| 5 | typedef struct point_t{ | |
| 6 | const int x; | |
| 7 | int y; | |
| 8 | }point; | |
| 9 | ||
| 10 | $input int X; | |
| 11 | ||
| 12 | int main(){ | |
| 13 | point a; | |
| 14 | ||
| 15 | X=10;//an error should be reported | |
| 16 | 89=9;//an error should be reported | |
| 17 | a=(point){8, 9};//an error should be reported | |
| 18 | } |
Note:
See TracBrowser
for help on using the repository browser.
