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]

alpha c++ testsuite corrections


Four tests fail because `unsigned int' was used where size_t is
required by the language.  Namely, as the first operand to new.


r~

	* g++.other/new.C (size_t): Use __SIZE_TYPE__
	* g++.other/new2.C, g++.robertl/eb2.C: Likewise.
	* g++.robertl/eb15.C (op new): Use size_t.

Index: g++.other/new.C
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.other/new.C,v
retrieving revision 1.1
diff -u -p -r1.1 new.C
--- new.C	1998/05/11 00:07:25	1.1
+++ new.C	1998/08/05 15:32:33
@@ -1,6 +1,6 @@
 // Build don't link:
 
-typedef unsigned int size_t;
+typedef __SIZE_TYPE__ size_t;
 inline void *
 operator new(size_t alloc_sz, const char *fname, unsigned lineno)
 {
Index: g++.other/new2.C
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.other/new2.C,v
retrieving revision 1.2
diff -u -p -r1.2 new2.C
--- new2.C	1998/06/05 02:30:27	1.2
+++ new2.C	1998/08/05 15:32:33
@@ -1,5 +1,5 @@
 //Build don't link:
-typedef unsigned int size_t;
+typedef __SIZE_TYPE__ size_t;
 void *operator new(size_t, unsigned int);
 
 struct X{
Index: g++.robertl/eb15.C
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb15.C,v
retrieving revision 1.1
diff -u -p -r1.1 eb15.C
--- eb15.C	1998/05/27 23:00:35	1.1
+++ eb15.C	1998/08/05 15:32:36
@@ -1,12 +1,13 @@
 // Build don't link:
 #include<iostream.h>
+#include<stddef.h>
 
 struct A {
   A() {
     cerr<<"A constructing\n";
     throw 1;
   }
-  void *operator new(unsigned sz) {
+  void *operator new(size_t sz) {
     cerr<<"A allocated\n";
     return ::operator new(sz);
   }
Index: g++.robertl/eb2.C
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb2.C,v
retrieving revision 1.1
diff -u -p -r1.1 eb2.C
--- eb2.C	1998/05/27 23:00:35	1.1
+++ eb2.C	1998/08/05 15:32:36
@@ -1,5 +1,5 @@
 // Build don't link: 
-typedef unsigned int size_t;
+typedef __SIZE_TYPE__ size_t;
 inline void *operator new(size_t, void *place) throw() { return place; }
 
 struct A


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