Bug path

test_4
‘test_4’: events 1-2
55 int *ptr = alloc_fn (sizeof (int)); /* { dg-message "this call could return NULL" } */
^~~~~~~~~~~~~~~~~~~~~~~
|
(1) this call could return NULL
56 *ptr = 42; /* { dg-warning "dereference of possibly-NULL 'ptr'" } */
~~~~~~~~~
|
(2) ‘ptr’ could be NULL: unchecked value from (1)