view gcc/testsuite/gcc.c-torture/compile/zero-strct-5.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

/* Check that the inliner does not crash for this testcase.
   gimple_expr can change the expr to NULL meaning that we
   should not add any statement. */
struct f {};
struct g1 {struct f l;};

static inline void g(struct f a, int i){}

void h(void)
{
  struct g1 t;
  g(t.l , 1);
}