Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -o - -emit-llvm %s | FileCheck %s |
Eli Friedman | ea9a208 | 2009-11-14 04:19:37 +0000 | [diff] [blame] | 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 |