summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/zero-strct-5.c
blob: 2dfbabe406a74647945a2c29aaeb23aa0914b765 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 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);
}