]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
max_size.cc: Actually do test max_size().
authorPaolo Carlini <pcarlini@suse.de>
Mon, 30 Oct 2006 18:59:00 +0000 (18:59 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 30 Oct 2006 18:59:00 +0000 (18:59 +0000)
2006-10-30  Paolo Carlini  <pcarlini@suse.de>

* testsuite/tr1/6_containers/array/capacity/max_size.cc: Actually
do test max_size().

From-SVN: r118194

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/tr1/6_containers/array/capacity/max_size.cc

index 9274108fdccef63b569e3e48eaf766a7f2afe0ee..d766ecf272a0e9de132ac615697ff38662f08fc6 100644 (file)
@@ -1,3 +1,8 @@
+2006-10-30  Paolo Carlini  <pcarlini@suse.de>
+
+       * testsuite/tr1/6_containers/array/capacity/max_size.cc: Actually
+       do test max_size().
+
 2006-10-30  Joseph Myers  <joseph@codesourcery.com>
 
        * testsuite/config/default.exp (${tool}_target_compile): Use
index bb04ab151a086e56ac83c6f152e8ae3fa4f88b2c..22e0c7b503a77321882dffbed6f76036cedbf17e 100644 (file)
@@ -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 @@ test01()
     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 @@ test01()
     bool test __attribute__((unused)) = true;
     array_type a;
     
-    VERIFY( a.size() == len );
+    VERIFY( a.max_size() == len );
   }
 }
 
@@ -50,4 +50,3 @@ int main()
   test01();
   return 0;
 }
-