array1.C (array): Use __SIZE_TYPE__ cast instead of assuming 0ul.

2009-05-27  Kai TIetz  <kai.tietz@onevision.com>

        * g++.old-deja/g++.brendan/array1.C (array): Use __SIZE_TYPE__
        cast instead of assuming 0ul.
        * g++.old-deja/g++.brendan/crash64.C (size_t): Define it via
        __SIZE_TYPE__.
        (_type_desc): Make first argument const.
        * g++.old-deja/g++.jason/new3.C (dg-options): Add -Wno-long-long.

From-SVN: r147897
This commit is contained in:
Kai Tietz 2009-05-27 08:37:45 +02:00 committed by Kai Tietz
parent e4995489fb
commit a9d74213ce
4 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,12 @@
2009-05-27 Kai TIetz <kai.tietz@onevision.com>
* g++.old-deja/g++.brendan/array1.C (array): Use __SIZE_TYPE__
cast instead of assuming 0ul.
* g++.old-deja/g++.brendan/crash64.C (size_t): Define it via
__SIZE_TYPE__.
(_type_desc): Make first argument const.
* g++.old-deja/g++.jason/new3.C (dg-options): Add -Wno-long-long.
2009-05-25 Jason Merrill <jason@redhat.com>
PR c++/38064

View File

@ -3,5 +3,5 @@
// GROUPS passed array-bindings
extern "C" int printf (const char *, ...);
char array[~(~0ul>>1)|~(0ul>>3)]; // { dg-error "" } overflow in array dimension.*
char array[~(~((__SIZE_TYPE__)0ul)>>1)|~(((__SIZE_TYPE__)0ul)>>3)]; // { dg-error "" } overflow in array dimension.*
int main () { printf ("PASS\n"); return 0; }

View File

@ -1,6 +1,6 @@
// { dg-do assemble }
// GROUPS passed old-abort
typedef long unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
typedef void (*RF_Ptr)(void *);
struct _im_pers_mem_spec {
@ -9,7 +9,7 @@ struct _im_pers_mem_spec {
};
struct _type_desc {
_type_desc(char *, int , RF_Ptr , int , int ,...);
_type_desc(const char *, int , RF_Ptr , int , int ,...);
};
struct metatype { int base_list; };

View File

@ -1,5 +1,5 @@
// { dg-do run }
// { dg-options "-fcheck-new -pedantic" }
// { dg-options "-fcheck-new -pedantic -Wno-long-long" }
// PRMS Id: 6037
extern "C" void * malloc (__SIZE_TYPE__);