From a65ab5245668b0e3239f18f4361faa07177a3d3c Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Tue, 13 Jul 2004 20:46:01 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/lookup/new2.C | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c267bcfc468..1089cdf1c84 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-07-15 Ulrich Weigand + + * 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 diff --git a/gcc/testsuite/g++.dg/lookup/new2.C b/gcc/testsuite/g++.dg/lookup/new2.C index ac161a5f339..d468182c18b 100644 --- a/gcc/testsuite/g++.dg/lookup/new2.C +++ b/gcc/testsuite/g++.dg/lookup/new2.C @@ -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" }