OSDN Git Service

* g++.old-deja/g++.other/delete6.C: Use size_t with operator new.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Sep 1999 17:41:45 +0000 (17:41 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Sep 1999 17:41:45 +0000 (17:41 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29237 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/delete6.C

index c8844e5..3e63754 100644 (file)
@@ -1,3 +1,7 @@
+Thu Sep  9 10:40:36 1999  Richard Henderson  <rth@cygnus.com>
+
+       * g++.old-deja/g++.other/delete6.C: Use size_t with operator new.
+
 Thu Sep  9 12:32:57 BST 1999  Nathan Sidwell  <nathan@acm.org>
 
        * g++.old-deja/g++.other/lookup11.C: New test.
index f1777a6..486996b 100644 (file)
@@ -1,12 +1,14 @@
 // Origin: Alexander Schiemann (aschiem@count.math.uni-sb.de)
 
+typedef __SIZE_TYPE__ size_t;
+
 int i;
 
 struct B{};
 
 struct A{
 
-  static void* operator new(unsigned int)
+  static void* operator new(size_t)
   {return &i;}
 
   inline static void operator delete(void*p); 
@@ -23,5 +25,3 @@ inline void A::operator delete(void*p)
 int main()
 {A *ap=new A;
 delete ap;}
-
-