1230775Sjfv/* { dg-do compile } */
2230775Sjfv
3230775Sjfvstruct Vector
4230775Sjfv{
5230775Sjfv    double _x, _y;
6230775Sjfv};
7230775Sjfvtypedef Vector Point;
8230775SjfvVector d;
9230775Sjfvstatic inline Vector f(void)
10230775Sjfv{
11230775Sjfv  return d;
12230775Sjfv}
13230775Sjfvvoid add_duck (void)
14230775Sjfv{
15230775Sjfv    new Point (f());
16230775Sjfv}
17230775Sjfv