The test FAIL everywhere where size_t is not unsigned long. Fixed by
using __SIZE_TYPE__ instead.
2020-04-08 Jakub Jelinek <jakub@redhat.com>
PR c++/94314
* g++.dg/pr94314.C (A::operator new, B::operator new, C::operator new):
Use __SIZE_TYPE__ instead of unsigned long.
* g++.dg/pr94314-3.C (base::operator new, B::operator new): Likewise.
2020-04-08 Jakub Jelinek <jakub@redhat.com>
+ PR c++/94314
+ * g++.dg/pr94314.C (A::operator new, B::operator new, C::operator new):
+ Use __SIZE_TYPE__ instead of unsigned long.
+ * g++.dg/pr94314-3.C (base::operator new, B::operator new): Likewise.
+
PR middle-end/94120
PR testsuite/94533
* g++.dg/declare-pr94120.C: Move test to ...
struct base
{
__attribute__ ((malloc, noinline)) static void *
- operator new (unsigned long sz)
+ operator new (__SIZE_TYPE__ sz)
{
return ::operator new (sz);
}
struct B : base
{
- static void *operator new (unsigned long sz)
+ static void *operator new (__SIZE_TYPE__ sz)
{
int c = count[idx];
count[idx] = c + 1;
struct A
{
__attribute__((malloc,noinline))
- static void* operator new(unsigned long sz)
+ static void* operator new(__SIZE_TYPE__ sz)
{
++count;
return ::operator new(sz);
struct B
{
__attribute__((malloc,noinline))
- static void* operator new(unsigned long sz)
+ static void* operator new(__SIZE_TYPE__ sz)
{
++count;
return ::operator new(sz);
struct C
{
- static void* operator new(unsigned long sz)
+ static void* operator new(__SIZE_TYPE__ sz)
{
++count;
return ::operator new(sz);