summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/PR6562.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/PR6562.cpp')
-rw-r--r--test/SemaCXX/PR6562.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/SemaCXX/PR6562.cpp b/test/SemaCXX/PR6562.cpp
new file mode 100644
index 0000000..854d9b0
--- /dev/null
+++ b/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() { }
+ };
+};
OpenPOWER on IntegriCloud