1  /* PR tree-optimization/59386 */
       2  
       3  struct S { int s; };
       4  struct T { int t; struct S u; } c;
       5  int b;
       6  
       7  struct S
       8  foo ()
       9  {
      10    struct T d;
      11    if (b)
      12      while (c.t)
      13        ;
      14    else
      15      return d.u;
      16  }
      17  
      18  struct S
      19  bar ()
      20  {
      21    struct T a;
      22    a.u = foo ();
      23    return a.u;
      24  }