1 // This structure has a non-trivial copy constructor so
2 // it needs to be passed by reference.
5 PassByRef(const PassByRef &p){x = p.x;};
10 PassByRef returnPassByRef() { return PassByRef(); }
11 int takePassByRef(PassByRef p) {
16 PassByRef p = returnPassByRef();
18 return takePassByRef(p); // break here