]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR testsuite/29007 (FAIL: gcc.dg/long-long-cst1.c execution test)
authorAndrew Pinski <pinskia@physics.uc.edu>
Sun, 10 Sep 2006 23:15:31 +0000 (23:15 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 10 Sep 2006 23:15:31 +0000 (16:15 -0700)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/long-long-cst1.c

index 45bd6ed94b21635e9c519194aa2ba92746068300..ebddaa604a028f22fa12c3180a35aa64266581b5 100644 (file)
@@ -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.
index 7c120dc14c98c32bb2f6ab4e077ce5fb43af4ace..7c60648d281c8d4439fc1bc3f1368d50b46d4a6e 100644 (file)
@@ -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;
 }