diff options
Diffstat (limited to 'libstdc++-v3/testsuite/tr1/6_containers/array/capacity/size.cc')
-rw-r--r-- | libstdc++-v3/testsuite/tr1/6_containers/array/capacity/size.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/capacity/size.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/capacity/size.cc index bb04ab151a0..748fb8d2cfb 100644 --- a/libstdc++-v3/testsuite/tr1/6_containers/array/capacity/size.cc +++ b/libstdc++-v3/testsuite/tr1/6_containers/array/capacity/size.cc @@ -1,6 +1,6 @@ // 2004-10-20 Benjamin Kosnik <bkoz@redhat.com> // -// Copyright (C) 2004 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007, 2008 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 @@ -30,8 +30,8 @@ test01() const size_t len = 5; typedef std::tr1::array<int, len> array_type; bool test __attribute__((unused)) = true; - array_type a = { 0, 1, 2, 3, 4 }; - + array_type a = { { 0, 1, 2, 3, 4 } }; + VERIFY( a.size() == len ); } @@ -40,7 +40,7 @@ test01() typedef std::tr1::array<int, len> array_type; bool test __attribute__((unused)) = true; array_type a; - + VERIFY( a.size() == len ); } } |