| Eli Friedman | b572c92 | 2009-11-14 04:19:37 +0000 | [diff] [blame^] | 1 | // clang-cc -o - -emit-llvm %s | FileCheck %s |
| 2 | // PR5483 | ||||
| 3 | |||||
| 4 | // Make sure we generate all three forms of the destructor when it is virtual. | ||||
| 5 | class Foo { | ||||
| 6 | virtual ~Foo(); | ||||
| 7 | }; | ||||
| 8 | Foo::~Foo() {} | ||||
| 9 | |||||
| 10 | // CHECK: define void @_ZN3FooD0Ev | ||||