blob: e8080577ff69de1664778a716fc5b6382d6a8a49 [file] [log] [blame]
Anders Carlsson174754c2009-09-01 18:33:46 +00001// RUN: clang-cc %s -emit-llvm -o -
2struct A {
3 int a;
4
5 ~A();
6};
7
8// Base with non-trivial destructor
9struct B : A {
10 ~B();
11};
12
13B::~B() { }
14
15// Field with non-trivial destructor
16struct C {
17 A a;
18
19 ~C();
20};
21
22C::~C() { }