view gcc/testsuite/gcc.dg/pr33724.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { 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);
}