summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/PR6562.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/PR6562.cpp')
-rw-r--r--clang/test/SemaCXX/PR6562.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/PR6562.cpp b/clang/test/SemaCXX/PR6562.cpp
new file mode 100644
index 0000000..854d9b0
--- /dev/null
+++ b/clang/test/SemaCXX/PR6562.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+struct X { ~X(); };
+template <typename T>
+struct A {
+ struct B { X x; };
+ struct C : public B {
+ C() : B() { }
+ };
+};