aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr33724.c
blob: 7e8eb5ddd070ad58ae76c6878bb44e943205fd29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */

/* We ICEd with type-checking enabled.  */

struct xt_entry_target {
  char name[1];
};
struct ipt_entry {
  unsigned char elems[1];
};
void match_different(const unsigned char *);
int dump_entry(struct xt_entry_target *t)
{
  return __builtin_strcmp (t->name, "");
}
void is_same(const struct ipt_entry *a)
{
  match_different(a->elems);
}