This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix execute/20011219-1.c
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 23 Dec 2001 19:39:23 -0800
- Subject: fix execute/20011219-1.c
"i" was being accessed as a long, which naturally fails
when sizeof(int) != sizeof(long).
r~
* gcc.c-torture/execute/20011219-1.c (main): Make "i" a long.
Index: gcc.c-torture/execute/20011219-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/20011219-1.c,v
retrieving revision 1.1
diff -c -p -d -u -r1.1 20011219-1.c
--- 20011219-1.c 2001/12/20 08:23:42 1.1
+++ 20011219-1.c 2001/12/24 03:35:37
@@ -42,7 +42,7 @@ foo (enum X x, const void *y)
int
main ()
{
- int i = 24;
+ long i = 24;
if (foo (N, &i) != 24)
abort ();
exit (0);