Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr100303.C

raw
1 /* { dg-additional-options "-w -fcompare-debug -fno-dce -ftracer" } */
2
3 template < typename _T1 > struct pair
4 {
5 _T1 first;
6 int second;
7 };
8 struct __aligned_membuf
9 {
10 void _M_ptr ();
11 };
12 struct _Rb_tree_node_base
13 {
14 typedef _Rb_tree_node_base *_Base_ptr;
15 };
16 struct _Rb_tree_node:_Rb_tree_node_base
17 {
18 __aligned_membuf _M_storage;
19 void _M_valptr ()
20 {
21 _M_storage._M_ptr ();
22 }
23 };
24 struct _Rb_tree_iterator
25 {
26 typedef _Rb_tree_node_base::_Base_ptr _Base_ptr;
27 _Rb_tree_iterator (_Base_ptr __x):_M_node (__x)
28 {
29 }
30 void operator* ()
31 {
32 static_cast < _Rb_tree_node * >(_M_node)->_M_valptr ();
33 }
34 friend bool operator== (_Rb_tree_iterator __x, _Rb_tree_iterator)
35 {
36 return __x._M_node;
37 }
38 _Base_ptr _M_node;
39 };
40
41 template < typename, typename, typename, typename, typename =
42 int >class _Rb_tree
43 {
44 typedef _Rb_tree_node_base *_Base_ptr;
45 public:
46 pair < _Base_ptr > _M_get_insert_hint_unique_pos (int);
47 void _M_insert_node (_Base_ptr, int);
48 template < typename ... _Args >
49 _Rb_tree_iterator _M_emplace_hint_unique (_Args && ...);
50 _Rb_tree_iterator lower_bound ()
51 {
52 _Rb_tree_node_base __trans_tmp_2;
53 return &__trans_tmp_2;
54 }
55 };
56 template < typename _Key, typename _Val, typename _KeyOfValue,
57 typename _Compare,
58 typename _Alloc > template < typename ... _Args >
59 _Rb_tree_iterator _Rb_tree < _Key, _Val, _KeyOfValue, _Compare,
60 _Alloc >::_M_emplace_hint_unique (_Args && ...)
61 {
62 int __z;
63 try
64 {
65 auto __res = _M_get_insert_hint_unique_pos (0);
66 _Rb_tree_node_base *__res_1;
67 if (__res_1)
68 _M_insert_node (__res.first, __z);
69 return __res.first;
70 }
71 catch ( ...)
72 {
73 }
74 }
75
76 class map
77 {
78 _Rb_tree < int, int, int, int >_M_t;
79 public:
80 _Rb_tree_iterator end ();
81 void operator[] (int)
82 {
83 _Rb_tree_iterator __i = lower_bound ();
84 if (__i == end ())
85 __i = _M_t._M_emplace_hint_unique (__i);
86 *__i;
87 }
88 _Rb_tree_iterator lower_bound ()
89 {
90 return _M_t.lower_bound ();
91 }
92 };
93
94 class FlowStat
95 {
96 public:
97 int FlowStat_flow;
98 FlowStat ()
99 {
100 shares[FlowStat_flow];
101 }
102 map shares;
103 };
104
105 class LinkGraphJob
106 {
107 ~LinkGraphJob ();
108 };
109 LinkGraphJob::~LinkGraphJob ()
110 {
111 FlowStat ();
112 }