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