view gcc/testsuite/gcc.c-torture/compile/20011114-3.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

typedef struct { int s, t; } C;
C x;
int foo (void);
void bar (int);

int baz (void)
{
  int a = 0, c, d = 0;
  C *b = &x;

  while ((c = foo ()))
    switch(c)
      {
      case 23:
	bar (1);
	break;
      default:
	break;
      }

  if (a == 0 || (a & 1))
    {
      if (b->s)
	{
	  if (a)
	    bar (1);
	  else
	    a = 16;
	}
      else if (b->t)
	{
	  if (a)
	    bar (1);
	  else
	    a = 32;
	}
    }

  if (d && (a & ~127))
    bar (2);
  return 0;
}