blob: a5a31a4f517c4721b22525710181c1920596e12a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* { 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;
}
|