This is the mail archive of the gcc@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]

Re: gcc.c-torture/execute/stdarg-2.c: long vs int


> This certainly wasn't my intention, please change it to 79L.

How's this?  It passes both m32c and x86-64.

2005-08-23  DJ Delorie  <dj@redhat.com>

	* gcc.c-torture/execute/stdarg-2.c (main): Make sure long
	constants have the L suffix.

Index: gcc.c-torture/execute/stdarg-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/stdarg-2.c,v
retrieving revision 1.2
diff -p -U3 -r1.2 stdarg-2.c
--- gcc.c-torture/execute/stdarg-2.c	3 Nov 2004 21:53:39 -0000	1.2
+++ gcc.c-torture/execute/stdarg-2.c	23 Aug 2005 18:27:57 -0000
@@ -143,8 +143,8 @@ f12 (int i, ...)
 int
 main (void)
 {
-  f1 (1, 79);
-  if (x != 79)
+  f1 (1, 79L);
+  if (x != 79L)
     abort ();
   f2 (0x4002, 13, -14.0);
   if (bar_arg != 0x4002)


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