stdarg-2.c (main): Make sure long constants have the L suffix.
authorDJ Delorie <dj@redhat.com>
Tue, 23 Aug 2005 20:58:13 +0000 (16:58 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Tue, 23 Aug 2005 20:58:13 +0000 (16:58 -0400)
* gcc.c-torture/execute/stdarg-2.c (main): Make sure long
constants have the L suffix.

From-SVN: r103412

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/stdarg-2.c

index b37317b..da7441d 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-23  DJ Delorie  <dj@redhat.com>
+
+       * gcc.c-torture/execute/stdarg-2.c (main): Make sure long
+       constants have the L suffix.
+
 2005-08-23  Nathan Sidwell  <nathan@codesourcery.com>
 
        PR c++/23044
index 3d32ec8..40246f9 100644 (file)
@@ -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)