Patchwork [C++,testcase] PR 50893

login
register
mail settings
Submitter Paolo Carlini
Date Oct. 5, 2012, 3:02 p.m.
Message ID <506EF67A.20009@oracle.com>
Download mbox | patch
Permalink /patch/189512/
State New
Headers show

Comments

Paolo Carlini - Oct. 5, 2012, 3:02 p.m.
Hi,

I'm adding the testcase and closing the PR. Tested x86_64-linux.

Thanks,
Paolo.

/////////////////////////
2012-10-05  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50893
	* g++.dg/cpp0x/defaulted38.C: New.

Patch

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;
+};