1 |
688 |
jeremybenn |
/* PR rtl-optimization/33737 */
|
2 |
|
|
/* Testcase by Richard Guenther <rguenth@gcc.gnu.org> */
|
3 |
|
|
|
4 |
|
|
enum { PROP_0, PROP_DOUBLE_CLICK_TIME, PROP_DOUBLE_CLICK_DISTANCE, PROP_CURSOR_BLINK, PROP_CURSOR_BLINK_TIME, PROP_CURSOR_BLINK_TIMEOUT, PROP_SPLIT_CURSOR, PROP_THEME_NAME, PROP_ICON_THEME_NAME, PROP_FALLBACK_ICON_THEME, PROP_KEY_THEME_NAME, PROP_MENU_BAR_ACCEL, PROP_DND_DRAG_THRESHOLD, PROP_FONT_NAME, PROP_ICON_SIZES, PROP_MODULES, PROP_XFT_ANTIALIAS, PROP_XFT_HINTING, PROP_XFT_HINTSTYLE, PROP_XFT_RGBA, PROP_XFT_DPI, PROP_CURSOR_THEME_NAME, PROP_CURSOR_THEME_SIZE, PROP_ALTERNATIVE_BUTTON_ORDER, PROP_ALTERNATIVE_SORT_ARROWS, PROP_SHOW_INPUT_METHOD_MENU, PROP_SHOW_UNICODE_MENU, PROP_TIMEOUT_INITIAL, PROP_TIMEOUT_REPEAT, PROP_TIMEOUT_EXPAND, PROP_COLOR_SCHEME, PROP_ENABLE_ANIMATIONS, PROP_TOUCHSCREEN_MODE, PROP_TOOLTIP_TIMEOUT, PROP_TOOLTIP_BROWSE_TIMEOUT, PROP_TOOLTIP_BROWSE_MODE_TIMEOUT, PROP_KEYNAV_CURSOR_ONLY, PROP_KEYNAV_WRAP_AROUND, PROP_ERROR_BELL, PROP_COLOR_HASH, PROP_FILE_CHOOSER_BACKEND, PROP_PRINT_BACKENDS, PROP_PRINT_PREVIEW_COMMAND, PROP_ENABLE_MNEMONICS, PROP_ENABLE_ACCELS, PROP_RECENT_FILES_LIMIT };
|
5 |
|
|
void g_assert_warning (void) __attribute__((__noreturn__));
|
6 |
|
|
void gtk_settings_class_init (void)
|
7 |
|
|
{
|
8 |
|
|
unsigned int result;
|
9 |
|
|
result = settings_install_property_parser();
|
10 |
|
|
if (__builtin_expect (__extension__ ({
|
11 |
|
|
int _g_boolean_var_;
|
12 |
|
|
if (result == PROP_DOUBLE_CLICK_TIME) _g_boolean_var_ = 1;
|
13 |
|
|
else _g_boolean_var_ = 0;
|
14 |
|
|
_g_boolean_var_;
|
15 |
|
|
}), 1)) {
|
16 |
|
|
}
|
17 |
|
|
else g_assert_warning();
|
18 |
|
|
result = settings_install_property_parser();
|
19 |
|
|
if (__builtin_expect (__extension__ ({
|
20 |
|
|
int _g_boolean_var_;
|
21 |
|
|
if (result == PROP_DOUBLE_CLICK_DISTANCE) _g_boolean_var_ = 1;
|
22 |
|
|
else _g_boolean_var_ = 0;
|
23 |
|
|
_g_boolean_var_;
|
24 |
|
|
}), 1)) {
|
25 |
|
|
}
|
26 |
|
|
else g_assert_warning();
|
27 |
|
|
result = settings_install_property_parser();
|
28 |
|
|
if (__builtin_expect (__extension__ ({
|
29 |
|
|
int _g_boolean_var_;
|
30 |
|
|
if (result == PROP_CURSOR_BLINK) _g_boolean_var_ = 1;
|
31 |
|
|
else _g_boolean_var_ = 0;
|
32 |
|
|
_g_boolean_var_;
|
33 |
|
|
}), 1)) {
|
34 |
|
|
}
|
35 |
|
|
else g_assert_warning();
|
36 |
|
|
result = settings_install_property_parser();
|
37 |
|
|
if (__builtin_expect (__extension__ ({
|
38 |
|
|
int _g_boolean_var_;
|
39 |
|
|
if (result == PROP_CURSOR_BLINK_TIME) _g_boolean_var_ = 1;
|
40 |
|
|
else _g_boolean_var_ = 0;
|
41 |
|
|
_g_boolean_var_;
|
42 |
|
|
}), 1)) {
|
43 |
|
|
}
|
44 |
|
|
else g_assert_warning();
|
45 |
|
|
result = settings_install_property_parser();
|
46 |
|
|
if (__builtin_expect (__extension__ ({
|
47 |
|
|
int _g_boolean_var_;
|
48 |
|
|
if (result == PROP_CURSOR_BLINK_TIMEOUT) _g_boolean_var_ = 1;
|
49 |
|
|
else _g_boolean_var_ = 0;
|
50 |
|
|
_g_boolean_var_;
|
51 |
|
|
}), 1)) {
|
52 |
|
|
}
|
53 |
|
|
else g_assert_warning();
|
54 |
|
|
result = settings_install_property_parser();
|
55 |
|
|
if (__builtin_expect (__extension__ ({
|
56 |
|
|
int _g_boolean_var_;
|
57 |
|
|
if (result == PROP_SPLIT_CURSOR) _g_boolean_var_ = 1;
|
58 |
|
|
else _g_boolean_var_ = 0;
|
59 |
|
|
_g_boolean_var_;
|
60 |
|
|
}), 1)) {
|
61 |
|
|
}
|
62 |
|
|
else g_assert_warning();
|
63 |
|
|
result = settings_install_property_parser();
|
64 |
|
|
if (__builtin_expect (__extension__ ({
|
65 |
|
|
int _g_boolean_var_;
|
66 |
|
|
if (result == PROP_THEME_NAME) _g_boolean_var_ = 1;
|
67 |
|
|
else _g_boolean_var_ = 0;
|
68 |
|
|
_g_boolean_var_;
|
69 |
|
|
}), 1)) {
|
70 |
|
|
}
|
71 |
|
|
else g_assert_warning();
|
72 |
|
|
result = settings_install_property_parser();
|
73 |
|
|
if (__builtin_expect (__extension__ ({
|
74 |
|
|
int _g_boolean_var_;
|
75 |
|
|
if (result == PROP_ICON_THEME_NAME) _g_boolean_var_ = 1;
|
76 |
|
|
else _g_boolean_var_ = 0;
|
77 |
|
|
_g_boolean_var_;
|
78 |
|
|
}), 1)) {
|
79 |
|
|
}
|
80 |
|
|
else g_assert_warning();
|
81 |
|
|
result = settings_install_property_parser();
|
82 |
|
|
if (__builtin_expect (__extension__ ({
|
83 |
|
|
int _g_boolean_var_;
|
84 |
|
|
if (result == PROP_FALLBACK_ICON_THEME) _g_boolean_var_ = 1;
|
85 |
|
|
else _g_boolean_var_ = 0;
|
86 |
|
|
_g_boolean_var_;
|
87 |
|
|
}), 1)) {
|
88 |
|
|
}
|
89 |
|
|
else g_assert_warning();
|
90 |
|
|
result = settings_install_property_parser();
|
91 |
|
|
if (__builtin_expect (__extension__ ({
|
92 |
|
|
int _g_boolean_var_;
|
93 |
|
|
if (result == PROP_KEY_THEME_NAME) _g_boolean_var_ = 1;
|
94 |
|
|
else _g_boolean_var_ = 0;
|
95 |
|
|
_g_boolean_var_;
|
96 |
|
|
}), 1)) {
|
97 |
|
|
}
|
98 |
|
|
else g_assert_warning();
|
99 |
|
|
result = settings_install_property_parser();
|
100 |
|
|
if (__builtin_expect (__extension__ ({
|
101 |
|
|
int _g_boolean_var_;
|
102 |
|
|
if (result == PROP_MENU_BAR_ACCEL) _g_boolean_var_ = 1;
|
103 |
|
|
else _g_boolean_var_ = 0;
|
104 |
|
|
_g_boolean_var_;
|
105 |
|
|
}), 1)) {
|
106 |
|
|
}
|
107 |
|
|
else g_assert_warning();
|
108 |
|
|
result = settings_install_property_parser();
|
109 |
|
|
if (__builtin_expect (__extension__ ({
|
110 |
|
|
int _g_boolean_var_;
|
111 |
|
|
if (result == PROP_DND_DRAG_THRESHOLD) _g_boolean_var_ = 1;
|
112 |
|
|
else _g_boolean_var_ = 0;
|
113 |
|
|
_g_boolean_var_;
|
114 |
|
|
}), 1)) {
|
115 |
|
|
}
|
116 |
|
|
else g_assert_warning();
|
117 |
|
|
result = settings_install_property_parser();
|
118 |
|
|
if (__builtin_expect (__extension__ ({
|
119 |
|
|
int _g_boolean_var_;
|
120 |
|
|
if (result == PROP_FONT_NAME) _g_boolean_var_ = 1;
|
121 |
|
|
else _g_boolean_var_ = 0;
|
122 |
|
|
_g_boolean_var_;
|
123 |
|
|
}), 1)) {
|
124 |
|
|
}
|
125 |
|
|
else g_assert_warning();
|
126 |
|
|
result = settings_install_property_parser();
|
127 |
|
|
if (__builtin_expect (__extension__ ({
|
128 |
|
|
int _g_boolean_var_;
|
129 |
|
|
if (result == PROP_ICON_SIZES) _g_boolean_var_ = 1;
|
130 |
|
|
else _g_boolean_var_ = 0;
|
131 |
|
|
_g_boolean_var_;
|
132 |
|
|
}), 1)) {
|
133 |
|
|
}
|
134 |
|
|
else g_assert_warning();
|
135 |
|
|
result = settings_install_property_parser();
|
136 |
|
|
if (__builtin_expect (__extension__ ({
|
137 |
|
|
int _g_boolean_var_;
|
138 |
|
|
if (result == PROP_MODULES) _g_boolean_var_ = 1;
|
139 |
|
|
else _g_boolean_var_ = 0;
|
140 |
|
|
_g_boolean_var_;
|
141 |
|
|
}), 1)) {
|
142 |
|
|
}
|
143 |
|
|
else g_assert_warning();
|
144 |
|
|
result = settings_install_property_parser();
|
145 |
|
|
if (__builtin_expect (__extension__ ({
|
146 |
|
|
int _g_boolean_var_;
|
147 |
|
|
if (result == PROP_XFT_ANTIALIAS) _g_boolean_var_ = 1;
|
148 |
|
|
else _g_boolean_var_ = 0;
|
149 |
|
|
_g_boolean_var_;
|
150 |
|
|
}), 1)) {
|
151 |
|
|
}
|
152 |
|
|
else g_assert_warning();
|
153 |
|
|
result = settings_install_property_parser();
|
154 |
|
|
if (__builtin_expect (__extension__ ({
|
155 |
|
|
int _g_boolean_var_;
|
156 |
|
|
if (result == PROP_XFT_HINTING) _g_boolean_var_ = 1;
|
157 |
|
|
else _g_boolean_var_ = 0;
|
158 |
|
|
_g_boolean_var_;
|
159 |
|
|
}), 1)) {
|
160 |
|
|
}
|
161 |
|
|
else g_assert_warning();
|
162 |
|
|
result = settings_install_property_parser();
|
163 |
|
|
if (__builtin_expect (__extension__ ({
|
164 |
|
|
int _g_boolean_var_;
|
165 |
|
|
if (result == PROP_XFT_HINTSTYLE) _g_boolean_var_ = 1;
|
166 |
|
|
else _g_boolean_var_ = 0;
|
167 |
|
|
_g_boolean_var_;
|
168 |
|
|
}), 1)) {
|
169 |
|
|
}
|
170 |
|
|
else g_assert_warning();
|
171 |
|
|
result = settings_install_property_parser();
|
172 |
|
|
if (__builtin_expect (__extension__ ({
|
173 |
|
|
int _g_boolean_var_;
|
174 |
|
|
if (result == PROP_XFT_RGBA) _g_boolean_var_ = 1;
|
175 |
|
|
else _g_boolean_var_ = 0;
|
176 |
|
|
_g_boolean_var_;
|
177 |
|
|
}), 1)) {
|
178 |
|
|
}
|
179 |
|
|
else g_assert_warning();
|
180 |
|
|
result = settings_install_property_parser();
|
181 |
|
|
if (__builtin_expect (__extension__ ({
|
182 |
|
|
int _g_boolean_var_;
|
183 |
|
|
if (result == PROP_XFT_DPI) _g_boolean_var_ = 1;
|
184 |
|
|
else _g_boolean_var_ = 0;
|
185 |
|
|
_g_boolean_var_;
|
186 |
|
|
}), 1)) {
|
187 |
|
|
}
|
188 |
|
|
else g_assert_warning();
|
189 |
|
|
result = settings_install_property_parser();
|
190 |
|
|
if (__builtin_expect (__extension__ ({
|
191 |
|
|
int _g_boolean_var_;
|
192 |
|
|
if (result == PROP_CURSOR_THEME_NAME) _g_boolean_var_ = 1;
|
193 |
|
|
else _g_boolean_var_ = 0;
|
194 |
|
|
_g_boolean_var_;
|
195 |
|
|
}), 1)) {
|
196 |
|
|
}
|
197 |
|
|
else g_assert_warning();
|
198 |
|
|
result = settings_install_property_parser();
|
199 |
|
|
if (__builtin_expect (__extension__ ({
|
200 |
|
|
int _g_boolean_var_;
|
201 |
|
|
if (result == PROP_CURSOR_THEME_SIZE) _g_boolean_var_ = 1;
|
202 |
|
|
else _g_boolean_var_ = 0;
|
203 |
|
|
_g_boolean_var_;
|
204 |
|
|
}), 1)) {
|
205 |
|
|
}
|
206 |
|
|
else g_assert_warning();
|
207 |
|
|
result = settings_install_property_parser();
|
208 |
|
|
if (__builtin_expect (__extension__ ({
|
209 |
|
|
int _g_boolean_var_;
|
210 |
|
|
if (result == PROP_ALTERNATIVE_BUTTON_ORDER) _g_boolean_var_ = 1;
|
211 |
|
|
else _g_boolean_var_ = 0;
|
212 |
|
|
_g_boolean_var_;
|
213 |
|
|
}), 1)) {
|
214 |
|
|
}
|
215 |
|
|
else g_assert_warning();
|
216 |
|
|
result = settings_install_property_parser();
|
217 |
|
|
if (__builtin_expect (__extension__ ({
|
218 |
|
|
int _g_boolean_var_;
|
219 |
|
|
if (result == PROP_ALTERNATIVE_SORT_ARROWS) _g_boolean_var_ = 1;
|
220 |
|
|
else _g_boolean_var_ = 0;
|
221 |
|
|
_g_boolean_var_;
|
222 |
|
|
}), 1)) {
|
223 |
|
|
}
|
224 |
|
|
else g_assert_warning();
|
225 |
|
|
result = settings_install_property_parser();
|
226 |
|
|
if (__builtin_expect (__extension__ ({
|
227 |
|
|
int _g_boolean_var_;
|
228 |
|
|
if (result == PROP_SHOW_INPUT_METHOD_MENU) _g_boolean_var_ = 1;
|
229 |
|
|
else _g_boolean_var_ = 0;
|
230 |
|
|
_g_boolean_var_;
|
231 |
|
|
}), 1)) {
|
232 |
|
|
}
|
233 |
|
|
else g_assert_warning();
|
234 |
|
|
result = settings_install_property_parser();
|
235 |
|
|
if (__builtin_expect (__extension__ ({
|
236 |
|
|
int _g_boolean_var_;
|
237 |
|
|
if (result == PROP_SHOW_UNICODE_MENU) _g_boolean_var_ = 1;
|
238 |
|
|
else _g_boolean_var_ = 0;
|
239 |
|
|
_g_boolean_var_;
|
240 |
|
|
}), 1)) {
|
241 |
|
|
}
|
242 |
|
|
else g_assert_warning();
|
243 |
|
|
result = settings_install_property_parser();
|
244 |
|
|
if (__builtin_expect (__extension__ ({
|
245 |
|
|
int _g_boolean_var_;
|
246 |
|
|
if (result == PROP_TOOLTIP_BROWSE_TIMEOUT) _g_boolean_var_ = 1;
|
247 |
|
|
else _g_boolean_var_ = 0;
|
248 |
|
|
_g_boolean_var_;
|
249 |
|
|
}), 1)) {
|
250 |
|
|
}
|
251 |
|
|
else g_assert_warning();
|
252 |
|
|
result = settings_install_property_parser();
|
253 |
|
|
if (__builtin_expect (__extension__ ({
|
254 |
|
|
int _g_boolean_var_;
|
255 |
|
|
if (result == PROP_TOOLTIP_BROWSE_MODE_TIMEOUT) _g_boolean_var_ = 1;
|
256 |
|
|
else _g_boolean_var_ = 0;
|
257 |
|
|
_g_boolean_var_;
|
258 |
|
|
}), 1)) {
|
259 |
|
|
}
|
260 |
|
|
else g_assert_warning();
|
261 |
|
|
result = settings_install_property_parser();
|
262 |
|
|
if (__builtin_expect (__extension__ ({
|
263 |
|
|
int _g_boolean_var_;
|
264 |
|
|
if (result == PROP_KEYNAV_CURSOR_ONLY) _g_boolean_var_ = 1;
|
265 |
|
|
else _g_boolean_var_ = 0;
|
266 |
|
|
_g_boolean_var_;
|
267 |
|
|
}), 1)) {
|
268 |
|
|
}
|
269 |
|
|
else g_assert_warning();
|
270 |
|
|
result = settings_install_property_parser();
|
271 |
|
|
if (__builtin_expect (__extension__ ({
|
272 |
|
|
int _g_boolean_var_;
|
273 |
|
|
if (result == PROP_KEYNAV_WRAP_AROUND) _g_boolean_var_ = 1;
|
274 |
|
|
else _g_boolean_var_ = 0;
|
275 |
|
|
_g_boolean_var_;
|
276 |
|
|
}), 1)) {
|
277 |
|
|
}
|
278 |
|
|
else g_assert_warning();
|
279 |
|
|
result = settings_install_property_parser();
|
280 |
|
|
if (__builtin_expect (__extension__ ({
|
281 |
|
|
int _g_boolean_var_;
|
282 |
|
|
if (result == PROP_ERROR_BELL) _g_boolean_var_ = 1;
|
283 |
|
|
else _g_boolean_var_ = 0;
|
284 |
|
|
_g_boolean_var_;
|
285 |
|
|
}), 1)) {
|
286 |
|
|
}
|
287 |
|
|
else g_assert_warning();
|
288 |
|
|
result = settings_install_property_parser();
|
289 |
|
|
if (__builtin_expect (__extension__ ({
|
290 |
|
|
int _g_boolean_var_;
|
291 |
|
|
if (result == PROP_FILE_CHOOSER_BACKEND) _g_boolean_var_ = 1;
|
292 |
|
|
else _g_boolean_var_ = 0;
|
293 |
|
|
_g_boolean_var_;
|
294 |
|
|
}), 1)) {
|
295 |
|
|
}
|
296 |
|
|
else g_assert_warning();
|
297 |
|
|
result = settings_install_property_parser();
|
298 |
|
|
if (__builtin_expect (__extension__ ({
|
299 |
|
|
int _g_boolean_var_;
|
300 |
|
|
if (result == PROP_PRINT_PREVIEW_COMMAND) _g_boolean_var_ = 1;
|
301 |
|
|
else _g_boolean_var_ = 0;
|
302 |
|
|
_g_boolean_var_;
|
303 |
|
|
}), 1)) {
|
304 |
|
|
}
|
305 |
|
|
else g_assert_warning();
|
306 |
|
|
result = settings_install_property_parser();
|
307 |
|
|
if (__builtin_expect (__extension__ ({
|
308 |
|
|
int _g_boolean_var_;
|
309 |
|
|
if (result == PROP_ENABLE_MNEMONICS) _g_boolean_var_ = 1;
|
310 |
|
|
else _g_boolean_var_ = 0;
|
311 |
|
|
_g_boolean_var_;
|
312 |
|
|
}), 1)) {
|
313 |
|
|
}
|
314 |
|
|
else g_assert_warning();
|
315 |
|
|
result = settings_install_property_parser();
|
316 |
|
|
if (__builtin_expect (__extension__ ({
|
317 |
|
|
int _g_boolean_var_;
|
318 |
|
|
if (result == PROP_ENABLE_ACCELS) _g_boolean_var_ = 1;
|
319 |
|
|
else _g_boolean_var_ = 0;
|
320 |
|
|
_g_boolean_var_;
|
321 |
|
|
}), 1)) {
|
322 |
|
|
}
|
323 |
|
|
else g_assert_warning();
|
324 |
|
|
if (__builtin_expect (__extension__ ({
|
325 |
|
|
int _g_boolean_var_;
|
326 |
|
|
if (result == PROP_RECENT_FILES_LIMIT) _g_boolean_var_ = 1;
|
327 |
|
|
else _g_boolean_var_ = 0;
|
328 |
|
|
_g_boolean_var_;
|
329 |
|
|
}), 1)) {
|
330 |
|
|
}
|
331 |
|
|
else g_assert_warning();
|
332 |
|
|
}
|