re PR testsuite/29007 (FAIL: gcc.dg/long-long-cst1.c execution test)
2006-09-10 Andrew Pinski <pinskia@physics.uc.edu> PR testsuite/29007 * gcc.dg/long-long-cst1.c (t): Add cast to __SIZE_TYPE__ before casting to int. (main): Return 0 on success. From-SVN: r116832
This commit is contained in:
parent
748dc0c9c2
commit
96f2fafeee
@ -1,3 +1,10 @@
|
|||||||
|
2006-09-10 Andrew Pinski <pinskia@physics.uc.edu>
|
||||||
|
|
||||||
|
PR testsuite/29007
|
||||||
|
* gcc.dg/long-long-cst1.c (t): Add cast to
|
||||||
|
__SIZE_TYPE__ before casting to int.
|
||||||
|
(main): Return 0 on success.
|
||||||
|
|
||||||
2006-09-10 Eric Botcazou <ebotcazou@libertysurf.fr>
|
2006-09-10 Eric Botcazou <ebotcazou@libertysurf.fr>
|
||||||
|
|
||||||
* gcc.c-torture/execute/20060910-1.c: New test.
|
* gcc.c-torture/execute/20060910-1.c: New test.
|
||||||
|
@ -7,11 +7,12 @@ extern void abort();
|
|||||||
struct st{
|
struct st{
|
||||||
int _mark;
|
int _mark;
|
||||||
};
|
};
|
||||||
unsigned long long t = ((int)&(((struct st*)16)->_mark) - 32);
|
unsigned long long t = ((int)(__SIZE_TYPE__)&(((struct st*)16)->_mark) - 32);
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
if (t != (unsigned long long)(int)-16)
|
if (t != (unsigned long long)(int)-16)
|
||||||
abort ();
|
abort ();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user