view gcc/testsuite/gcc.dg/pr78148.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR target/78148 */
/* { dg-do compile } */
/* { dg-options "-O2 -fcompare-debug" } */

struct A { int a, b; };
struct B { char c, d; };
extern void bar (struct A, struct B);
struct C { char e, f; } a;
struct D
{
  int g;
  struct C h[4];
};
struct D *e;

struct D
foo (void)
{
  int b;
  struct B c;
  struct A d;
  d.b = c.c = c.d = 0;
  bar (d, c);
}

void
baz ()
{
  e->h[0].e = e->h[0].f = 0;
  foo ();
}