comparison 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
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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 }