view gcc/testsuite/gcc.c-torture/compile/pr59386.c @ 111:04ced10e8804

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

/* PR tree-optimization/59386 */

struct S { int s; };
struct T { int t; struct S u; } c;
int b;

struct S
foo ()
{
  struct T d;
  if (b)
    while (c.t)
      ;
  else
    return d.u;
}

struct S
bar ()
{
  struct T a;
  a.u = foo ();
  return a.u;
}