source:
CIVL/examples/mem/mem_tests/mem_havoc_2mallocs.cvl
| Last change on this file was bb03188, checked in by , 9 months ago | |
|---|---|
|
|
| File size: 154 bytes | |
| Line | |
|---|---|
| 1 | #include<mem.cvh> |
| 2 | #include<stdlib.h> |
| 3 | |
| 4 | int main(void) { |
| 5 | int * p = malloc(sizeof(int)); |
| 6 | int * q = malloc(sizeof(int)); |
| 7 | $mem m = q; |
| 8 | $mem_havoc(m); |
| 9 | } |
Note:
See TracBrowser
for help on using the repository browser.
