From d94a7ab41897e110ad1e02379f2a6aaedb88a66f Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Thu, 22 Sep 2016 12:57:19 +0000 Subject: [PATCH] pr77550.C: Use __SIZE_TYPE__. 2016-09-22 Bernd Edlinger * g++.dg/pr77550.C: Use __SIZE_TYPE__. From-SVN: r240355 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/pr77550.C | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 82a867630e4..8adecc03c63 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-09-22 Bernd Edlinger + + * g++.dg/pr77550.C: Use __SIZE_TYPE__. + 2016-09-22 Martin Liska PR ipa/77653 diff --git a/gcc/testsuite/g++.dg/pr77550.C b/gcc/testsuite/g++.dg/pr77550.C index d13241abb52..4035674daaa 100644 --- a/gcc/testsuite/g++.dg/pr77550.C +++ b/gcc/testsuite/g++.dg/pr77550.C @@ -36,7 +36,7 @@ struct B { template using __ptr_rebind = B; template _Tp max(_Tp p1, _Tp) { return p1; } } -void *operator new(unsigned long, void *p2) { return p2; } +void *operator new(__SIZE_TYPE__, void *p2) { return p2; } template struct C { typedef _Tp *pointer; pointer allocate(int p1) { @@ -47,7 +47,7 @@ template struct C { namespace std { template using __allocator_base = C<_Tp>; template struct allocator : __allocator_base<_Tp> { - typedef unsigned long size_type; + typedef __SIZE_TYPE__ size_type; template struct rebind { typedef allocator<_Tp1> other; }; }; struct D { -- 2.30.2