|
test_5
‘test_5’: events 1-2
64 | int *ptr = alloc_fn (sizeof (int)); /* { dg-message "pointer is from here" } */ |
| ^~~~~~~~~~~~~~~~~~~~~~~ |
| | |
| (1) pointer is from here |
65 | /* TODO: message should read "memory is allocated on the stack here". */ |
66 | dealloc_fn (ptr); /* { dg-warning "'free' of 'ptr' which points to memory not on the heap" } */ |
| ~~~~~~~~~~~~~~~~ |
| | |
| (2) call to ‘free’ here |
|
|