From patchwork Fri Oct 5 15:02:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [C++,testcase] PR 50893 Date: Fri, 05 Oct 2012 05:02:18 -0000 From: Paolo Carlini X-Patchwork-Id: 189512 Message-Id: <506EF67A.20009@oracle.com> To: "gcc-patches@gcc.gnu.org" Hi, I'm adding the testcase and closing the PR. Tested x86_64-linux. Thanks, Paolo. ///////////////////////// 2012-10-05 Paolo Carlini PR c++/50893 * g++.dg/cpp0x/defaulted38.C: New. Index: g++.dg/cpp0x/defaulted38.C =================================================================== --- g++.dg/cpp0x/defaulted38.C (revision 0) +++ g++.dg/cpp0x/defaulted38.C (working copy) @@ -0,0 +1,14 @@ +// PR c++/50893 +// { dg-do compile { target c++11 } } + +class Base +{ + public: + virtual ~Base() = default; +}; + +class Derived : public Base +{ + public: + virtual ~Derived() = default; +};