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]

g++.dg/other/stdarg1.C: int vs long


This test case fails when sizeof(int) != sizeof(long).

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.

Index: g++.dg/other/stdarg1.C
===================================================================
RCS file: /cvs/uberbaum/gcc/testsuite/g++.dg/other/stdarg1.C,v
retrieving revision 1.1
diff -p -2 -r1.1  g++.dg/other/stdarg1.C
*** g++.dg/other/stdarg1.C	4 Dec 2001 09:29:54 -0000	1.1
--- g++.dg/other/stdarg1.C	9 May 2003 23:50:17 -0000
*************** void foo (long p1, long, long p2, ...)
*** 22,26 ****
  int main ()
  {
!   foo (0, 1, 2, 3);
    return 0;
  }
--- 22,26 ----
  int main ()
  {
!   foo (0, 1, 2, (long)3);
    return 0;
  }


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