diff options
-rw-r--r-- | test/CXX/special/class.dtor/p9.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CXX/special/class.dtor/p9.cpp b/test/CXX/special/class.dtor/p9.cpp index 13243f510f..8b76a15078 100644 --- a/test/CXX/special/class.dtor/p9.cpp +++ b/test/CXX/special/class.dtor/p9.cpp @@ -70,3 +70,16 @@ namespace test2 { C c; // expected-note {{first required here}} } } + +// PR7346 +namespace test3 { + struct A { + virtual ~A(); + static void operator delete(void*, const int &); + }; + + struct B : A { + virtual ~B() {} + static void operator delete(void*); + }; +} |