blob: 76d97d3b0ad44cd75afa1e1e45434413421c5afa [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* PR rtl-optimization/78038.
Make sure ree can gracefully handle extensions of the global
variable register after a call. */
typedef void (*test_fptr_t) (void);
void
test_f (void)
{
}
test_fptr_t test_fptr = test_f;
struct test2_s
{
int f;
};
register struct test2_s *g __asm__("x28");
void
do_something ()
{
test_fptr ();
struct test2_s *p1 = 0;
*p1 = *g;
}