blob: efe0936767d71c4e3f878b3a1a2bcc4f6fe6ebc9 [file] [log] [blame]
// { 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);
}