stdarg1.C: Make sure arg "3" is passed as a long, and not an int.
authorDJ Delorie <dj@redhat.com>
Sat, 10 May 2003 01:07:38 +0000 (21:07 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Sat, 10 May 2003 01:07:38 +0000 (21:07 -0400)
* g++.dg/other/stdarg1.C: Make sure arg "3" is passed as a
long, and not an int.

From-SVN: r66653

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/stdarg1.C

index bfddd4d7b44889eeb4c9abef408bfa087401fddb..dd0c8c841c8b3d819955b6429d59e5fafdc38054 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-09  DJ Delorie  <dj@redhat.com>
+
+       * g++.dg/other/stdarg1.C: Make sure arg "3" is passed as a
+       long, and not an int.
+
 2003-05-09  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        PR c++/10555, c++/10576
index 3b7718bd2296159aa54aebb44f03b50d09a63a4e..e005199d37a67f2bf8eae075b87faca77ebc9fe0 100644 (file)
@@ -21,6 +21,6 @@ void foo (long p1, long, long p2, ...)
 
 int main ()
 {
-  foo (0, 1, 2, 3);
+  foo (0, 1, 2, (long)3);
   return 0;
 }