source:
CIVL/examples/experimental/assignBad.cvl@
5bc08d6
| Last change on this file since 5bc08d6 was 36b2849, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 172 bytes | |
| Rev | Line | |
|---|---|---|
| [36b2849] | 1 | /* */ |
| 2 | #include <civlc.cvh> | |
| 3 | ||
| 4 | int foo() { | |
| 5 | int *p = (int *) $malloc($here, 5*sizeof(int)); | |
| 6 | } | |
| 7 | ||
| 8 | void main() { | |
| 9 | int *p2; | |
| 10 | int *q; | |
| 11 | int a[5]; | |
| 12 | p2 = a+6; | |
| 13 | ||
| 14 | foo(); | |
| 15 | ||
| 16 | } |
Note:
See TracBrowser
for help on using the repository browser.
