blob: 3f79dd770eb083d45a49dc4e8143fe17a7775c4c [file] [log] [blame]
// { dg-do compile }
// { dg-options "-fomit-frame-pointer" }
struct A { int a; };
struct B { A foo (); };
struct C { B *foo (); };
int foo (struct C *, float);
void bar (struct C *);
void baz (struct A *);
int a, b, c;
int
foo (struct C *y, float x)
{
struct A d;
if (c)
bar (y);
else
{
C g;
g.foo ()->foo ();
a = b;
d.a = (int) (b * x);
}
baz (&d);
return 0;
}