// RUN: %clang_cc1 %s -verify -DDIAG1
// RUN: %clang_cc1 %s -verify -DDIAG1 -DDIAG2 -Wdelete-non-virtual-dtor
// RUN: %clang_cc1 %s -verify -DDIAG1 -Wmost -Wno-delete-non-abstract-non-virtual-dtor
// RUN: %clang_cc1 %s -verify -DDIAG2 -Wmost -Wno-delete-abstract-non-virtual-dtor
// RUN: %clang_cc1 %s -verify -Wmost -Wno-delete-non-virtual-dtor
// expected-no-diagnostics
;
void
// expected-warning@-2 {{delete called on 'S1' that is abstract but has non-virtual destructor}}
;
void
// expected-warning@-2 {{delete called on non-final 'S2' that has virtual functions but non-virtual destructor}}