source:
CIVL/examples/languageFeatures/inputBad.cvl@
fe8b067
| Last change on this file since fe8b067 was 36947d1, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 212 bytes | |
| Rev | Line | |
|---|---|---|
| [36947d1] | 1 | #include <civlc.h> |
| 2 | ||
| 3 | typedef struct A{ | |
| 4 | int a; | |
| 5 | int b; | |
| 6 | } A; | |
| 7 | ||
| 8 | $input A k; | |
| 9 | ||
| 10 | void main(){ | |
| 11 | A* p = &k; | |
| 12 | A q[2]; | |
| 13 | int * ka = &(k.a); | |
| 14 | ||
| 15 | *ka = 5; | |
| 16 | q[0] = k; | |
| 17 | q[0].a = 1; | |
| 18 | q[0].b = 1; | |
| 19 | p->a = 1; | |
| 20 | p->b = 1; | |
| 21 | } |
Note:
See TracBrowser
for help on using the repository browser.
