testsuite: Fix up new51.C test on various targets [PR108533]
authorJakub Jelinek <jakub@redhat.com>
Tue, 24 Jan 2023 23:12:46 +0000 (00:12 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 24 Jan 2023 23:12:46 +0000 (00:12 +0100)
commitaba6416e95ab4138a0ecab0fd51e7e9329d74a45
treeccc2a45ad6b7a279ff3063773f90c9410a028c75
parentf235d695729cc745cf15a00fb8b2cfaded80fd1e
testsuite: Fix up new51.C test on various targets [PR108533]

The test fails on targets where size_t is not unsigned long
due to extra diagnostics.

As the testcase is tested in C++98 too, I'm not using decltype (sizeof 0)
but __SIZE_TYPE__.

2023-01-25  Jakub Jelinek  <jakub@redhat.com>

PR c++/107329
PR testsuite/108533
* g++.dg/init/new51.C (size_t): New typedef.
(RexxClass::operator new, RexxClass::operator delete): Use size_t
instead of unsigned long.
gcc/testsuite/g++.dg/init/new51.C