aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2008-01-31 17:19:55 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2008-01-31 17:19:55 +0000
commit395c9e79f07f584249100371b31071dace281999 (patch)
tree537c29a1a0f0209e93e81c9e6b223bf5688b6b61
parent1f7f6676fbf504fdc7dcfd64c70a912d37c81470 (diff)
downloadgcc-395c9e79f07f584249100371b31071dace281999.zip
gcc-395c9e79f07f584249100371b31071dace281999.tar.gz
gcc-395c9e79f07f584249100371b31071dace281999.tar.bz2
3983-2.cc: Avoid -Wall warnings.
2008-01-31 Paolo Carlini <pcarlini@suse.de> * testsuite/27_io/basic_istream/extractors_character/pod/3983-2.cc: Avoid -Wall warnings. * testsuite/22_locale/global_templates/user_facet_hierarchies.cc: Likewise. * testsuite/22_locale/global_templates/standard_facet_hierarchies.cc: Likewise. * testsuite/tr1/6_containers/hash/operators/size_t.cc: Likewise. * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: Likewise. * testsuite/tr1/6_containers/tuple/cons/constructor.cc: Likewise. * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc: Likewise. * testsuite/tr1/6_containers/array/requirements/contiguous.cc: Likewise. * testsuite/tr1/6_containers/array/requirements/member_swap.cc: Likewise. * testsuite/tr1/6_containers/array/requirements/assign.cc: Likewise. * testsuite/tr1/6_containers/array/specialized_algorithms/swap.cc: Likewise. * testsuite/tr1/6_containers/array/comparison_operators/ less_or_equal.cc: Likewise. * testsuite/tr1/6_containers/array/comparison_operators/ greater_or_equal.cc: Likewise. * testsuite/tr1/6_containers/array/comparison_operators/less.cc: Likewise. * testsuite/tr1/6_containers/array/comparison_operators/equal.cc: Likewise. * testsuite/tr1/6_containers/array/comparison_operators/not_equal.cc: Likewise. * testsuite/tr1/6_containers/array/comparison_operators/greater.cc: Likewise. * testsuite/tr1/6_containers/array/tuple_interface/get.cc: Likewise. * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc: Likewise. * testsuite/tr1/6_containers/array/element_access/back.cc: Likewise. * testsuite/tr1/6_containers/array/element_access/front.cc: Likewise. * testsuite/tr1/6_containers/array/element_access/data.cc: Likewise. * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: Likewise. * testsuite/tr1/6_containers/array/capacity/empty.cc: Likewise. * testsuite/tr1/6_containers/array/capacity/max_size.cc: Likewise. * testsuite/tr1/6_containers/array/capacity/size.cc: Likewise. * testsuite/thread/guard.cc: Likewise. * testsuite/20_util/tuple/cons/big_tuples.cc: Likewise. * testsuite/20_util/tuple/cons/constructor.cc: Likewise. * testsuite/20_util/shared_ptr/creation/dr402.cc: Likewise. * testsuite/20_util/shared_ptr/creation/make.cc: Likewise. * testsuite/20_util/shared_ptr/creation/alloc.cc: Likewise. * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise. * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Likewise. From-SVN: r131979
-rw-r--r--libstdc++-v3/ChangeLog53
-rw-r--r--libstdc++-v3/testsuite/20_util/shared_ptr/creation/alloc.cc15
-rw-r--r--libstdc++-v3/testsuite/20_util/shared_ptr/creation/dr402.cc5
-rw-r--r--libstdc++-v3/testsuite/20_util/shared_ptr/creation/make.cc8
-rw-r--r--libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc4
-rw-r--r--libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc4
-rw-r--r--libstdc++-v3/testsuite/20_util/tuple/cons/big_tuples.cc2
-rw-r--r--libstdc++-v3/testsuite/20_util/tuple/cons/constructor.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/global_templates/standard_facet_hierarchies.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/global_templates/user_facet_hierarchies.cc2
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/pod/3983-2.cc10
-rw-r--r--libstdc++-v3/testsuite/thread/guard.cc7
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/capacity/empty.cc8
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/capacity/max_size.cc8
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/capacity/size.cc8
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/equal.cc10
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/greater.cc10
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/greater_or_equal.cc10
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/less.cc10
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/less_or_equal.cc10
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/not_equal.cc10
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc6
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc4
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/element_access/back.cc6
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/element_access/data.cc6
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/element_access/front.cc6
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc4
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/requirements/assign.cc4
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/requirements/contiguous.cc4
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/requirements/member_swap.cc6
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/specialized_algorithms/swap.cc6
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/array/tuple_interface/get.cc6
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/hash/operators/size_t.cc5
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/big_tuples.cc5
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/constructor.cc5
35 files changed, 163 insertions, 110 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index d10e4f3..e64168a 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,56 @@
+2008-01-31 Paolo Carlini <pcarlini@suse.de>
+
+ * testsuite/27_io/basic_istream/extractors_character/pod/3983-2.cc:
+ Avoid -Wall warnings.
+ * testsuite/22_locale/global_templates/user_facet_hierarchies.cc:
+ Likewise.
+ * testsuite/22_locale/global_templates/standard_facet_hierarchies.cc:
+ Likewise.
+ * testsuite/tr1/6_containers/hash/operators/size_t.cc: Likewise.
+ * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: Likewise.
+ * testsuite/tr1/6_containers/tuple/cons/constructor.cc: Likewise.
+ * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
+ Likewise.
+ * testsuite/tr1/6_containers/array/requirements/contiguous.cc:
+ Likewise.
+ * testsuite/tr1/6_containers/array/requirements/member_swap.cc:
+ Likewise.
+ * testsuite/tr1/6_containers/array/requirements/assign.cc: Likewise.
+ * testsuite/tr1/6_containers/array/specialized_algorithms/swap.cc:
+ Likewise.
+ * testsuite/tr1/6_containers/array/comparison_operators/
+ less_or_equal.cc: Likewise.
+ * testsuite/tr1/6_containers/array/comparison_operators/
+ greater_or_equal.cc: Likewise.
+ * testsuite/tr1/6_containers/array/comparison_operators/less.cc:
+ Likewise.
+ * testsuite/tr1/6_containers/array/comparison_operators/equal.cc:
+ Likewise.
+ * testsuite/tr1/6_containers/array/comparison_operators/not_equal.cc:
+ Likewise.
+ * testsuite/tr1/6_containers/array/comparison_operators/greater.cc:
+ Likewise.
+ * testsuite/tr1/6_containers/array/tuple_interface/get.cc: Likewise.
+ * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
+ Likewise.
+ * testsuite/tr1/6_containers/array/element_access/back.cc: Likewise.
+ * testsuite/tr1/6_containers/array/element_access/front.cc: Likewise.
+ * testsuite/tr1/6_containers/array/element_access/data.cc: Likewise.
+ * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc:
+ Likewise.
+ * testsuite/tr1/6_containers/array/capacity/empty.cc: Likewise.
+ * testsuite/tr1/6_containers/array/capacity/max_size.cc: Likewise.
+ * testsuite/tr1/6_containers/array/capacity/size.cc: Likewise.
+ * testsuite/thread/guard.cc: Likewise.
+ * testsuite/20_util/tuple/cons/big_tuples.cc: Likewise.
+ * testsuite/20_util/tuple/cons/constructor.cc: Likewise.
+ * testsuite/20_util/shared_ptr/creation/dr402.cc: Likewise.
+ * testsuite/20_util/shared_ptr/creation/make.cc: Likewise.
+ * testsuite/20_util/shared_ptr/creation/alloc.cc: Likewise.
+ * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
+ * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc:
+ Likewise.
+
2008-01-26 David Edelsohn <edelsohn@gnu.org>
PR target/34794
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/alloc.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/alloc.cc
index cb789e0..90fce24 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/alloc.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/alloc.cc
@@ -1,6 +1,6 @@
// { dg-options "-std=gnu++0x" }
-// Copyright (C) 2007 Free Software Foundation
+// Copyright (C) 2007, 2008 Free Software Foundation
//
// 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
@@ -54,7 +54,7 @@ struct reset_count_struct
// 20.6.6.2.6 shared_ptr creation [util.smartptr.shared.create]
-int
+void
test01()
{
bool test __attribute__((unused)) = true;
@@ -68,10 +68,11 @@ test01()
VERIFY( tracker_allocator_counter::get_allocation_count() > 0 );
}
VERIFY( A::ctor_count == A::dtor_count );
- VERIFY( tracker_allocator_counter::get_allocation_count() == tracker_allocator_counter::get_deallocation_count() );
+ VERIFY( tracker_allocator_counter::get_allocation_count()
+ == tracker_allocator_counter::get_deallocation_count() );
}
-int
+void
test02()
{
bool test __attribute__((unused)) = true;
@@ -97,9 +98,8 @@ test02()
p1 = std::shared_ptr<A>();
VERIFY( A::ctor_count == A::dtor_count );
- VERIFY( tracker_allocator_counter::get_allocation_count() == tracker_allocator_counter::get_deallocation_count() );
-
- return 0;
+ VERIFY( tracker_allocator_counter::get_allocation_count()
+ == tracker_allocator_counter::get_deallocation_count() );
}
int
@@ -107,4 +107,5 @@ main()
{
test01();
test02();
+ return 0;
}
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/dr402.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/dr402.cc
index b9e6fde..b096f4f 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/dr402.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/dr402.cc
@@ -1,7 +1,7 @@
// { dg-options "-std=gnu++0x" }
// { dg-do compile }
-// Copyright (C) 2007 Free Software Foundation
+// Copyright (C) 2007, 2008 Free Software Foundation
//
// 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
@@ -33,7 +33,7 @@ struct A
// 20.6.6.2.6 shared_ptr creation [util.smartptr.shared.create]
-int
+void
test01()
{
bool test __attribute__((unused)) = true;
@@ -45,4 +45,5 @@ int
main()
{
test01();
+ return 0;
}
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/make.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/make.cc
index 2d763c1..0062083 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/creation/make.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/creation/make.cc
@@ -1,6 +1,6 @@
// { dg-options "-std=gnu++0x" }
-// Copyright (C) 2007 Free Software Foundation
+// Copyright (C) 2007, 2008 Free Software Foundation
//
// 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
@@ -49,7 +49,7 @@ struct reset_count_struct
// 20.6.6.2.6 shared_ptr creation [util.smartptr.shared.create]
-int
+void
test01()
{
bool test __attribute__((unused)) = true;
@@ -64,7 +64,7 @@ test01()
VERIFY( A::ctor_count == A::dtor_count );
}
-int
+void
test02()
{
bool test __attribute__((unused)) = true;
@@ -88,8 +88,6 @@ test02()
p1 = std::shared_ptr<A>();
VERIFY( A::ctor_count == A::dtor_count );
-
- return 0;
}
int
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc
index 31e3176..5bdd65c 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2006, 2007 Free Software Foundation
+// Copyright (C) 2006, 2007, 2008 Free Software Foundation
//
// 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
@@ -163,7 +163,7 @@ test01()
#endif
pthread_attr_t tattr;
- int ret = pthread_attr_init(&tattr);
+ pthread_attr_init(&tattr);
shared_and_weak_pools pools(obj_pool, weak_pool[0]);
pthread_create(threads, &tattr, thread_hammer_and_kill, static_cast<void*>(&pools));
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc
index 503498b..20c2da1 100644
--- a/libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc
+++ b/libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2006, 2007 Free Software Foundation
+// Copyright (C) 2006, 2007, 2008 Free Software Foundation
//
// 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
@@ -165,7 +165,7 @@ test01()
#endif
pthread_attr_t tattr;
- int ret = pthread_attr_init(&tattr);
+ pthread_attr_init(&tattr);
shared_and_weak_pools pools(obj_pool, weak_pool[0]);
pthread_create(threads, &tattr, thread_hammer_and_kill, static_cast<void*>(&pools));
diff --git a/libstdc++-v3/testsuite/20_util/tuple/cons/big_tuples.cc b/libstdc++-v3/testsuite/20_util/tuple/cons/big_tuples.cc
index 938e4cb..0c60ec9 100644
--- a/libstdc++-v3/testsuite/20_util/tuple/cons/big_tuples.cc
+++ b/libstdc++-v3/testsuite/20_util/tuple/cons/big_tuples.cc
@@ -38,7 +38,7 @@ test_constructors()
const int &z1=x1;
// Test empty constructor
- tuple<> ta;
+ tuple<> ta __attribute__((unused));
tuple<int,int> tb;
// Test construction from values
tuple<int,int> tc(x1,x2);
diff --git a/libstdc++-v3/testsuite/20_util/tuple/cons/constructor.cc b/libstdc++-v3/testsuite/20_util/tuple/cons/constructor.cc
index 8440413..105727d 100644
--- a/libstdc++-v3/testsuite/20_util/tuple/cons/constructor.cc
+++ b/libstdc++-v3/testsuite/20_util/tuple/cons/constructor.cc
@@ -1,6 +1,6 @@
// { dg-options "-std=gnu++0x" }
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -34,7 +34,7 @@ main()
const int &z1=x1;
// Test empty constructor
- tuple<> ta;
+ tuple<> ta __attribute__((unused));
tuple<int,int> tb;
// Test construction from values
tuple<int,int> tc(x1,x2);
diff --git a/libstdc++-v3/testsuite/22_locale/global_templates/standard_facet_hierarchies.cc b/libstdc++-v3/testsuite/22_locale/global_templates/standard_facet_hierarchies.cc
index fa915a5..6b157e3 100644
--- a/libstdc++-v3/testsuite/22_locale/global_templates/standard_facet_hierarchies.cc
+++ b/libstdc++-v3/testsuite/22_locale/global_templates/standard_facet_hierarchies.cc
@@ -37,8 +37,6 @@ int main()
locale loc_base = loc_c;
locale loc_derived(loc_c, new derived_facet("C"));
- bool b;
-
// Standard base facet.
VERIFY( has_facet<base_facet>(loc_c) );
VERIFY( has_facet<base_facet>(loc_base) );
diff --git a/libstdc++-v3/testsuite/22_locale/global_templates/user_facet_hierarchies.cc b/libstdc++-v3/testsuite/22_locale/global_templates/user_facet_hierarchies.cc
index 6ef4b77..94c4177 100644
--- a/libstdc++-v3/testsuite/22_locale/global_templates/user_facet_hierarchies.cc
+++ b/libstdc++-v3/testsuite/22_locale/global_templates/user_facet_hierarchies.cc
@@ -56,8 +56,6 @@ int main()
locale loc_base(loc_c, new base_facet);
locale loc_derived(loc_c, new derived_facet);
- bool b;
-
// Standard facets.
VERIFY( has_facet<std::ctype<char> >(loc_c) );
VERIFY( has_facet<std::ctype<char> >(loc_base) );
diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/pod/3983-2.cc b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/pod/3983-2.cc
index 7a979be..a5164dc 100644
--- a/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/pod/3983-2.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/pod/3983-2.cc
@@ -1,6 +1,7 @@
// 2001-06-05 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2003, 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
@@ -50,10 +51,11 @@ void test03()
bool test __attribute__((unused)) = true;
// input streams
- pod_ushort arr[6] = { value_type('a'), value_type('b'),
- value_type('c'), value_type('d'), value_type('e') };
+ pod_ushort arr[6] = { { value_type('a') }, { value_type('b') },
+ { value_type('c') }, { value_type('d') },
+ { value_type('e') } };
- try
+ try
{
iss >> arr;
}
diff --git a/libstdc++-v3/testsuite/thread/guard.cc b/libstdc++-v3/testsuite/thread/guard.cc
index 0e9e827..a509321 100644
--- a/libstdc++-v3/testsuite/thread/guard.cc
+++ b/libstdc++-v3/testsuite/thread/guard.cc
@@ -1,5 +1,5 @@
//
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -40,14 +40,13 @@ get_bar (void)
void*
do_something (void *arg)
{
- static int bar = get_bar ();
+ static int bar __attribute__((unused)) = get_bar ();
return NULL;
}
int
get_foo (void)
{
- int status;
pthread_t new_thread;
if (pthread_create (&new_thread, NULL, do_something, NULL) != 0)
@@ -62,6 +61,6 @@ get_foo (void)
int
main (int argc, char **argv)
{
- static int foo = get_foo ();
+ static int foo __attribute__((unused)) = get_foo ();
return 0;
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/capacity/empty.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/capacity/empty.cc
index 7eda922..50e7ead 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/capacity/empty.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/capacity/empty.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.empty() == false );
}
@@ -40,7 +40,7 @@ test01()
typedef std::tr1::array<int, len> array_type;
bool test __attribute__((unused)) = true;
array_type a;
-
+
VERIFY( a.empty() == true );
}
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/capacity/max_size.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/capacity/max_size.cc
index 22e0c7b..05849b8 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/capacity/max_size.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/capacity/max_size.cc
@@ -1,6 +1,6 @@
// 2004-10-20 Benjamin Kosnik <bkoz@redhat.com>
//
-// Copyright (C) 2004, 2005, 2006 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.max_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.max_size() == len );
}
}
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 bb04ab1..748fb8d 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 );
}
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/equal.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/equal.cc
index 0df99ef..971fcde 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/equal.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/equal.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
@@ -29,10 +29,10 @@ 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 b = { 0, 1, 2, 3, 4 };
- array_type c = { 0, 1, 2, 3 };
-
+ array_type a = { { 0, 1, 2, 3, 4 } };
+ array_type b = { { 0, 1, 2, 3, 4 } };
+ array_type c = { { 0, 1, 2, 3 } };
+
VERIFY( a == b );
VERIFY( !(a == c) );
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/greater.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/greater.cc
index 11a8e77..8d38e9a 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/greater.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/greater.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
@@ -29,10 +29,10 @@ 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 b = { 0, 1, 2, 3, 4 };
- array_type c = { 0, 1, 2, 3, 7 };
-
+ array_type a = { { 0, 1, 2, 3, 4 } };
+ array_type b = { { 0, 1, 2, 3, 4 } };
+ array_type c = { { 0, 1, 2, 3, 7 } };
+
VERIFY( !(a > b) );
VERIFY( c > a );
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/greater_or_equal.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/greater_or_equal.cc
index ad4e6d6..914cd2e 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/greater_or_equal.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/greater_or_equal.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
@@ -29,10 +29,10 @@ 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 b = { 0, 1, 2, 3, 4 };
- array_type c = { 0, 1, 2, 3, 7 };
-
+ array_type a = { { 0, 1, 2, 3, 4 } };
+ array_type b = { { 0, 1, 2, 3, 4 } };
+ array_type c = { { 0, 1, 2, 3, 7 } };
+
VERIFY( a >= b );
VERIFY( c >= a );
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/less.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/less.cc
index b42dc64..e6f394c 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/less.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/less.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
@@ -29,10 +29,10 @@ 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 b = { 0, 1, 2, 3, 4 };
- array_type c = { 0, 1, 2, 3, 7 };
-
+ array_type a = { { 0, 1, 2, 3, 4 } };
+ array_type b = { { 0, 1, 2, 3, 4 } };
+ array_type c = { { 0, 1, 2, 3, 7 } };
+
VERIFY( !(a < b) );
VERIFY( a < c );
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/less_or_equal.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/less_or_equal.cc
index 6b8f6ca..d74b529 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/less_or_equal.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/less_or_equal.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
@@ -29,10 +29,10 @@ 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 b = { 0, 1, 2, 3, 4 };
- array_type c = { 0, 1, 2, 3, 7 };
-
+ array_type a = { { 0, 1, 2, 3, 4 } };
+ array_type b = { { 0, 1, 2, 3, 4 } };
+ array_type c = { { 0, 1, 2, 3, 7 } };
+
VERIFY( a <= b );
VERIFY( a <= c );
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/not_equal.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/not_equal.cc
index 717fc8a..dc0ac63 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/not_equal.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/comparison_operators/not_equal.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
@@ -29,10 +29,10 @@ 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 b = { 0, 1, 2, 3, 4 };
- array_type c = { 0, 1, 2, 3 };
-
+ array_type a = { { 0, 1, 2, 3, 4 } };
+ array_type b = { { 0, 1, 2, 3, 4 } };
+ array_type c = { { 0, 1, 2, 3 } };
+
VERIFY( !(a != b) );
VERIFY( a != c );
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc
index 1c6c8ed..ca3ea5d 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc
@@ -2,7 +2,7 @@
// 2004-10-20 Benjamin Kosnik <bkoz@redhat.com>
//
-// Copyright (C) 2004, 2005 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
@@ -29,8 +29,8 @@ test01()
{
typedef std::tr1::array<int, 5> array_type;
- array_type a = { 0, 1, 2, 3, 4 };
- array_type b = { 0, 1, 2, 3 };
+ array_type a = { { 0, 1, 2, 3, 4 } };
+ array_type b = { { 0, 1, 2, 3 } };
a = b;
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc
index 10796dc..cee0e73 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc
@@ -1,6 +1,6 @@
// 2004-10-20 Benjamin Kosnik <bkoz@redhat.com>
//
-// Copyright (C) 2004, 2005, 2006 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,7 +30,7 @@ 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 } };
try
{
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/back.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/back.cc
index cc08381..9ba2f63 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/back.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/back.cc
@@ -1,6 +1,6 @@
// 2005-08-26 Paolo Carlini <pcarlini@suse.de>
//
-// Copyright (C) 2005 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -32,13 +32,13 @@ test01()
typedef std::tr1::array<int, len> array_type;
{
- array_type a = { 0, 1, 2, 3, 4 };
+ array_type a = { { 0, 1, 2, 3, 4 } };
int& ri = a.back();
VERIFY( ri == 4 );
}
{
- const array_type ca = { 4, 3, 2, 1, 0 };
+ const array_type ca = { { 4, 3, 2, 1, 0 } };
const int& cri = ca.back();
VERIFY( cri == 0 );
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/data.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/data.cc
index f6866dc..3a4efcf 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/data.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/data.cc
@@ -1,6 +1,6 @@
// 2005-08-26 Paolo Carlini <pcarlini@suse.de>
//
-// Copyright (C) 2005 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -32,13 +32,13 @@ test01()
typedef std::tr1::array<int, len> array_type;
{
- array_type a = { 0, 1, 2, 3, 4 };
+ array_type a = { { 0, 1, 2, 3, 4 } };
int* pi = a.data();
VERIFY( *pi == 0 );
}
{
- const array_type ca = { 4, 3, 2, 1, 0 };
+ const array_type ca = { { 4, 3, 2, 1, 0 } };
const int* pci = ca.data();
VERIFY( *pci == 4 );
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/front.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/front.cc
index 33c93be..493c6ed 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/front.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/front.cc
@@ -1,6 +1,6 @@
// 2005-08-26 Paolo Carlini <pcarlini@suse.de>
//
-// Copyright (C) 2005 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -32,13 +32,13 @@ test01()
typedef std::tr1::array<int, len> array_type;
{
- array_type a = { 0, 1, 2, 3, 4 };
+ array_type a = { { 0, 1, 2, 3, 4 } };
int& ri = a.front();
VERIFY( ri == 0 );
}
{
- const array_type ca = { 4, 3, 2, 1, 0 };
+ const array_type ca = { { 4, 3, 2, 1, 0 } };
const int& cri = ca.front();
VERIFY( cri == 4 );
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc
index 497fb61..58ba7be 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/iterators/end_is_one_past.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,7 +30,7 @@ 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 } };
array_type::iterator b = a.begin();
array_type::iterator e = a.end();
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/requirements/assign.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/requirements/assign.cc
index e65c54e..5ffe849 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/requirements/assign.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/requirements/assign.cc
@@ -1,6 +1,6 @@
// 2006-02-24 Paolo Carlini <pcarlini@suse.de>
//
-// Copyright (C) 2006 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -31,7 +31,7 @@ test01()
const size_t len = 3;
typedef std::tr1::array<int, len> array_type;
- array_type a = { 0, 1, 2 };
+ array_type a = { { 0, 1, 2 } };
const int value = 5;
a.assign(value);
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/requirements/contiguous.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/requirements/contiguous.cc
index 7632674..30c7858 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/requirements/contiguous.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/requirements/contiguous.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
@@ -29,7 +29,7 @@ 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 } };
// &a[n] == &a[0] + n for all 0 <= n < N.
for (size_t i = 0; i < len; ++i)
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/requirements/member_swap.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/requirements/member_swap.cc
index 3baa3cb..3f09b89 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/requirements/member_swap.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/requirements/member_swap.cc
@@ -1,6 +1,6 @@
// 2006-02-24 Paolo Carlini <pcarlini@suse.de>
//
-// Copyright (C) 2006 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -31,10 +31,10 @@ test01()
const size_t len = 5;
typedef std::tr1::array<int, len> array_type;
- array_type a = { 0, 1, 2, 3, 4 };
+ array_type a = { { 0, 1, 2, 3, 4 } };
const array_type a_ref = a;
- array_type b = { 4, 3, 2, 1, 0 };
+ array_type b = { { 4, 3, 2, 1, 0 } };
const array_type b_ref = b;
a.swap(b);
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/specialized_algorithms/swap.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/specialized_algorithms/swap.cc
index 6ec9968..f369838 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/specialized_algorithms/swap.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/specialized_algorithms/swap.cc
@@ -1,6 +1,6 @@
// 2006-02-24 Paolo Carlini <pcarlini@suse.de>
//
-// Copyright (C) 2006 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -31,10 +31,10 @@ test01()
const size_t len = 5;
typedef std::tr1::array<int, len> array_type;
- array_type a = { 0, 1, 2, 3, 4 };
+ array_type a = { { 0, 1, 2, 3, 4 } };
const array_type a_ref = a;
- array_type b = { 4, 3, 2, 1, 0 };
+ array_type b = { { 4, 3, 2, 1, 0 } };
const array_type b_ref = b;
std::tr1::swap(a, b);
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/array/tuple_interface/get.cc b/libstdc++-v3/testsuite/tr1/6_containers/array/tuple_interface/get.cc
index b7463b3..59c0c7f 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/array/tuple_interface/get.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/array/tuple_interface/get.cc
@@ -1,6 +1,6 @@
// 2005-08-26 Paolo Carlini <pcarlini@suse.de>
//
-// Copyright (C) 2005 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -33,13 +33,13 @@ test01()
typedef array<int, len> array_type;
{
- array_type a = { 0, 1, 2, 3, 4 };
+ array_type a = { { 0, 1, 2, 3, 4 } };
int& ri = get<0>(a);
VERIFY( ri == 0 );
}
{
- const array_type a = { 4, 3, 2, 1, 0 };
+ const array_type a = { { 4, 3, 2, 1, 0 } };
const int& cri = get<1>(a);
VERIFY( cri == 3 );
}
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/hash/operators/size_t.cc b/libstdc++-v3/testsuite/tr1/6_containers/hash/operators/size_t.cc
index 067a9f5..7b45816 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/hash/operators/size_t.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/hash/operators/size_t.cc
@@ -1,6 +1,6 @@
// 2007-08-20 <benjamin@redhat.com>
//
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 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
@@ -34,7 +34,8 @@ template<typename T>
typedef std::tr1::hash<value_type> hash_type;
using std::size_t;
- value_type v; // default initialized is fine, same value all that matters.
+ value_type v = T(); // default initialized is fine, same value all
+ // that matters.
hash_type h1;
size_t r1 = size_t(h1(v));
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/big_tuples.cc b/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/big_tuples.cc
index 2af47e5..3525bf2 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/big_tuples.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/big_tuples.cc
@@ -1,6 +1,7 @@
// 2004-09-23 Chris Jefferson <chris@bubblescope.net>
-// Copyright (C) 2004, 2005, 2006, 2007 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
@@ -39,7 +40,7 @@ test_constructors()
const int &z1=x1;
// Test empty constructor
- tuple<> ta;
+ tuple<> ta __attribute__((unused));
tuple<int,int> tb;
// Test construction from values
tuple<int,int> tc(x1,x2);
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/constructor.cc b/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/constructor.cc
index de34ba4..73f9ed6 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/constructor.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/constructor.cc
@@ -1,6 +1,7 @@
// 2004-09-23 Chris Jefferson <chris@bubblescope.net>
-// Copyright (C) 2004, 2005, 2006, 2007 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
@@ -35,7 +36,7 @@ main()
const int &z1=x1;
// Test empty constructor
- tuple<> ta;
+ tuple<> ta __attribute__((unused));
tuple<int,int> tb;
// Test construction from values
tuple<int,int> tc(x1,x2);