blob: a5a31a4f517c4721b22525710181c1920596e12a [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-fno-guess-branch-probability -fno-tree-forwprop --param max-early-inliner-iterations=10 --param=early-inlining-insns=176" } */
template < typename T > struct intrusive_ptr
{
~intrusive_ptr ()
{
delete px;
}
T *px;
};
struct section_info
{
intrusive_ptr < section_info > parent;
};
struct file_info
{
intrusive_ptr < file_info > parent;
intrusive_ptr < section_info > switched_section;
};
void
start_file (void)
{
intrusive_ptr < file_info > parent;
}