crash3.C: Use __SIZE_TYPE__ instead of setting the type of size_t by hand.

2004-06-19  Andrew Pinski  <pinskia@physics.uc.edu>

        * g++.dg/lookup/crash3.C: Use __SIZE_TYPE__
        instead of setting the type of size_t by
        hand.

From-SVN: r83387
This commit is contained in:
Andrew Pinski 2004-06-19 16:33:50 +00:00 committed by Andrew Pinski
parent f44703b575
commit bb60c95fac
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2004-06-19 Andrew Pinski <pinskia@physics.uc.edu>
* g++.dg/lookup/crash3.C: Use __SIZE_TYPE__
instead of setting the type of size_t by
hand.
2004-06-18 Roger Sayle <roger@eyesopen.com>
* gcc.dg/unordered-2.c: New test case.

View File

@ -2,7 +2,7 @@
// Contributed by Wolfgang Wieser <wwieser at gmx dot de>
// PR c++/15967: ICE with ambiguous operator new
typedef unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
struct A { void *operator new(size_t s){} }; // { dg-error "operator new" }
struct B { void *operator new(size_t s){} }; // { dg-error "operator new" }