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]

[v3] Obvious fix to a tr1::array testcase


Hi,

tested x86-linux, committed mainline, 4_2, 4_1.

Paolo.

////////////////
2006-10-30  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/tr1/6_containers/array/capacity/max_size.cc: Actually
	do test max_size().
Index: testsuite/tr1/6_containers/array/capacity/max_size.cc
===================================================================
--- testsuite/tr1/6_containers/array/capacity/max_size.cc	(revision 118160)
+++ testsuite/tr1/6_containers/array/capacity/max_size.cc	(working copy)
@@ -1,6 +1,6 @@
 // 2004-10-20  Benjamin Kosnik  <bkoz@redhat.com>
 //
-// Copyright (C) 2004 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -32,7 +32,7 @@
     bool test __attribute__((unused)) = true;
     array_type a = { 0, 1, 2, 3, 4 };
     
-    VERIFY( a.size() == len );
+    VERIFY( a.max_size() == len );
   }
 
   {
@@ -41,7 +41,7 @@
     bool test __attribute__((unused)) = true;
     array_type a;
     
-    VERIFY( a.size() == len );
+    VERIFY( a.max_size() == len );
   }
 }
 
@@ -50,4 +50,3 @@
   test01();
   return 0;
 }
-

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