view gcc/testsuite/gcc.dg/pr81227.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* Copy of gcc.c-torture/compile/pr80443.c  */
/* { dg-do compile } */
/* { dg-options "-O2 -fwrapv" } */

struct S { int a : 1; } b, c;
signed char d, e, f;

void
foo ()
{ 
  while (f)
    { 
      signed char g = b.a;
      if (g)
	b.a = ~(1 + (d || c.a));
      if (b.a < g && b.a)
	g = 0;
      if (b.a > c.a)
	b.a = g;
      c.a = e;
    }
}