[cfe-commits] r90159 - /cfe/trunk/test/CodeGenCXX/virtual-base-destructor-call.cpp
Fariborz Jahanian
fjahanian at apple.com
Mon Nov 30 14:07:56 PST 2009
Author: fjahanian
Date: Mon Nov 30 16:07:56 2009
New Revision: 90159
URL: http://llvm.org/viewvc/llvm-project?rev=90159&view=rev
Log:
Test for my last patch.
Added:
cfe/trunk/test/CodeGenCXX/virtual-base-destructor-call.cpp
Added: cfe/trunk/test/CodeGenCXX/virtual-base-destructor-call.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/virtual-base-destructor-call.cpp?rev=90159&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/virtual-base-destructor-call.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/virtual-base-destructor-call.cpp Mon Nov 30 16:07:56 2009
@@ -0,0 +1,19 @@
+// RUN: clang-cc %s -emit-llvm -o - | FileCheck %s
+
+struct basic_ios{~basic_ios(); };
+
+template<typename _CharT> struct basic_istream : virtual public basic_ios {
+ virtual ~basic_istream(){}
+};
+
+template<typename _CharT> struct basic_iostream : public basic_istream<_CharT>
+{
+ virtual ~basic_iostream(){}
+};
+
+basic_iostream<char> res;
+
+int main() {
+}
+
+// CHECK: call void @_ZN9basic_iosD2Ev
More information about the cfe-commits
mailing list