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.
4 
5 struct A {};
6 
7 struct R : virtual A { virtual ~R(); };
8 
9 R g();
10 
encode()11 void encode()
12 {
13     g();
14 }
15