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