From: Alan Modra Date: Wed, 7 Jan 2004 12:40:42 +0000 (+0000) Subject: * gcc.dg/winline-7.c: Don't cast void * to int. X-Git-Tag: releases/gcc-3.4.0~1226 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b48a0c1869fe5fe1508efa31f80dd11f0d3fdef0;p=thirdparty%2Fgcc.git * gcc.dg/winline-7.c: Don't cast void * to int. From-SVN: r75503 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ca55ce96ce0d..f57a82686523 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-01-07 Alan Modra + + * gcc.dg/winline-7.c: Don't cast void * to int. + 2004-01-06 Jan Hubicka * gcc.dg/i386-sse-5.c: New test diff --git a/gcc/testsuite/gcc.dg/winline-7.c b/gcc/testsuite/gcc.dg/winline-7.c index 03b951763dc6..634016d2ecf6 100644 --- a/gcc/testsuite/gcc.dg/winline-7.c +++ b/gcc/testsuite/gcc.dg/winline-7.c @@ -2,11 +2,11 @@ /* { dg-options "-Winline -O2" } */ void big (void); -inline int q(void) +inline void *q (void) { /* { dg-warning "(function not inlinable|alloca)" } */ - return (int)alloca(10); + return alloca (10); } -inline int t (void) +inline void *t (void) { return q (); /* { dg-warning "called from here" } */ }