1/* { dg-do compile } */
2
3struct Vector
4{
5    double _x, _y;
6};
7typedef Vector Point;
8Vector d;
9static inline Vector f(void)
10{
11  return d;
12}
13void add_duck (void)
14{
15    new Point (f());
16}
17