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]

Testcase for fixed c++/88


And another.

Neil.

	* g++.dg/parse/parse4.C: New test.

Index: g++.dg/parse/parse4.C
===================================================================
RCS file: g++.dg/parse/parse4.C
diff -N g++.dg/parse/parse4.C
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ g++.dg/parse/parse4.C	1 Jan 2003 00:49:04 -0000
@@ -0,0 +1,25 @@
+/* PR c++/88 */
+/* { dg-do compile } */
+
+class Hvec
+{
+public:
+  Hvec(double x, double y, double z);
+  ~Hvec();
+};
+
+
+class Camera1
+{
+public:
+  Camera1(const Hvec &basepos=Hvec(0.0,0.0,0.0));
+  ~Camera1();
+};
+
+class Camera2
+{
+public:
+  Camera2(const Hvec &basepos);
+  inline Camera2() { Camera2(Hvec(0.0,0.0,0.0)); };
+  ~Camera2();
+};


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