aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/torture/pr60609.C
blob: 9ddec0b601da24406b879baba240e2e9c6c3425f (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
/* { dg-do assemble } */

class exception
{
};
class bad_alloc:exception
{
};
class logic_error:exception
{
};
class domain_error:logic_error
{
};
class invalid_argument:logic_error
{
};
class length_error:logic_error
{
};
class overflow_error:exception
{
};
typedef int mpz_t[];
template < class > class __gmp_expr;
template <> class __gmp_expr < mpz_t >
{
    ~__gmp_expr ();
};

class PIP_Solution_Node;
class internal_exception
{
    ~internal_exception ();
};
class not_an_integer:internal_exception
{
};
class not_a_variable:internal_exception
{
};
class not_an_optimization_mode:internal_exception
{
};
class not_a_bounded_integer_type_width:internal_exception
{
};
class not_a_bounded_integer_type_representation:internal_exception
{
};
class not_a_bounded_integer_type_overflow:internal_exception
{
};
class not_a_complexity_class:internal_exception
{
};
class not_a_control_parameter_name:internal_exception
{
};
class not_a_control_parameter_value:internal_exception
{
};
class not_a_pip_problem_control_parameter_name:internal_exception
{
};
class not_a_pip_problem_control_parameter_value:internal_exception
{
};
class not_a_relation:internal_exception
{
};
class ppl_handle_mismatch:internal_exception
{
};
class timeout_exception
{
    ~timeout_exception ();
};
class deterministic_timeout_exception:timeout_exception
{
};
void __assert_fail (const char *, const char *, int, int *)
__attribute__ ((__noreturn__));
void PL_get_pointer (void *);
int Prolog_is_address ();
inline int
Prolog_get_address (void **p1)
{
    Prolog_is_address ()? static_cast <
    void >(0) : __assert_fail ("Prolog_is_address", "./swi_cfli.hh", 0, 0);
    PL_get_pointer (p1);
    return 0;
}

class non_linear:internal_exception
{
};
class not_unsigned_integer:internal_exception
{
};
class not_universe_or_empty:internal_exception
{
};
class not_a_nil_terminated_list:internal_exception
{
};
class PPL_integer_out_of_range
{
    __gmp_expr < mpz_t > n;
};
void handle_exception ();
template < typename T > T * term_to_handle (int, const char *)
{
    if (Prolog_is_address ())
    {
        void *p;
        Prolog_get_address (&p);
        return static_cast < T * >(0);
    }
    throw;
}

void
ppl_new_MIP_Problem_from_MIP_Problem ()
try
{
    term_to_handle < int >(0, "ppl_new_MIP_Problem_from_MIP_Problem/2");
}

catch (exception &)
{
}

int
ppl_PIP_Tree_Node_parametric_values ()
{
    try
    {
        PIP_Solution_Node *a = term_to_handle < PIP_Solution_Node > (0, 0);
	(void)a;
        return 1;
    }
    catch (internal_exception &)
    {
    }
    catch (not_unsigned_integer &)
    {
        handle_exception ();
    }
    catch (non_linear &)
    {
        handle_exception ();
    }
    catch (not_a_variable &)
    {
        handle_exception ();
    }
    catch (not_an_integer &)
    {
        handle_exception ();
    }
    catch (ppl_handle_mismatch &)
    {
        handle_exception ();
    }
    catch (not_an_optimization_mode &)
    {
        handle_exception ();
    }
    catch (not_a_complexity_class &)
    {
        handle_exception ();
    }
    catch (not_a_bounded_integer_type_width &)
    {
        handle_exception ();
    }
    catch (not_a_bounded_integer_type_representation &)
    {
        handle_exception ();
    }
    catch (not_a_bounded_integer_type_overflow &)
    {
        handle_exception ();
    }
    catch (not_a_control_parameter_name &)
    {
        handle_exception ();
    }
    catch (not_a_control_parameter_value &)
    {
        handle_exception ();
    }
    catch (not_a_pip_problem_control_parameter_name &)
    {
        handle_exception ();
    }
    catch (not_a_pip_problem_control_parameter_value &)
    {
        handle_exception ();
    }
    catch (not_universe_or_empty &)
    {
        handle_exception ();
    }
    catch (not_a_relation &)
    {
        handle_exception ();
    }
    catch (not_a_nil_terminated_list &)
    {
        handle_exception ();
    }
    catch (PPL_integer_out_of_range &)
    {
        handle_exception ();
    }
    catch (int &)
    {
    } catch (timeout_exception &)
    {
        handle_exception ();
    } catch (deterministic_timeout_exception &)
    {
        handle_exception ();
    } catch (overflow_error &)
    {
        handle_exception ();
    } catch (domain_error &)
    {
        handle_exception ();
    } catch (length_error &)
    {
        handle_exception ();
    } catch (invalid_argument &)
    {
        handle_exception ();
    } catch (logic_error &)
    {
        handle_exception ();
    } catch (bad_alloc &)
    {
        handle_exception ();
    } catch (exception &)
    {
        handle_exception ();
    } catch ( ...)
    {
        handle_exception ();
    }
    return 0;
}