diff options
Diffstat (limited to 'clang/test/CodeGenCXX/virtual-inherited-destructor.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/virtual-inherited-destructor.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/virtual-inherited-destructor.cpp b/clang/test/CodeGenCXX/virtual-inherited-destructor.cpp new file mode 100644 index 0000000..509d40a --- /dev/null +++ b/clang/test/CodeGenCXX/virtual-inherited-destructor.cpp @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 %s -emit-llvm-only + +struct A { virtual ~A(); }; +struct B : A { + ~B() { } +}; +B x; + |