2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / byval3.C
blobf56fc124368e9b2868ee73b1775689593c2ddde5
1 // { dg-do assemble  }
2 // Test to make sure that value return of classes with cleanups works; it
3 // has been broken at various times on PCC_STATIC_STRUCT_RETURN targets.
5 struct A {};
7 struct R : virtual A { virtual ~R(); };
9 R g();
11 void encode()
13     g();