Anders Carlsson | 174754c | 2009-09-01 18:33:46 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc %s -emit-llvm -o - |
2 | struct A { | ||||
3 | int a; | ||||
4 | |||||
5 | ~A(); | ||||
6 | }; | ||||
7 | |||||
8 | // Base with non-trivial destructor | ||||
9 | struct B : A { | ||||
10 | ~B(); | ||||
11 | }; | ||||
12 | |||||
13 | B::~B() { } | ||||
14 | |||||
15 | // Field with non-trivial destructor | ||||
16 | struct C { | ||||
17 | A a; | ||||
18 | |||||
19 | ~C(); | ||||
20 | }; | ||||
21 | |||||
22 | C::~C() { } |