rt_gccstream/gcc/testsuite/g++.dg/torture/pr27218.C

17 lines
186 B
C

/* { dg-do compile } */
struct Vector
{
double _x, _y;
};
typedef Vector Point;
Vector d;
static inline Vector f(void)
{
return d;
}
void add_duck (void)
{
new Point (f());
}