This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]