Commit d94a7ab4 by Bernd Edlinger Committed by Bernd Edlinger

pr77550.C: Use __SIZE_TYPE__.

2016-09-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * g++.dg/pr77550.C: Use __SIZE_TYPE__.

From-SVN: r240355
parent a13f439f
2016-09-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
* g++.dg/pr77550.C: Use __SIZE_TYPE__.
2016-09-22 Martin Liska <mliska@suse.cz> 2016-09-22 Martin Liska <mliska@suse.cz>
PR ipa/77653 PR ipa/77653
......
...@@ -36,7 +36,7 @@ struct B { ...@@ -36,7 +36,7 @@ struct B {
template <typename, typename> using __ptr_rebind = B; template <typename, typename> using __ptr_rebind = B;
template <typename _Tp> _Tp max(_Tp p1, _Tp) { return p1; } template <typename _Tp> _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 <typename _Tp> struct C { template <typename _Tp> struct C {
typedef _Tp *pointer; typedef _Tp *pointer;
pointer allocate(int p1) { pointer allocate(int p1) {
...@@ -47,7 +47,7 @@ template <typename _Tp> struct C { ...@@ -47,7 +47,7 @@ template <typename _Tp> struct C {
namespace std { namespace std {
template <typename _Tp> using __allocator_base = C<_Tp>; template <typename _Tp> using __allocator_base = C<_Tp>;
template <typename _Tp> struct allocator : __allocator_base<_Tp> { template <typename _Tp> struct allocator : __allocator_base<_Tp> {
typedef unsigned long size_type; typedef __SIZE_TYPE__ size_type;
template <typename _Tp1> struct rebind { typedef allocator<_Tp1> other; }; template <typename _Tp1> struct rebind { typedef allocator<_Tp1> other; };
}; };
struct D { struct D {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment