This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Testcases for PR c++/19299 and PR c++/19440


The following patch adds testcases for PR c++/19299 and PR c++/19440.
Both problems were fixed by a patch from Mark.

Regtested and committed to mainline as obvious.

Regards,
Volker


2005-02-19  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>

	PR c++/19299
	* g++.dg/inherit/volatile1.C: New test.

	PR c++/19440
	* g++.dg/template/dtor4.C: New test.


=========================================================================
--- gcc/gcc/testsuite/g++.dg/inherit/volatile1.C	1970-01-01 01:00:00.000000000 +0100
+++ gcc/gcc/testsuite/g++.dg/inherit/volatile1.C	2005-02-19 17:44:07.000000000 +0100
@@ -0,0 +1,14 @@
+// PR c++/19299
+// Origin: Andrew Pinski <pinskia@gcc.gnu.org>
+
+// { dg-do compile }
+
+struct V
+{
+  virtual void foo() = 0;
+};
+
+void bar(V volatile* p)
+{
+  p->V::~V();
+}
=========================================================================
--- gcc/gcc/testsuite/g++.dg/template/dtor4.C	1970-01-01 01:00:00.000000000 +0100
+++ gcc/gcc/testsuite/g++.dg/template/dtor4.C	2005-02-19 17:51:28.000000000 +0100
@@ -0,0 +1,9 @@
+// PR c++/19440
+// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+// { dg-do compile }
+
+template<int> struct A
+{
+  ~A<0>(); // { dg-error "declaration" }
+};
=========================================================================



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]