diff options
| author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-10 23:15:31 +0000 |
|---|---|---|
| committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-10 23:15:31 +0000 |
| commit | 86c5132b81be3d0b7cfcda0e9afa5cd8cefd6bfc (patch) | |
| tree | 05b01bfd1188eec751dd157ce6edd3fe151a3bbe | |
| parent | d0e3a920c3c1d8285bcf6e3a8aae58b41f0b8af0 (diff) | |
| download | ppe42-gcc-86c5132b81be3d0b7cfcda0e9afa5cd8cefd6bfc.tar.gz ppe42-gcc-86c5132b81be3d0b7cfcda0e9afa5cd8cefd6bfc.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116832 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.dg/long-long-cst1.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 45bd6ed94b2..ebddaa604a0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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> * gcc.c-torture/execute/20060910-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/long-long-cst1.c b/gcc/testsuite/gcc.dg/long-long-cst1.c index 7c120dc14c9..7c60648d281 100644 --- a/gcc/testsuite/gcc.dg/long-long-cst1.c +++ b/gcc/testsuite/gcc.dg/long-long-cst1.c @@ -7,11 +7,12 @@ extern void abort(); struct st{ 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() { if (t != (unsigned long long)(int)-16) abort (); + return 0; } |

