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]

Re: bug fix for g++.old-deja/g++.brendan/new2.C


> Please do change the test to use sizeof.

Ok, I've checked this in:

Wed Feb 14 21:41:17 2001  J"orn Rennecke <amylaar@redhat.com>

	* g++.old-deja/g++.brendan/new2.C (main): Use sizeof.

Index: g++.old-deja/g++.brendan/new2.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.brendan/new2.C,v
retrieving revision 1.4
diff -p -r1.4 new2.C
*** new2.C	2000/08/22 18:16:12	1.4
--- new2.C	2001/02/14 21:41:12
*************** int main ()
*** 35,43 ****
  	base*		base_ptr;
  	derived*	derived_ptr;
  
! 	expected_size = 4;
  	base_ptr = new base;
! 	expected_size = 8;
  	derived_ptr = new derived ();
  
  	if ((new_call_count != 2) || (errors != 0))
--- 35,43 ----
  	base*		base_ptr;
  	derived*	derived_ptr;
  
! 	expected_size = sizeof (int);
  	base_ptr = new base;
! 	expected_size = 2 * sizeof (int);
  	derived_ptr = new derived ();
  
  	if ((new_call_count != 2) || (errors != 0))


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