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 b37317b4e51cea5891baaed3e6c12fe461dc77db..da7441dc04ce4c565fc766c46b1a5f41393554af 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 3d32ec8b422f4168664255a757c257236911a566..40246f937efe6a99119d0e8ffb631ffa08002e79 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)