source:
CIVL/examples/mem/mem_tests/mem_convertion-bad2.cvl@
bd6628e
| Last change on this file since bd6628e was da65ee2, checked in by , 7 years ago | |
|---|---|
|
|
| File size: 162 bytes | |
| Rev | Line | |
|---|---|---|
| [da65ee2] | 1 | #include<mem.cvh> |
| 2 | #include<stdlib.h> | |
| 3 | #include<pointer.cvh> | |
| 4 | ||
| 5 | int a[100]; | |
| 6 | ||
| 7 | int main() { | |
| 8 | $mem m; | |
| 9 | ||
| 10 | m = &a[(0 .. 99) + (-9 .. 0)]; | |
| 11 | $assert($equals(&m, &m)); | |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
