gcc/testsuite/gcc.dg/torture/pr68104.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-std=gnu17" } */ |
| 3 | |
| 4 | typedef struct |
| 5 | { |
| 6 | char vl; |
| 7 | char weight; |
| 8 | } ib_vl_arb_element_t; |
| 9 | typedef struct { ib_vl_arb_element_t vl_entry[32]; } ib_vl_arb_table_t; |
| 10 | typedef enum { IB_SUCCESS } ib_api_status_t; |
| 11 | int a, b, d; |
| 12 | char c; |
| 13 | void fn1(); |
| 14 | ib_api_status_t fn2() |
| 15 | { |
| 16 | int e = b; |
| 17 | ib_vl_arb_table_t f; |
| 18 | if (e) |
| 19 | for (a = 0; a < d; a++) |
| 20 | f.vl_entry[a].vl &= c; |
| 21 | fn1(f); |
| 22 | return IB_SUCCESS; |
| 23 | } |