summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/destructor.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-05-09 22:02:28 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-05-09 22:02:28 +0000
commit04e2e665cb1cd7664b9b10427f8b29bd97523caf (patch)
tree6edc20a9b7904effc86c9b13ea499a87a9bdc26b /clang/test/SemaCXX/destructor.cpp
parentd0eda92845ffb48ba71ff449c8917337f7c68476 (diff)
downloadbcm5719-llvm-04e2e665cb1cd7664b9b10427f8b29bd97523caf.tar.gz
bcm5719-llvm-04e2e665cb1cd7664b9b10427f8b29bd97523caf.zip
Don't emit -Wnon-virtual-dtor on final classes, since it's not a problem there.
The base class is the culprit/risk here - a sealed/final derived class with virtual functions and a non-virtual dtor can't accidentally be polymorphically destroyed (if the base class's dtor is protected - which also suppresses this warning). llvm-svn: 208449
Diffstat (limited to 'clang/test/SemaCXX/destructor.cpp')
-rw-r--r--clang/test/SemaCXX/destructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/destructor.cpp b/clang/test/SemaCXX/destructor.cpp
index 7642228c6f8..d0a0731c11e 100644
--- a/clang/test/SemaCXX/destructor.cpp
+++ b/clang/test/SemaCXX/destructor.cpp
@@ -195,7 +195,7 @@ struct B { // expected-warning {{has virtual functions but non-virtual destructo
struct D: B {}; // expected-warning {{has virtual functions but non-virtual destructor}}
-struct F final: B {}; // expected-warning {{has virtual functions but non-virtual destructor}}
+struct F final : B {};
struct VB {
virtual void foo();
OpenPOWER on IntegriCloud