gcc/testsuite/g++.dg/tree-ssa/aggregate1.C
raw| 1 | // Test that we don't bother building a cleanup for the last aggregate element. |
| 2 | // { dg-additional-options -fdump-tree-gimple } |
| 3 | // { dg-final { scan-tree-dump-not {A::~A \(&b\.a} "gimple" } } |
| 4 | |
| 5 | struct A |
| 6 | { |
| 7 | A(int); |
| 8 | ~A(); |
| 9 | }; |
| 10 | |
| 11 | struct B |
| 12 | { |
| 13 | A a; |
| 14 | }; |
| 15 | |
| 16 | int main() |
| 17 | { |
| 18 | B b = { 1 }; |
| 19 | } |