|
test_1
|
‘test_1’: events 1-2
| 7 | global_ptr = malloc (1024); /* { dg-message "allocated here" } */ |
| ^~~~~~~~~~~~~ |
| | |
| (1) allocated here |
| 8 | *(int *)&global_ptr = i; /* { dg-warning "leak of 'global_ptr'" } */ |
| ~~~~~~~~~~~~~~~~~~~~~~~ |
| | |
| (2) ‘global_ptr’ leaks here; was allocated at (1) |
|
|