1// { dg-do assemble } 2// GROUPS passed old-abort 3class First { 4public: 5 First(const First& a); 6}; 7 8class Second { 9 int i; 10 First f; 11public: 12 ~Second() {} 13 Second func(); 14}; 15 16void foo() 17{ 18 extern Second x; 19 x = x.func(); 20} 21