view gcc/testsuite/gcc.dg/tree-ssa/pr93776.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O1" } */

struct empty {};
struct s { int i; };
struct z
{
  int j;
  struct empty e;
  struct s s;
  int k;
};

void bar (struct z);
void baz (int);

void foo (void)
{
  struct z z, z2;

  z.k = 8;
  z2.s.i = 1;
  z = z2;
  bar (z);
  z.e = (struct empty) {};
  baz (z.k);
}