1 // PR tree-optimization/37084 2 // { dg-do compile } 3 // { dg-options "-O" } 4 5 struct A 6 { 7 A (); 8 }; 9 10 inline A foo()11 foo () 12 { 13 return A (); 14 } 15 16 const A a (foo ()); 17