blob: 1a6c583c34f2c74748795118bfbf3f4da182ced1 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -o - -emit-llvm %s | FileCheck %s
Eli Friedmanea9a2082009-11-14 04:19:37 +00002// PR5483
3
4// Make sure we generate all three forms of the destructor when it is virtual.
5class Foo {
6 virtual ~Foo();
7};
8Foo::~Foo() {}
9
Rafael Espindola0691a5c2011-01-25 19:10:24 +000010// CHECK: define void @_ZN3FooD0Ev(%class.Foo* %this) unnamed_addr