Bug path

test_1
‘test_1’: event 1
14 return *global_ptr; /* { dg-warning "dereferencing pointer 'global_ptr' to within stale stack frame" } */
^~~~~~~~~~~
|
(1) dereferencing pointer ‘global_ptr’ to within stale stack frame