This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] fix g++.dg/lookup/crash3.C's (non) usage of __SIZE_TYPE__


When g++.dg/lookup/crash3.C was comitted, Giovanni had forgot that size_t
is different between targets so this patch fixes that assumention and
uses __SIZE_TYPE__ instead.

Thanks,
Andrew Pinski

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.


Index: testsuite/g++.dg/lookup/crash3.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/lookup/crash3.C,v
retrieving revision 1.1
diff -u -p -r1.1 crash3.C
--- testsuite/g++.dg/lookup/crash3.C    15 Jun 2004 01:46:21 -0000      1.1
+++ testsuite/g++.dg/lookup/crash3.C    19 Jun 2004 16:32:07 -0000
@@ -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" }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]