source:
CIVL/examples/arrayPointer.cvl@
eb7a9a2
| Last change on this file since eb7a9a2 was 65d5bdfd, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 123 bytes | |
| Line | |
|---|---|
| 1 | #include<civlc.h> |
| 2 | |
| 3 | void foo(int* array) { |
| 4 | array[0] = 2; |
| 5 | } |
| 6 | |
| 7 | void main() { |
| 8 | int a[1]; |
| 9 | |
| 10 | foo(a); |
| 11 | $assert a[0] == 2; |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
