blob: 3f30a73b4e0a0580ef9fab74601b29212415fd98 [file] [log] [blame]
// Test that we don't bother building a cleanup for the last aggregate element.
// { dg-additional-options -fdump-tree-gimple }
// { dg-final { scan-tree-dump-not {A::~A \(&b\.a} "gimple" } }
struct A
{
A(int);
~A();
};
struct B
{
A a;
};
int main()
{
B b = { 1 };
}