aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr59386.c
blob: b014f707ce73e1521e781461cae000f953571ae2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* 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;
}