freebsd-dev/test/CodeGenCXX/destructors.cpp
2009-10-14 18:03:49 +00:00

31 lines
313 B
C++

// RUN: clang-cc %s -emit-llvm -o -
struct A {
int a;
~A();
};
// Base with non-trivial destructor
struct B : A {
~B();
};
B::~B() { }
// Field with non-trivial destructor
struct C {
A a;
~C();
};
C::~C() { }
// PR5084
template<typename T>
class A1 {
~A1();
};
template<> A1<char>::~A1();