diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/new.C | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.law/operators27.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.mike/p755.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/delete3.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/new.C | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/new.C b/gcc/testsuite/g++.old-deja/g++.jason/new.C index d5260ce..905739b 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/new.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/new.C @@ -3,10 +3,10 @@ #include <new> extern "C" int printf (const char *, ...); -extern "C" void *malloc (size_t); -size_t s; +extern "C" void *malloc (std::size_t); +std::size_t s; -void * operator new (size_t siz) throw (std::bad_alloc) { +void * operator new (std::size_t siz) throw (std::bad_alloc) { if (s == 0) s = siz; else diff --git a/gcc/testsuite/g++.old-deja/g++.law/operators27.C b/gcc/testsuite/g++.old-deja/g++.law/operators27.C index c284a2a..5fb3a74 100644 --- a/gcc/testsuite/g++.old-deja/g++.law/operators27.C +++ b/gcc/testsuite/g++.old-deja/g++.law/operators27.C @@ -12,7 +12,7 @@ int FLAG=0; extern "C" int printf( const char *, ...); -void * operator new(size_t, const std::nothrow_t&) throw() { FLAG=1; return 0; } +void * operator new(std::size_t, const std::nothrow_t&) throw() { FLAG=1; return 0; } class K { private: diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p755.C b/gcc/testsuite/g++.old-deja/g++.mike/p755.C index bf4302b..28eeefa 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/p755.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/p755.C @@ -6,7 +6,7 @@ extern "C" void _exit(int); -void* operator new(size_t sz) throw (std::bad_alloc) { +void* operator new(std::size_t sz) throw (std::bad_alloc) { void* p = 0; _exit(0); return p; diff --git a/gcc/testsuite/g++.old-deja/g++.other/delete3.C b/gcc/testsuite/g++.old-deja/g++.other/delete3.C index 469d638..9c6c58e 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/delete3.C +++ b/gcc/testsuite/g++.old-deja/g++.other/delete3.C @@ -16,7 +16,7 @@ map<T, U>::~map () struct SomeClass { }; -void* operator new(size_t numBytes, SomeClass&, const std::nothrow_t&) throw() +void* operator new(std::size_t numBytes, SomeClass&, const std::nothrow_t&) throw() { return operator new(numBytes, std::nothrow); } diff --git a/gcc/testsuite/g++.old-deja/g++.other/new.C b/gcc/testsuite/g++.old-deja/g++.other/new.C index c3d77c6..3c3494e 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/new.C +++ b/gcc/testsuite/g++.old-deja/g++.other/new.C @@ -3,12 +3,12 @@ #include <new> inline void * -operator new(size_t alloc_sz, const char *fname, unsigned lineno) +operator new(std::size_t alloc_sz, const char *fname, unsigned lineno) { return ::operator new (alloc_sz); } inline void * -operator new[](size_t alloc_sz, const char *fname, unsigned lineno) +operator new[](std::size_t alloc_sz, const char *fname, unsigned lineno) { return ::operator new[] (alloc_sz); } |