4 static void __attribute__((noinline
))
5 called_by_test_1 (void)
14 return *global_ptr
; /* { dg-warning "dereferencing pointer 'global_ptr' to within stale stack frame" } */
17 static void __attribute__((noinline
))
18 called_by_test_2 (int **out
)
27 called_by_test_2 (&ptr
);
28 return *ptr
; /* { dg-warning "dereferencing pointer 'ptr' to within stale stack frame" } */
31 static int __attribute__((noinline
))
32 called_by_test_3 (int **out
)
42 *lhs_ptr
= called_by_test_3 (&lhs_ptr
); /* { dg-warning "use of uninitialized value 'lhs_ptr'" } */