aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/destructor.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-01-31 17:10:25 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-01-31 17:10:25 +0000
commit9641fc8e43f53b1ae8ed7742017e0a320d75fa8a (patch)
tree0f8f5e27e686aa0bf1eb2555c337398696d9f4ad /test/SemaCXX/destructor.cpp
parent683a81f4373cf1fa9d41a751dca6f7c36125b058 (diff)
Only warn for -Wnon-virtual-dtor for public destructors. Thanks to Benjamin Kramer for the hint!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124585 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/destructor.cpp')
-rw-r--r--test/SemaCXX/destructor.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/SemaCXX/destructor.cpp b/test/SemaCXX/destructor.cpp
index a86859c62d..ce01b3acc5 100644
--- a/test/SemaCXX/destructor.cpp
+++ b/test/SemaCXX/destructor.cpp
@@ -147,4 +147,16 @@ struct B {
struct S5 : public B {
virtual void m();
};
+
+struct S6 {
+ virtual void m();
+private:
+ ~S6();
+};
+
+struct S7 {
+ virtual void m();
+protected:
+ ~S7();
+};
}