]> granicus.if.org Git - clang/commitdiff
Test for my last patch.
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 30 Nov 2009 22:07:56 +0000 (22:07 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Mon, 30 Nov 2009 22:07:56 +0000 (22:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90159 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/virtual-base-destructor-call.cpp [new file with mode: 0644]

diff --git a/test/CodeGenCXX/virtual-base-destructor-call.cpp b/test/CodeGenCXX/virtual-base-destructor-call.cpp
new file mode 100644 (file)
index 0000000..e791758
--- /dev/null
@@ -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