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