[C++,testcase] PR 50893

Submitted by Paolo Carlini on Oct. 5, 2012, 3:02 p.m.

Details

Message ID 506EF67A.20009@oracle.com
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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