gcc/testsuite/gcc.dg/pr33724.c
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | /* We ICEd with type-checking enabled. */ |
| 4 | |
| 5 | struct xt_entry_target { |
| 6 | char name[1]; |
| 7 | }; |
| 8 | struct ipt_entry { |
| 9 | unsigned char elems[1]; |
| 10 | }; |
| 11 | void match_different(const unsigned char *); |
| 12 | int dump_entry(struct xt_entry_target *t) |
| 13 | { |
| 14 | return __builtin_strcmp (t->name, ""); |
| 15 | } |
| 16 | void is_same(const struct ipt_entry *a) |
| 17 | { |
| 18 | match_different(a->elems); |
| 19 | } |
| 20 |