new2.C: Use first operand of type __SIZE_TYPE__ for operator new.

* g++.dg/lookup/new2.C: Use first operand of type __SIZE_TYPE__
	for operator new.

From-SVN: r84640
This commit is contained in:
Ulrich Weigand 2004-07-13 20:46:01 +00:00 committed by Ulrich Weigand
parent 2aaf3dd5b4
commit a65ab52456
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2004-07-15 Ulrich Weigand <uweigand@de.ibm.com>
* g++.dg/lookup/new2.C: Use first operand of type __SIZE_TYPE__
for operator new.
2004-07-13 David Billinghurst (David.Billinghurst@riotinto.com)
* gfortran.dg/g77/README: New file

View File

@ -3,9 +3,9 @@
// declared as static.
namespace A {
void* operator new(unsigned s, int* p); // { dg-error "namespace" }
void operator delete(void*); // { dg-error "namespace" }
void* operator new(__SIZE_TYPE__ s, int* p); // { dg-error "namespace" }
void operator delete(void*); // { dg-error "namespace" }
}
static void* operator new(unsigned s, int* p); // { dg-error "static" }
static void operator delete(void*); // { dg-error "static" }
static void* operator new(__SIZE_TYPE__ s, int* p); // { dg-error "static" }
static void operator delete(void*); // { dg-error "static" }