blob: b5ff3f3de60452489f9430fa03074ef6797d8657 [file] [log] [blame]
// { dg-do assemble }
struct A {
A();
~A();
};
struct B {
B (const A&);
~B ();
};
const B& f ()
{
A a;
return a; // { dg-warning "" } returning reference to temporary
}