summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/default-destructor-nested.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/default-destructor-nested.cpp')
-rw-r--r--clang/test/CodeGenCXX/default-destructor-nested.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/default-destructor-nested.cpp b/clang/test/CodeGenCXX/default-destructor-nested.cpp
new file mode 100644
index 0000000..565a727
--- /dev/null
+++ b/clang/test/CodeGenCXX/default-destructor-nested.cpp
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 %s -emit-llvm-only
+// PR6294
+
+class A {
+public: virtual ~A();
+};
+class B {
+ class C;
+};
+class B::C : public A {
+ C();
+};
+B::C::C() {}