view gcc/testsuite/gcc.dg/torture/pr71055.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

/* { dg-do run } */

extern void abort (void);
union U { int i; _Bool b; char c; };
void __attribute__((noinline,noclone))
foo (union U *u)
{
  if (u->c != 0)
    abort ();
}
int main()
{
  union U u;
  u.i = 10;
  u.b = 0;
  foo (&u);
  return 0;
}