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