(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
torture/
pr78812.C
// { dg-do run } 
// { dg-options "-fpic" { target fpic } }

struct T
{
  bool a;
  T () : a (false) {}
  ~T () { if (!a) __builtin_abort (); }
};

__attribute__((noinline))
void
test (T &x)
{
  x.a = true;
}

int
main ()
{
  T T;
  test (T);
}