tree-optimization/112444 - avoid bougs PHI value-numbering
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr112444.c
blob61c7ec9b22e8a9d7827717fc06799a8bc1cb4ab0
1 /* { dg-do compile } */
2 /* { dg-additional-options "-ftrivial-auto-var-init=zero" } */
4 int qmi_message_pbm_get_all_capabilities_output_capability_basic_information_get_printable_message_offset,
5 qmi_message_pbm_get_all_capabilities_output_capability_basic_information_get_printable_message_init_offset,
6 qmi_message_pbm_get_all_capabilities_output_capability_basic_information_get_printable_message_error,
7 qmi_message_pbm_get_all_capabilities_output_capability_basic_information_get_printable_message_phonebooks_i;
9 int g_string_new(), g_string_append_len(), qmi_message_tlv_read_guint8();
11 void qmi_message_pbm_get_all_capabilities_output_capability_basic_information_get_printable_message() {
12 int printable = g_string_new();
13 for (;;) {
15 if (__builtin_expect(({
16 int _g_boolean_var_4;
17 if (printable)
18 _g_boolean_var_4 = 1;
19 else
20 _g_boolean_var_4 = 0;
21 _g_boolean_var_4;
22 }),
23 0))
24 g_string_append_len();
26 unsigned char tmp;
27 qmi_message_tlv_read_guint8(
28 qmi_message_pbm_get_all_capabilities_output_capability_basic_information_get_printable_message_init_offset,
29 qmi_message_pbm_get_all_capabilities_output_capability_basic_information_get_printable_message_offset,
30 tmp,
31 qmi_message_pbm_get_all_capabilities_output_capability_basic_information_get_printable_message_error);
34 if (__builtin_expect(({
35 int _g_boolean_var_4;
36 if (printable)
37 _g_boolean_var_4 = 1;
38 else
39 _g_boolean_var_4 = 0;
40 _g_boolean_var_4;
41 }),
42 0))
43 g_string_append_len();
46 for (
48 qmi_message_pbm_get_all_capabilities_output_capability_basic_information_get_printable_message_phonebooks_i;) {
49 unsigned char tmp;
50 qmi_message_tlv_read_guint8(&tmp);
52 if (__builtin_expect(({
53 int _g_boolean_var_4;
54 if (printable)
55 _g_boolean_var_4 = 1;
56 else
57 _g_boolean_var_4 = 0;
58 _g_boolean_var_4;
59 }),
60 0))
61 g_string_append_len();