1 2 3 4 5 6 7 8 9 10
// PR rtl-optimization/15159 // { dg-options "-O2" } struct S { S (); }; struct P { P (S *); }; void foo (const P &); void bar () { P p = new S; foo (p); }