view gcc/testsuite/gcc.dg/torture/pr51245.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */

struct S { int s; } a, *b, **c;
int d;

struct S
foo (void)
{
  struct S s = { 0 }, *e = &a;
  if (d)
    **c = *b;
  while (1)
    {
      *b = s;
      *e = *b;
      if (a.s)
	break;
    }
  return **c;
}