diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-30 22:07:56 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-30 22:07:56 +0000 |
commit | abce6999b271f4928aa98b11d42ffebedcde1e13 (patch) | |
tree | cf19b72b3dbb7d60f3592f16225b66466dc8fe4b /test/CodeGenCXX/virtual-base-destructor-call.cpp | |
parent | ba2253f234d27d3ecc5b2b88e9cd9198658eb312 (diff) |
Test for my last patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/virtual-base-destructor-call.cpp')
-rw-r--r-- | test/CodeGenCXX/virtual-base-destructor-call.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
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<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 |