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

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

/* PR tree-optimization/93582 */
/* { dg-do compile { target int32 } } */
/* { dg-options "-O2 -fdump-tree-fre1" } */
/* { dg-final { scan-tree-dump "return 1;" "fre1" } } */

union U {
  struct S { int a : 1, b : 4, c : 27; } s;
  struct T { int d : 2; int e : 2; int f : 28; } t;
};

int
foo (void)
{
  union U u;
  u.s.b = 10;
  return u.t.e;
}