From abce6999b271f4928aa98b11d42ffebedcde1e13 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Mon, 30 Nov 2009 22:07:56 +0000 Subject: [PATCH] Test for my last patch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90159 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../virtual-base-destructor-call.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/CodeGenCXX/virtual-base-destructor-call.cpp diff --git a/test/CodeGenCXX/virtual-base-destructor-call.cpp b/test/CodeGenCXX/virtual-base-destructor-call.cpp new file mode 100644 index 0000000000..e791758aca --- /dev/null +++ b/test/CodeGenCXX/virtual-base-destructor-call.cpp @@ -0,0 +1,19 @@ +// RUN: clang-cc %s -emit-llvm -o - | FileCheck %s + +struct basic_ios{~basic_ios(); }; + +template struct basic_istream : virtual public basic_ios { + virtual ~basic_istream(){} +}; + +template struct basic_iostream : public basic_istream<_CharT> +{ + virtual ~basic_iostream(){} +}; + +basic_iostream res; + +int main() { +} + +// CHECK: call void @_ZN9basic_iosD2Ev -- 2.50.1