source:
CIVL/examples/mem/mem_tests/mem_contains_complex2-bad.cvl@
afc300c
| Last change on this file since afc300c was da65ee2, checked in by , 7 years ago | |
|---|---|
|
|
| File size: 261 bytes | |
| Line | |
|---|---|
| 1 | #include<mem.cvh> |
| 2 | #include<stdlib.h> |
| 3 | |
| 4 | union U { |
| 5 | int x[10][10]; |
| 6 | int y[10][10]; |
| 7 | }; |
| 8 | |
| 9 | struct U2 { |
| 10 | int x[10][10]; |
| 11 | }; |
| 12 | |
| 13 | struct T { |
| 14 | union U u[10][10]; |
| 15 | struct U2 u2[10][10]; |
| 16 | } a[100]; |
| 17 | |
| 18 | int main() { |
| 19 | $assert($mem_contains(&a[(9 .. 99) + (-8 .. 0)], &a)); |
| 20 | } |
Note:
See TracBrowser
for help on using the repository browser.
