view gcc/testsuite/gcc.dg/ipa/pr63551.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

/* { dg-do run } */
/* { dg-options "-Os" } */
/* { dg-require-effective-target int32plus } */

union U
{
  unsigned int f0;
  int f1;
};

int a, d;

void
fn1 (union U p)
{
  if (p.f1 <= 0)
    if (a)
      d = 0;
}

void
fn2 ()
{
  d = 0;
  union U b = { 4294967286U };
  fn1 (b);
}

int
main ()
{
  fn2 ();
  return 0;
}