Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr60438-1.C
blob748295aabe048003549afdb321aef55a1a3cfd8e
1 // { dg-do compile }
2 // { dg-options "-fomit-frame-pointer" }
4 struct A { int a; };
5 struct B { A foo (); };
6 struct C { B *foo (); };
7 int foo (struct C *, float);
8 void bar (struct C *);
9 void baz (struct A *);
10 int a, b, c;
12 int
13 foo (struct C *y, float x)
15   struct A d;
16   if (c)
17     bar (y);
18   else
19     {
20       C g;
21       g.foo ()->foo ();
22       a = b;
23       d.a = (int) (b * x);
24     }
25   baz (&d);