[v3] Rewrite VERIFY, remove 'test' variables

Paolo Carlini paolo.carlini@oracle.com
Wed Oct 12 12:51:00 GMT 2016


Hi,

we have a very long standing issue with the obscure 'test' variables 
which we always have to remind our contributors to add to the testcases 
due to the definition of VERIFY. in testsuite_hooks.h and nonetheless is 
still missing in some cases. The below rewrites VERIFY consistently with 
the code we have been using for many years for debug-mode and starts 
cleaning up the testsuite wrt the 'test' variables: this can be done 
incrementally, I mean to complete the work over the next weeks 
(unfortunately isn't *always* trivial to do, because a 'test' variable 
is actually assigned and exploited by some testcases, its address taken, 
etc)

Tested x86_64-linux.

Thanks, Paolo.

///////////////////////////

-------------- next part --------------
2016-10-12  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/util/testsuite_hooks.h: Rewrite VERIFY in terms of
	__builtin_printf and __builtin_abort.
	* testsuite/lib/libstdc++.exp: Remove _GLIBCXX_ASSERT use.
	* scripts/testsuite_flags.in: Likewise.
	* testsuite/22_locale/time_get/get/char/1.cc: Likewise.
	* testsuite/22_locale/time_get/get/char/2.cc: Likewise.
	* testsuite/22_locale/time_get/get/wchar_t/1.cc: Likewise.
	* testsuite/22_locale/time_get/get/wchar_t/2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/close/char/4879.cc: Likewise, adjust.
	* testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/seekoff/char/26777.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
	* testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
	Likewise.
	* testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
	Likewise.
	* testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
	Likewise.
	* testsuite/27_io/objects/char/7.cc: Likewise.
	* testsuite/27_io/objects/char/9661-1.cc: Likewise.
	* testsuite/27_io/objects/wchar_t/7.cc: Likewise.
	* testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
	* testsuite/18_support/50594.cc: Remove 'test' variable, adjust.
	* testsuite/18_support/bad_alloc/what.cc: Likewise.
	* testsuite/18_support/bad_cast/what.cc: Likewise.
	* testsuite/18_support/bad_exception/what.cc: Likewise.
	* testsuite/18_support/bad_typeid/what.cc: Likewise.
	* testsuite/18_support/exception/38732.cc: Likewise.
	* testsuite/18_support/exception/what.cc: Likewise.
	* testsuite/18_support/exception_ptr/64241.cc: Likewise.
	* testsuite/18_support/exception_ptr/current_exception.cc: Likewise.
	* testsuite/18_support/exception_ptr/lifespan.cc: Likewise.
	* testsuite/18_support/exception_ptr/make_exception_ptr.cc: Likewise.
	* testsuite/18_support/exception_ptr/rethrow_exception.cc: Likewise.
	* testsuite/18_support/nested_exception/cons.cc: Likewise.
	* testsuite/18_support/nested_exception/nested_ptr.cc: Likewise.
	* testsuite/18_support/nested_exception/rethrow_if_nested.cc: Likewise.
	* testsuite/18_support/nested_exception/rethrow_nested.cc: Likewise.
	* testsuite/18_support/nested_exception/throw_with_nested.cc: Likewise.
	* testsuite/18_support/numeric_limits/char16_32_t.cc: Likewise.
	* testsuite/18_support/numeric_limits/digits10.cc: Likewise.
	* testsuite/18_support/numeric_limits/dr559.cc: Likewise.
	* testsuite/18_support/numeric_limits/epsilon.cc: Likewise.
	* testsuite/18_support/numeric_limits/is_iec559.cc: Likewise.
	* testsuite/18_support/numeric_limits/is_signed.cc: Likewise.
	* testsuite/18_support/numeric_limits/lowest.cc: Likewise.
	* testsuite/18_support/numeric_limits/max_digits10.cc: Likewise.
	* testsuite/18_support/numeric_limits/min_max.cc: Likewise.
	* testsuite/18_support/numeric_limits/specialization_default_values.cc:
	Likewise.
	* testsuite/18_support/type_info/hash_code.cc: Likewise.
	* testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Likewise.
	* testsuite/19_diagnostics/error_category/cons/default.cc: Likewise.
	* testsuite/19_diagnostics/error_category/operators/equal.cc: Likewise.
	* testsuite/19_diagnostics/error_category/operators/
	not_equal.cc: Likewise.
	* testsuite/19_diagnostics/error_code/cons/1.cc: Likewise.
	* testsuite/19_diagnostics/error_code/cons/39882.cc: Likewise.
	* testsuite/19_diagnostics/error_code/modifiers/39882.cc: Likewise.
	* testsuite/19_diagnostics/error_code/operators/bool.cc: Likewise.
	* testsuite/19_diagnostics/error_code/operators/equal.cc: Likewise.
	* testsuite/19_diagnostics/error_code/operators/not_equal.cc: Likewise.
	* testsuite/19_diagnostics/error_condition/cons/1.cc: Likewise.
	* testsuite/19_diagnostics/error_condition/cons/39881.cc: Likewise.
	* testsuite/19_diagnostics/error_condition/modifiers/39881.cc: 
	Likewise.
	* testsuite/19_diagnostics/error_condition/operators/bool.cc: Likewise.
	* testsuite/19_diagnostics/error_condition/operators/equal.cc:
	Likewise.
	* testsuite/19_diagnostics/error_condition/operators/not_equal.cc:
	Likewise.
	* testsuite/19_diagnostics/logic_error/what-1.cc: Likewise.
	* testsuite/19_diagnostics/logic_error/what-2.cc: Likewise.
	* testsuite/19_diagnostics/logic_error/what-3.cc: Likewise.
	* testsuite/19_diagnostics/logic_error/what-big.cc: Likewise.
	* testsuite/19_diagnostics/runtime_error/what-1.cc: Likewise.
	* testsuite/19_diagnostics/runtime_error/what-2.cc: Likewise.
	* testsuite/19_diagnostics/runtime_error/what-3.cc: Likewise.
	* testsuite/19_diagnostics/runtime_error/what-big.cc: Likewise.
	* testsuite/19_diagnostics/system_error/cons-1.cc: Likewise.
	* testsuite/19_diagnostics/system_error/what-1.cc: Likewise.
	* testsuite/19_diagnostics/system_error/what-2.cc: Likewise.
	* testsuite/19_diagnostics/system_error/what-3.cc: Likewise.
	* testsuite/19_diagnostics/system_error/what-4.cc: Likewise.
	* testsuite/19_diagnostics/system_error/what-big.cc: Likewise.
	* testsuite/20_util/addressof/1.cc: Likewise.
	* testsuite/20_util/align/1.cc: Likewise.
	* testsuite/20_util/align/2.cc: Likewise.
	* testsuite/20_util/allocator/1.cc: Likewise.
	* testsuite/20_util/allocator/10378.cc: Likewise.
	* testsuite/20_util/allocator/8230.cc: Likewise.
	* testsuite/20_util/allocator_traits/members/allocate_hint.cc:
	Likewise.
	* testsuite/20_util/allocator_traits/members/construct.cc: Likewise.
	* testsuite/20_util/allocator_traits/members/destroy.cc: Likewise.
	* testsuite/20_util/allocator_traits/members/max_size.cc: Likewise.
	* testsuite/20_util/any/assign/exception.cc: Likewise.
	* testsuite/20_util/auto_ptr/1.cc: Likewise.
	* testsuite/20_util/auto_ptr/2.cc: Likewise.
	* testsuite/20_util/auto_ptr/3.cc: Likewise.
	* testsuite/20_util/auto_ptr/4.cc: Likewise.
	* testsuite/20_util/auto_ptr/5.cc: Likewise.
	* testsuite/20_util/auto_ptr/6.cc: Likewise.
	* testsuite/20_util/auto_ptr/7.cc: Likewise.
	* testsuite/20_util/bind/all_bound.cc: Likewise.
	* testsuite/20_util/bind/conv_result.cc: Likewise.
	* testsuite/20_util/bind/cv_quals.cc: Likewise.
	* testsuite/20_util/bind/cv_quals_2.cc
	* testsuite/20_util/bind/nested.cc: Likewise.
	* testsuite/20_util/bind/placeholders.cc: Likewise.
	* testsuite/20_util/bind/ref.cc: Likewise.
	* testsuite/20_util/bind/ref2.cc: Likewise.
	* testsuite/20_util/common_type/requirements/typedefs-1.cc: Likewise.
	* testsuite/20_util/duration/arithmetic/1.cc: Likewise.
	* testsuite/20_util/duration/arithmetic/2.cc: Likewise.
	* testsuite/20_util/duration/arithmetic/58850.cc: Likewise.
	* testsuite/20_util/duration/arithmetic/dr2020.cc: Likewise.
	* testsuite/20_util/duration/arithmetic/dr934-2.cc: Likewise.
	* testsuite/20_util/duration/comparison_operators/1.cc: Likewise.
	* testsuite/20_util/duration/cons/1.cc: Likewise.
	* testsuite/20_util/duration/cons/2.cc: Likewise.
	* testsuite/20_util/enable_if/requirements/typedefs.cc: Likewise.
	* testsuite/20_util/enable_if/requirements/typedefs_neg.cc: Likewise.
	* testsuite/20_util/enable_shared_from_this/members/assign.cc:
	Likewise.
	* testsuite/20_util/exchange/1.cc: Likewise.
	* testsuite/20_util/forward/a.cc: Likewise.
	* testsuite/20_util/forward/b.cc: Likewise.
	* testsuite/20_util/forward/d.cc: Likewise.
	* testsuite/20_util/function/1.cc: Likewise.
	* testsuite/20_util/function/2.cc: Likewise.
	* testsuite/20_util/function/3.cc: Likewise.
	* testsuite/20_util/function/4.cc: Likewise.
	* testsuite/20_util/function/43397.cc: Likewise.
	* testsuite/20_util/function/5.cc: Likewise.
	* testsuite/20_util/function/6.cc: Likewise.
	* testsuite/20_util/function/7.cc: Likewise.
	* testsuite/20_util/function/8.cc: Likewise.
	* testsuite/20_util/function/9.cc: Likewise.
	* testsuite/20_util/function/assign/move.cc: Likewise.
	* testsuite/20_util/function/cons/move.cc: Likewise.
	* testsuite/20_util/function_objects/dr660.cc: Likewise.
	* testsuite/20_util/hash/chi2_q_bit_flip_set.cc: Likewise.
	* testsuite/20_util/hash/chi2_q_bit_string_set.cc: Likewise.
	* testsuite/20_util/hash/chi2_q_document_words.cc: Likewise.
	* testsuite/20_util/hash/chi2_q_numeric_pattern_set.cc: Likewise.
	* testsuite/20_util/hash/chi2_q_uniform_random.cc: Likewise.
	* testsuite/20_util/hash/operators/size_t.cc: Likewise.
	* testsuite/20_util/hash/quality.cc: Likewise.
	* testsuite/20_util/integral_constant/static_definition.cc: Likewise.
	* testsuite/20_util/integral_constant/true_false_value.cc: Likewise.
	* testsuite/20_util/is_function/24808.cc: Likewise.
	* testsuite/20_util/is_object/24808.cc: Likewise.
	* testsuite/20_util/move_if_noexcept/1.cc: Likewise.
	* testsuite/20_util/move_if_noexcept/constexpr.cc: Likewise.
	* testsuite/20_util/owner_less/cmp.cc: Likewise.
	* testsuite/20_util/pair/1.cc: Likewise.
	* testsuite/20_util/pair/2.cc: Likewise.
	* testsuite/20_util/pair/3.cc: Likewise.
	* testsuite/20_util/pair/4.cc: Likewise.
	* testsuite/20_util/pair/make_pair/constexpr.cc: Likewise.
	* testsuite/20_util/pair/moveable.cc: Likewise.
	* testsuite/20_util/pair/piecewise.cc: Likewise.
	* testsuite/20_util/pair/swap.cc: Likewise.
	* testsuite/20_util/ratio/comparisons/comp1.cc: Likewise.
	* testsuite/20_util/ratio/comparisons/comp2.cc: Likewise.
	* testsuite/20_util/ratio/comparisons/comp3.cc: Likewise.
	* testsuite/20_util/ratio/cons/cons1.cc: Likewise.
	* testsuite/20_util/ratio/operations/45866.cc: Likewise.
	* testsuite/20_util/ratio/operations/47913.cc: Likewise.
	* testsuite/20_util/ratio/operations/ops1.cc: Likewise.
	* testsuite/20_util/ratio/operations/ops2.cc: Likewise.
	* testsuite/20_util/ratio/operations/ops3.cc: Likewise.
	* testsuite/20_util/reference_wrapper/invoke.cc: Likewise.
	* testsuite/20_util/scoped_allocator/1.cc: Likewise.
	* testsuite/20_util/scoped_allocator/2.cc: Likewise.
	* testsuite/20_util/shared_ptr/assign/assign.cc: Likewise.
	* testsuite/20_util/shared_ptr/assign/auto_ptr.cc: Likewise.
	* testsuite/20_util/shared_ptr/assign/auto_ptr_neg.cc: Likewise.
	* testsuite/20_util/shared_ptr/assign/move.cc: Likewise.
	* testsuite/20_util/shared_ptr/assign/shared_ptr.cc: Likewise.
	* testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc:
	Likewise.
	* testsuite/20_util/shared_ptr/comparison/cmp.cc: Likewise.
	* testsuite/20_util/shared_ptr/comparison/less.cc: Likewise.
	* testsuite/20_util/shared_ptr/cons/alias.cc: Likewise.
	* testsuite/20_util/shared_ptr/cons/alloc.cc: Likewise.
	* testsuite/20_util/shared_ptr/cons/auto_ptr.cc: Likewise.
	* testsuite/20_util/shared_ptr/cons/copy.cc: Likewise.
	* testsuite/20_util/shared_ptr/cons/default.cc: Likewise.
	* testsuite/20_util/shared_ptr/cons/move.cc: Likewise.
	* testsuite/20_util/shared_ptr/cons/nullptr.cc: Likewise.
	* testsuite/20_util/shared_ptr/cons/pointer.cc: Likewise.
	* testsuite/20_util/shared_ptr/cons/unique_ptr.cc: Likewise.
	* testsuite/20_util/shared_ptr/cons/unique_ptr_array.cc: Likewise.
	* testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Likewise.
	* testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_1.cc:
	Likewise.
	* testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_2.cc:
	Likewise.
	* testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc: Likewise.
	* testsuite/20_util/shared_ptr/cons/weak_ptr.cc: Likewise.
	* testsuite/20_util/shared_ptr/creation/alloc.cc: Likewise.
	* testsuite/20_util/shared_ptr/creation/dr402.cc: Likewise.
	* testsuite/20_util/shared_ptr/creation/dr925.cc: Likewise.
	* testsuite/20_util/shared_ptr/creation/make.cc: Likewise.
	* testsuite/20_util/shared_ptr/dest/dest.cc: Likewise.
	* testsuite/20_util/shared_ptr/hash/1.cc: Likewise.
	* testsuite/20_util/shared_ptr/misc/24595.cc: Likewise.
	* testsuite/20_util/shared_ptr/misc/42019.cc: Likewise.
	* testsuite/20_util/shared_ptr/misc/io.cc: Likewise.
	* testsuite/20_util/shared_ptr/misc/swap.cc: Likewise.
	* testsuite/20_util/shared_ptr/modifiers/reset.cc: Likewise.
	* testsuite/20_util/shared_ptr/modifiers/reset_alloc.cc: Likewise.
	* testsuite/20_util/shared_ptr/modifiers/reset_neg.cc: Likewise.
	* testsuite/20_util/shared_ptr/modifiers/swap.cc: Likewise.
	* testsuite/20_util/shared_ptr/modifiers/swap_neg.cc: Likewise.
	* testsuite/20_util/shared_ptr/observers/bool_conv.cc: Likewise.
	* testsuite/20_util/shared_ptr/observers/get.cc: Likewise.
	* testsuite/20_util/shared_ptr/observers/owner_before.cc: Likewise.
	* testsuite/20_util/shared_ptr/observers/unique.cc: Likewise.
	* testsuite/20_util/shared_ptr/observers/use_count.cc: Likewise.
	* testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc:
	Likewise.
	* testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
	* testsuite/20_util/specialized_algorithms/uninitialized_copy/
	move_iterators/1.cc: Likewise.
	* testsuite/20_util/specialized_algorithms/uninitialized_copy_n/
	move_iterators/1.cc: Likewise.
	* testsuite/20_util/temporary_buffer.cc: Likewise.
	* testsuite/20_util/time_point/1.cc: Likewise.
	* testsuite/20_util/time_point/2.cc: Likewise.
	* testsuite/20_util/time_point/3.cc: Likewise.
	* testsuite/20_util/time_point/nonmember/constexpr.cc: Likewise.
	* testsuite/20_util/tuple/48476.cc: Likewise.
	* testsuite/20_util/tuple/comparison_operators/comparisons.cc:
	Likewise.
	* testsuite/20_util/tuple/cons/allocators.cc: Likewise.
	* testsuite/20_util/tuple/cons/assignment.cc: Likewise.
	* testsuite/20_util/tuple/cons/big_tuples.cc: Likewise.
	* testsuite/20_util/tuple/cons/constructor.cc: Likewise.
	* testsuite/20_util/tuple/creation_functions/23978.cc: Likewise.
	* testsuite/20_util/tuple/creation_functions/48476.cc: Likewise.
	* testsuite/20_util/tuple/creation_functions/constexpr.cc: Likewise.
	* testsuite/20_util/tuple/creation_functions/forward_as_tuple.cc:
	Likewise.
	* testsuite/20_util/tuple/creation_functions/make_tuple.cc: Likewise.
	* testsuite/20_util/tuple/creation_functions/tie.cc: Likewise.
	* testsuite/20_util/tuple/creation_functions/tie2.cc: Likewise.
	* testsuite/20_util/tuple/cv_tuple_size.cc: Likewise.
	* testsuite/20_util/tuple/element_access/get.cc: Likewise.
	* testsuite/20_util/tuple/element_access/get_by_type.cc: Likewise.
	* testsuite/20_util/tuple/moveable.cc: Likewise.
	* testsuite/20_util/tuple/swap.cc: Likewise.
	* testsuite/20_util/tuple/tuple_size.cc: Likewise.
	* testsuite/20_util/typeindex/comparison_operators.cc: Likewise.
	* testsuite/20_util/typeindex/hash.cc: Likewise.
	* testsuite/20_util/typeindex/hash_code.cc: Likewise.
	* testsuite/20_util/typeindex/name.cc: Likewise.
	* testsuite/20_util/unique_ptr/assign/48635.cc: Likewise.
	* testsuite/20_util/unique_ptr/assign/move.cc: Likewise.
	* testsuite/20_util/unique_ptr/assign/move_array.cc: Likewise.
	* testsuite/20_util/unique_ptr/assign/nullptr.cc: Likewise.
	* testsuite/20_util/unique_ptr/cons/auto_ptr.cc: Likewise.
	* testsuite/20_util/unique_ptr/cons/nullptr.cc: Likewise.
	* testsuite/20_util/unique_ptr/cons/pointer.cc: Likewise.
	* testsuite/20_util/unique_ptr/cons/pointer_array.cc: Likewise.
	* testsuite/20_util/unique_ptr/cons/ptr_deleter.cc: Likewise.
	* testsuite/20_util/unique_ptr/creation/array.cc: Likewise.
	* testsuite/20_util/unique_ptr/creation/single.cc: Likewise.
	* testsuite/20_util/unique_ptr/hash/1.cc: Likewise.
	* testsuite/20_util/unique_ptr/modifiers/43183.cc: Likewise.
	* testsuite/20_util/unique_ptr/specialized_algorithms/
	comparisons.cc: Likewise.
	* testsuite/20_util/unique_ptr/specialized_algorithms/
	comparisons_array.cc: Likewise.
	* testsuite/20_util/unique_ptr/specialized_algorithms/swap.cc:
	Likewise.
	* testsuite/20_util/uses_allocator/construction.cc: Likewise.
	* testsuite/20_util/uses_allocator/value.cc: Likewise.
	* testsuite/20_util/variant/run.cc: Likewise.
	* testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
	* testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
	* testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
	Likewise.
	* testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
	* testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
	Likewise.
	* testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
	* testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
	Likewise.
	* testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
	Likewise.
	* testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
	Likewise.
	* testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
	Likewise.
	* testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
	Likewise.
	* testsuite/21_strings/basic_string/capacity/1.cc: Likewise.
	* testsuite/21_strings/basic_string/capacity/char/1.cc: Likewise.
	* testsuite/21_strings/basic_string/capacity/char/18654.cc: Likewise.
	* testsuite/21_strings/basic_string/capacity/char/2.cc: Likewise.
	* testsuite/21_strings/basic_string/capacity/char/shrink_to_fit.cc:
	Likewise.
	* testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Likewise.
	* testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc:
	Likewise.
	* testsuite/21_strings/basic_string/capacity/wchar_t/2.cc: Likewise.
	* testsuite/21_strings/basic_string/capacity/wchar_t/shrink_to_fit.cc:
	Likewise.
	* testsuite/21_strings/basic_string/cons/char/1.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/char/2.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/char/3.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/char/4.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/char/42261.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/char/5.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/char/6.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/char/7.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/char/8.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/char/moveable.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/char/moveable2.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/wchar_t/1.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/wchar_t/2.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/wchar_t/3.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/wchar_t/4.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/wchar_t/42261.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/wchar_t/5.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/wchar_t/6.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/wchar_t/7.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/wchar_t/moveable.cc: Likewise.
	* testsuite/21_strings/basic_string/cons/wchar_t/moveable2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/element_access/char/1.cc: Likewise.
	* testsuite/21_strings/basic_string/element_access/char/2.cc: Likewise.
	* testsuite/21_strings/basic_string/element_access/char/3.cc: Likewise.
	* testsuite/21_strings/basic_string/element_access/char/4.cc: Likewise.
	* testsuite/21_strings/basic_string/element_access/char/58163.cc:
	Likewise.
	* testsuite/21_strings/basic_string/element_access/char/empty.cc:
	Likewise.
	* testsuite/21_strings/basic_string/element_access/char/front_back.cc:
	Likewise.
	* testsuite/21_strings/basic_string/element_access/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/element_access/wchar_t/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/element_access/wchar_t/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/element_access/wchar_t/58163.cc:
	Likewise.
	* testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
	Likewise.
	* testsuite/21_strings/basic_string/element_access/wchar_t/
	front_back.cc: Likewise.
	* testsuite/21_strings/basic_string/init-list.cc: Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/char/
	28277.cc: Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/char/8.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/char/9.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/pod/
	10081-in.cc: Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/pod/
	10081-out.cc: Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/
	10.cc: Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/
	11.cc: Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/
	28277.cc: Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/8.cc:
	Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/9.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/append/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/append/char/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/append/char/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/append/char/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/append/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/append/wchar_t/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/append/wchar_t/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/append/wchar_t/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/assign/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/assign/char/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/assign/char/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/assign/char/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/assign/char/
	move_assign.cc: Likewise.
	* testsuite/21_strings/basic_string/modifiers/assign/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/assign/wchar_t/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/assign/wchar_t/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/assign/wchar_t/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
	move_assign.cc: Likewise.
	* testsuite/21_strings/basic_string/modifiers/insert/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/insert/char/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/insert/char/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/insert/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/insert/wchar_t/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/insert/wchar_t/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/pop_back/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/pop_back/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/char/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/char/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/char/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/char/5.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/char/6.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/char/7.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/wchar_t/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/wchar_t/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/wchar_t/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/wchar_t/5.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/wchar_t/6.cc:
	Likewise.
	* testsuite/21_strings/basic_string/modifiers/replace/wchar_t/7.cc:
	Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
	Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
	Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
	Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
	Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
	Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
	Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
	Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
	Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/char/
	stoull.cc: Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/char/
	to_string.cc: Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
	dr1261.cc: Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
	stod.cc: Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
	stof.cc: Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
	stoi.cc: Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
	stol.cc: Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
	stold.cc: Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
	stoll.cc: Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
	stoul.cc: Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
	stoull.cc: Likewise.
	* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
	to_wstring.cc: Likewise.
	* testsuite/21_strings/basic_string/operations/compare/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/compare/char/13650.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/compare/char/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/compare/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/compare/wchar_t/
	13650.cc: Likewise.
	* testsuite/21_strings/basic_string/operations/compare/wchar_t/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/data/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/data/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/find/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/find/char/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/find/char/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/find/char/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/find/char/5.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/find/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/find/wchar_t/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/find/wchar_t/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/find/wchar_t/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/find/wchar_t/5.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/rfind/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/rfind/char/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/rfind/char/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/rfind/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/rfind/wchar_t/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/rfind/wchar_t/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/substr/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string/operations/substr/wchar_t/
	1.cc: Likewise.
	* testsuite/21_strings/basic_string/operators/char/1.cc: Likewise.
	* testsuite/21_strings/basic_string/operators/char/2.cc: Likewise.
	* testsuite/21_strings/basic_string/operators/char/3.cc: Likewise.
	* testsuite/21_strings/basic_string/operators/char/4.cc: Likewise.
	* testsuite/21_strings/basic_string/operators/char/5.cc: Likewise.
	* testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Likewise.
	* testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Likewise.
	* testsuite/21_strings/basic_string/operators/wchar_t/3.cc: Likewise.
	* testsuite/21_strings/basic_string/operators/wchar_t/4.cc: Likewise.
	* testsuite/21_strings/basic_string/operators/wchar_t/5.cc: Likewise.
	* testsuite/21_strings/basic_string_view/capacity/1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/cons/char/1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/cons/char/2.cc: Likewise.
	* testsuite/21_strings/basic_string_view/cons/char/3.cc: Likewise.
	* testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/cons/wchar_t/2.cc: Likewise.
	* testsuite/21_strings/basic_string_view/cons/wchar_t/3.cc: Likewise.
	* testsuite/21_strings/basic_string_view/element_access/char/
	1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/element_access/char/
	empty.cc: Likewise.
	* testsuite/21_strings/basic_string_view/element_access/char/
	front_back.cc: Likewise.
	* testsuite/21_strings/basic_string_view/element_access/wchar_t/
	1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/element_access/wchar_t/
	empty.cc: Likewise.
	* testsuite/21_strings/basic_string_view/element_access/wchar_t/
	front_back.cc: Likewise.
	* testsuite/21_strings/basic_string_view/inserters/char/1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/inserters/char/2.cc: Likewise.
	* testsuite/21_strings/basic_string_view/inserters/char/3.cc: Likewise.
	* testsuite/21_strings/basic_string_view/inserters/pod/10081-out.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/inserters/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/inserters/wchar_t/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/inserters/wchar_t/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
	char/1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
	wchar_t/1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
	char/1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
	wchar_t/1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/compare/char/
	1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/compare/char/
	13650.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/compare/wchar_t/
	1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/compare/wchar_t/
	13650.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/operations/data/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/operations/data/wchar_t/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/operations/find/char/1.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/operations/find/char/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/operations/find/char/3.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/operations/find/char/4.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/operations/find/wchar_t/
	1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/find/wchar_t/
	2.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/find/wchar_t/
	3.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/find/wchar_t/
	4.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/rfind/char/
	1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/rfind/char/
	2.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/rfind/char/
	3.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/
	1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/
	2.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/
	3.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/string_conversion/
	1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/substr/char/
	1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operations/substr/wchar_t/
	1.cc: Likewise.
	* testsuite/21_strings/basic_string_view/operators/char/2.cc:
	Likewise.
	* testsuite/21_strings/basic_string_view/operators/wchar_t/2.cc:
	Likewise.
	* testsuite/21_strings/c_strings/char/1.cc: Likewise.
	* testsuite/21_strings/c_strings/wchar_t/1.cc: Likewise.
	* testsuite/21_strings/char_traits/requirements/char/1.cc: Likewise.
	* testsuite/21_strings/char_traits/requirements/char/57704.cc:
	Likewise.
	* testsuite/21_strings/char_traits/requirements/short/1.cc: Likewise.
	* testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Likewise.

	* doc/xml/manual/test.xml: Fix typo.
-------------- next part --------------
Index: doc/xml/manual/test.xml
===================================================================
--- doc/xml/manual/test.xml	(revision 241022)
+++ doc/xml/manual/test.xml	(working copy)
@@ -564,7 +564,7 @@
       <command>make</command>, or via options for the DejaGnu test framework
       (described below). The latter approach uses the
       <option>--target_board</option> option that was shown earlier.
-      For example, to run the tests with <option>-O1 -D_GLIBCXX_ASSERT</option>
+      For example, to run the tests with <option>-O1 -D_GLIBCXX_ASSERTIONS</option>
       you could use:
 <programlisting>    make RUNTESTFLAGS=--target_board=unix/-O1/-D_GLIBCXX_ASSERTIONS</programlisting>
     </para>
Index: scripts/testsuite_flags.in
===================================================================
--- scripts/testsuite_flags.in	(revision 241022)
+++ scripts/testsuite_flags.in	(working copy)
@@ -56,7 +56,7 @@
       echo ${CC}
       ;;
     --cxxflags)
-      CXXFLAGS_default="-D_GLIBCXX_ASSERT -fmessage-length=0 -fno-show-column"
+      CXXFLAGS_default="-fmessage-length=0 -fno-show-column"
       CXXFLAGS_config="@SECTION_FLAGS@ @EXTRA_CXX_FLAGS@"
       echo ${CXXFLAGS_default} ${CXXFLAGS_config} 
       ;;
Index: testsuite/18_support/50594.cc
===================================================================
--- testsuite/18_support/50594.cc	(revision 241022)
+++ testsuite/18_support/50594.cc	(working copy)
@@ -56,8 +56,6 @@
 // libstdc++/50594
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   {
     std::string s = "Hello World, this is not a small string.";
   }
Index: testsuite/18_support/bad_alloc/what.cc
===================================================================
--- testsuite/18_support/bad_alloc/what.cc	(revision 241022)
+++ testsuite/18_support/bad_alloc/what.cc	(working copy)
@@ -26,7 +26,6 @@
 // libstdc++/14493
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   bad_alloc ba;
Index: testsuite/18_support/bad_cast/what.cc
===================================================================
--- testsuite/18_support/bad_cast/what.cc	(revision 241022)
+++ testsuite/18_support/bad_cast/what.cc	(working copy)
@@ -26,7 +26,6 @@
 // libstdc++/14493
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   bad_cast bc;
Index: testsuite/18_support/bad_exception/what.cc
===================================================================
--- testsuite/18_support/bad_exception/what.cc	(revision 241022)
+++ testsuite/18_support/bad_exception/what.cc	(working copy)
@@ -26,7 +26,6 @@
 // libstdc++/14493
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   bad_exception be;
Index: testsuite/18_support/bad_typeid/what.cc
===================================================================
--- testsuite/18_support/bad_typeid/what.cc	(revision 241022)
+++ testsuite/18_support/bad_typeid/what.cc	(working copy)
@@ -26,7 +26,6 @@
 // libstdc++/14493
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   bad_typeid bt;
Index: testsuite/18_support/exception/38732.cc
===================================================================
--- testsuite/18_support/exception/38732.cc	(revision 241022)
+++ testsuite/18_support/exception/38732.cc	(working copy)
@@ -61,7 +61,6 @@
 // PR libstdc++/38732
 void test01 ()
 {
-  bool test __attribute__((unused)) = true;
   try {
     throw 0;
   } catch(...) {
Index: testsuite/18_support/exception/what.cc
===================================================================
--- testsuite/18_support/exception/what.cc	(revision 241022)
+++ testsuite/18_support/exception/what.cc	(working copy)
@@ -26,7 +26,6 @@
 // libstdc++/14493
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   exception e;
Index: testsuite/18_support/exception_ptr/64241.cc
===================================================================
--- testsuite/18_support/exception_ptr/64241.cc	(revision 241022)
+++ testsuite/18_support/exception_ptr/64241.cc	(working copy)
@@ -25,7 +25,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
+  bool test = true;
   {
     // Put some non-zero bytes on the stack
     void* p __attribute__((unused)) = &test;
Index: testsuite/18_support/exception_ptr/current_exception.cc
===================================================================
--- testsuite/18_support/exception_ptr/current_exception.cc	(revision 241022)
+++ testsuite/18_support/exception_ptr/current_exception.cc	(working copy)
@@ -27,7 +27,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   exception_ptr ep = current_exception();
@@ -36,7 +35,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   try {
@@ -49,7 +47,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   try {
@@ -62,7 +59,6 @@
 
 void test04()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   try {
Index: testsuite/18_support/exception_ptr/lifespan.cc
===================================================================
--- testsuite/18_support/exception_ptr/lifespan.cc	(revision 241022)
+++ testsuite/18_support/exception_ptr/lifespan.cc	(working copy)
@@ -39,7 +39,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
@@ -56,7 +55,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
@@ -71,7 +69,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
@@ -89,7 +86,6 @@
 
 void test04()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
@@ -119,7 +115,6 @@
 
 void test05()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
@@ -145,7 +140,6 @@
 
 void test06()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
@@ -165,7 +159,6 @@
 
 void test99()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
Index: testsuite/18_support/exception_ptr/make_exception_ptr.cc
===================================================================
--- testsuite/18_support/exception_ptr/make_exception_ptr.cc	(revision 241022)
+++ testsuite/18_support/exception_ptr/make_exception_ptr.cc	(working copy)
@@ -23,8 +23,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::exception_ptr p = std::make_exception_ptr(0);
 
   VERIFY( !(p == 0) );
Index: testsuite/18_support/exception_ptr/rethrow_exception.cc
===================================================================
--- testsuite/18_support/exception_ptr/rethrow_exception.cc	(revision 241022)
+++ testsuite/18_support/exception_ptr/rethrow_exception.cc	(working copy)
@@ -40,7 +40,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   try {
Index: testsuite/18_support/nested_exception/cons.cc
===================================================================
--- testsuite/18_support/nested_exception/cons.cc	(revision 241022)
+++ testsuite/18_support/nested_exception/cons.cc	(working copy)
@@ -23,8 +23,6 @@
 
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
-
   std::nested_exception e;
 
   VERIFY( e.nested_ptr() == 0 );
@@ -32,8 +30,6 @@
 
 void test02() 
 {
-  bool test __attribute__((unused)) = true;
-
   try
   {
     throw 42;
Index: testsuite/18_support/nested_exception/nested_ptr.cc
===================================================================
--- testsuite/18_support/nested_exception/nested_ptr.cc	(revision 241022)
+++ testsuite/18_support/nested_exception/nested_ptr.cc	(working copy)
@@ -23,8 +23,6 @@
 
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
-
   try
   {
     throw std::nested_exception();
@@ -37,8 +35,6 @@
 
 void test02() 
 {
-  bool test __attribute__((unused)) = true;
-
   try
   {
     throw 42;
Index: testsuite/18_support/nested_exception/rethrow_if_nested.cc
===================================================================
--- testsuite/18_support/nested_exception/rethrow_if_nested.cc	(revision 241022)
+++ testsuite/18_support/nested_exception/rethrow_if_nested.cc	(working copy)
@@ -30,7 +30,7 @@
 
 void test01() 
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
@@ -55,7 +55,7 @@
 
 void test02() 
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
@@ -72,7 +72,7 @@
 
 void test03() 
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
Index: testsuite/18_support/nested_exception/rethrow_nested.cc
===================================================================
--- testsuite/18_support/nested_exception/rethrow_nested.cc	(revision 241022)
+++ testsuite/18_support/nested_exception/rethrow_nested.cc	(working copy)
@@ -23,7 +23,7 @@
 
 void test01() 
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
Index: testsuite/18_support/nested_exception/throw_with_nested.cc
===================================================================
--- testsuite/18_support/nested_exception/throw_with_nested.cc	(revision 241022)
+++ testsuite/18_support/nested_exception/throw_with_nested.cc	(working copy)
@@ -30,7 +30,7 @@
 
 void test01() 
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
@@ -53,7 +53,7 @@
 
 void test02() 
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
@@ -76,7 +76,7 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
Index: testsuite/18_support/numeric_limits/char16_32_t.cc
===================================================================
--- testsuite/18_support/numeric_limits/char16_32_t.cc	(revision 241022)
+++ testsuite/18_support/numeric_limits/char16_32_t.cc	(working copy)
@@ -31,8 +31,6 @@
   void
   do_test()
   {
-    bool test __attribute__((unused)) = true;
-
     typedef std::numeric_limits<T> char_type;
     typedef std::numeric_limits<R> impl_type;
 
Index: testsuite/18_support/numeric_limits/digits10.cc
===================================================================
--- testsuite/18_support/numeric_limits/digits10.cc	(revision 241022)
+++ testsuite/18_support/numeric_limits/digits10.cc	(working copy)
@@ -28,10 +28,8 @@
 #include <testsuite_hooks.h>
 
 // libstdc++/5045
-bool test03()
+void test03()
 {
-  bool test __attribute__((unused)) = true;
-
   VERIFY( std::numeric_limits<bool>::digits10 == 0 );
   if (__CHAR_BIT__ == 8)
     {
@@ -53,7 +51,6 @@
       VERIFY( std::numeric_limits<signed long long>::digits10 == 18 );
       VERIFY( std::numeric_limits<unsigned long long>::digits10 == 19 );
     }
-  return test;
 }
 
 int main()
Index: testsuite/18_support/numeric_limits/dr559.cc
===================================================================
--- testsuite/18_support/numeric_limits/dr559.cc	(revision 241022)
+++ testsuite/18_support/numeric_limits/dr559.cc	(working copy)
@@ -26,7 +26,6 @@
 template<typename T>
   void do_test_aux()
   {
-    bool test __attribute__((unused)) = true;
     typedef std::numeric_limits<T> cv_limits;
     typedef std::numeric_limits<typename std::remove_cv<T>::type> limits;
 
Index: testsuite/18_support/numeric_limits/epsilon.cc
===================================================================
--- testsuite/18_support/numeric_limits/epsilon.cc	(revision 241022)
+++ testsuite/18_support/numeric_limits/epsilon.cc	(working copy)
@@ -30,7 +30,6 @@
 template<typename T>
 void test_epsilon()
 {
-  bool test __attribute__((unused)) = true;
   T epsilon = std::numeric_limits<T>::epsilon();
   T one = 1;
 
Index: testsuite/18_support/numeric_limits/is_iec559.cc
===================================================================
--- testsuite/18_support/numeric_limits/is_iec559.cc	(revision 241022)
+++ testsuite/18_support/numeric_limits/is_iec559.cc	(working copy)
@@ -52,10 +52,8 @@
 }
 
 // libstdc++/8949
-bool test04()
+void test04()
 {
-  bool test __attribute__((unused)) = true;
-
   VERIFY( !std::numeric_limits<short>::is_iec559 );
   VERIFY( !std::numeric_limits<unsigned short>::is_iec559 );
   VERIFY( !std::numeric_limits<int>::is_iec559 );
@@ -64,7 +62,6 @@
   VERIFY( !std::numeric_limits<unsigned long>::is_iec559 );
   VERIFY( !std::numeric_limits<long long>::is_iec559 );
   VERIFY( !std::numeric_limits<unsigned long long>::is_iec559 );
-  return test;
 }
 
 int main()
Index: testsuite/18_support/numeric_limits/is_signed.cc
===================================================================
--- testsuite/18_support/numeric_limits/is_signed.cc	(revision 241022)
+++ testsuite/18_support/numeric_limits/is_signed.cc	(working copy)
@@ -35,7 +35,6 @@
 
 void test_sign()
 {
-  bool test __attribute__((unused)) = true;
   VERIFY( std::numeric_limits<char>::is_signed == char_is_signed );
   VERIFY( std::numeric_limits<signed char>::is_signed == true );
   VERIFY( std::numeric_limits<unsigned char>::is_signed == false );
Index: testsuite/18_support/numeric_limits/lowest.cc
===================================================================
--- testsuite/18_support/numeric_limits/lowest.cc	(revision 241022)
+++ testsuite/18_support/numeric_limits/lowest.cc	(working copy)
@@ -30,7 +30,6 @@
   void
   do_test(std::true_type)
   {
-    bool test __attribute__((unused)) = true;
     T limits_min = std::numeric_limits<T>::min();
     VERIFY( std::numeric_limits<T>::lowest() == limits_min );
   }
@@ -39,7 +38,6 @@
   void
   do_test(std::false_type)
   {
-    bool test __attribute__((unused)) = true;
     T limits_max = std::numeric_limits<T>::max();
     VERIFY( std::numeric_limits<T>::lowest() == -limits_max );
   }
Index: testsuite/18_support/numeric_limits/max_digits10.cc
===================================================================
--- testsuite/18_support/numeric_limits/max_digits10.cc	(revision 241022)
+++ testsuite/18_support/numeric_limits/max_digits10.cc	(working copy)
@@ -29,8 +29,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   VERIFY( std::numeric_limits<bool>::max_digits10 == 0 );
   VERIFY( std::numeric_limits<char>::max_digits10 == 0 );
   VERIFY( std::numeric_limits<signed char>::max_digits10 == 0 );
Index: testsuite/18_support/numeric_limits/min_max.cc
===================================================================
--- testsuite/18_support/numeric_limits/min_max.cc	(revision 241022)
+++ testsuite/18_support/numeric_limits/min_max.cc	(working copy)
@@ -61,7 +61,6 @@
 template<typename T>
 void test_extrema()
 {
-  bool test __attribute__((unused)) = true;
   T limits_min = std::numeric_limits<T>::min();
   T limits_max = std::numeric_limits<T>::max();
   T extrema_min = extrema<T>::min;
Index: testsuite/18_support/numeric_limits/specialization_default_values.cc
===================================================================
--- testsuite/18_support/numeric_limits/specialization_default_values.cc	(revision 241022)
+++ testsuite/18_support/numeric_limits/specialization_default_values.cc	(working copy)
@@ -43,9 +43,8 @@
 };
 
 
-bool test01()
+void test01()
 {
-  bool test __attribute__((unused)) = true;
   std::numeric_limits< A<B> > obj;
 
   VERIFY( !obj.is_specialized );
@@ -78,7 +77,6 @@
   VERIFY( !obj.traps );
   VERIFY( !obj.tinyness_before );
   VERIFY( obj.round_style == std::round_toward_zero );
-  return test;
 }
 
 // test linkage of the generic bits
Index: testsuite/18_support/type_info/hash_code.cc
===================================================================
--- testsuite/18_support/type_info/hash_code.cc	(revision 241022)
+++ testsuite/18_support/type_info/hash_code.cc	(working copy)
@@ -24,7 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   class Abraca { };
Index: testsuite/19_diagnostics/error_category/cons/copy_neg.cc
===================================================================
--- testsuite/19_diagnostics/error_category/cons/copy_neg.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_category/cons/copy_neg.cc	(working copy)
@@ -23,8 +23,6 @@
 
 int main()
 {
-  bool test __attribute__((unused)) = true;
-
   __gnu_test::test_category c1;
   __gnu_test::test_category c2(c1); // { dg-error "deleted" }
 
Index: testsuite/19_diagnostics/error_category/cons/default.cc
===================================================================
--- testsuite/19_diagnostics/error_category/cons/default.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_category/cons/default.cc	(working copy)
@@ -23,8 +23,6 @@
 
 int main()
 {
-  bool test __attribute__((unused)) = true;
-
   // 1
   __gnu_test::test_category c1;
   __gnu_test::test_derived_category c2;
Index: testsuite/19_diagnostics/error_category/operators/equal.cc
===================================================================
--- testsuite/19_diagnostics/error_category/operators/equal.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_category/operators/equal.cc	(working copy)
@@ -24,8 +24,6 @@
 
 int main()
 {
-  bool test __attribute__((unused)) = true;
-
   __gnu_test::test_category c1;
   __gnu_test::test_derived_category c2;
   VERIFY( c1 == c1 );
Index: testsuite/19_diagnostics/error_category/operators/not_equal.cc
===================================================================
--- testsuite/19_diagnostics/error_category/operators/not_equal.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_category/operators/not_equal.cc	(working copy)
@@ -23,8 +23,6 @@
 
 int main()
 {
-  bool test __attribute__((unused)) = true;
-
   __gnu_test::test_category c1;
   __gnu_test::test_derived_category c2;
   VERIFY( !(c1 != c1) );
Index: testsuite/19_diagnostics/error_code/cons/1.cc
===================================================================
--- testsuite/19_diagnostics/error_code/cons/1.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_code/cons/1.cc	(working copy)
@@ -24,8 +24,6 @@
 
 int main()
 {
-  bool test __attribute__((unused)) = true;
-
   // 1
   std::error_code e1;
   VERIFY( e1.value() == 0 );
Index: testsuite/19_diagnostics/error_code/cons/39882.cc
===================================================================
--- testsuite/19_diagnostics/error_code/cons/39882.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_code/cons/39882.cc	(working copy)
@@ -47,8 +47,6 @@
 // libstdc++/39882
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::error_code ec1(my_err);
   VERIFY( ec1 == make_error_code(my_err) );
 }
Index: testsuite/19_diagnostics/error_code/modifiers/39882.cc
===================================================================
--- testsuite/19_diagnostics/error_code/modifiers/39882.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_code/modifiers/39882.cc	(working copy)
@@ -47,8 +47,6 @@
 // libstdc++/39882
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::error_code ec2;
   ec2 = my_err;
   VERIFY( ec2 == make_error_code(my_err) );
Index: testsuite/19_diagnostics/error_code/operators/bool.cc
===================================================================
--- testsuite/19_diagnostics/error_code/operators/bool.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_code/operators/bool.cc	(working copy)
@@ -25,8 +25,6 @@
 // unspecified bool operator positive tests
 int main()
 {
-  bool test __attribute__((unused)) = true;
-
   // 1
   std::error_code e1;
   if (static_cast<bool>(e1))
Index: testsuite/19_diagnostics/error_code/operators/equal.cc
===================================================================
--- testsuite/19_diagnostics/error_code/operators/equal.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_code/operators/equal.cc	(working copy)
@@ -25,8 +25,6 @@
 // unspecified bool operator positive tests
 int main()
 {
-  bool test __attribute__((unused)) = true;
-
   std::error_code e1;
   std::error_code e2(std::make_error_code(std::errc::operation_not_supported));
 
Index: testsuite/19_diagnostics/error_code/operators/not_equal.cc
===================================================================
--- testsuite/19_diagnostics/error_code/operators/not_equal.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_code/operators/not_equal.cc	(working copy)
@@ -25,8 +25,6 @@
 // unspecified bool operator positive tests
 int main()
 {
-  bool test __attribute__((unused)) = true;
-
   std::error_code e1;
   std::error_code e2(std::make_error_code(std::errc::operation_not_supported));
 
Index: testsuite/19_diagnostics/error_condition/cons/1.cc
===================================================================
--- testsuite/19_diagnostics/error_condition/cons/1.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_condition/cons/1.cc	(working copy)
@@ -23,8 +23,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   // 1
   std::error_condition e1;
   VERIFY( e1.value() == 0 );
Index: testsuite/19_diagnostics/error_condition/cons/39881.cc
===================================================================
--- testsuite/19_diagnostics/error_condition/cons/39881.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_condition/cons/39881.cc	(working copy)
@@ -47,8 +47,6 @@
 // libstdc++/39881
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::error_condition ec1(my_err);
   VERIFY( ec1 == make_error_condition(my_err) );
 }
Index: testsuite/19_diagnostics/error_condition/modifiers/39881.cc
===================================================================
--- testsuite/19_diagnostics/error_condition/modifiers/39881.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_condition/modifiers/39881.cc	(working copy)
@@ -47,8 +47,6 @@
 // libstdc++/39881
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::error_condition ec2;
   ec2 = my_err;
   VERIFY( ec2 == make_error_condition(my_err) );
Index: testsuite/19_diagnostics/error_condition/operators/bool.cc
===================================================================
--- testsuite/19_diagnostics/error_condition/operators/bool.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_condition/operators/bool.cc	(working copy)
@@ -24,8 +24,6 @@
 // unspecified bool operator positive tests
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   // 1
   std::error_condition e1;
   if (static_cast<bool>(e1))
Index: testsuite/19_diagnostics/error_condition/operators/equal.cc
===================================================================
--- testsuite/19_diagnostics/error_condition/operators/equal.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_condition/operators/equal.cc	(working copy)
@@ -24,8 +24,6 @@
 // unspecified bool operator positive tests
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::error_condition e1;
   std::error_condition e2(std::errc::operation_not_supported);
 
Index: testsuite/19_diagnostics/error_condition/operators/not_equal.cc
===================================================================
--- testsuite/19_diagnostics/error_condition/operators/not_equal.cc	(revision 241022)
+++ testsuite/19_diagnostics/error_condition/operators/not_equal.cc	(working copy)
@@ -24,8 +24,6 @@
 // unspecified bool operator positive tests
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::error_condition e1;
   std::error_condition e2(std::errc::operation_not_supported);
 
Index: testsuite/19_diagnostics/logic_error/what-1.cc
===================================================================
--- testsuite/19_diagnostics/logic_error/what-1.cc	(revision 241022)
+++ testsuite/19_diagnostics/logic_error/what-1.cc	(working copy)
@@ -27,7 +27,6 @@
 // libstdc++/1972
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   std::string s("lack of sunlight, no water error");
 
   // 1
@@ -42,7 +41,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   std::string s("lack of sunlight error");
   std::domain_error x(s);
   
Index: testsuite/19_diagnostics/logic_error/what-2.cc
===================================================================
--- testsuite/19_diagnostics/logic_error/what-2.cc	(revision 241022)
+++ testsuite/19_diagnostics/logic_error/what-2.cc	(working copy)
@@ -33,7 +33,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   try
     { throw fuzzy_logic(); }
   catch(const fuzzy_logic& obj)
Index: testsuite/19_diagnostics/logic_error/what-3.cc
===================================================================
--- testsuite/19_diagnostics/logic_error/what-3.cc	(revision 241022)
+++ testsuite/19_diagnostics/logic_error/what-3.cc	(working copy)
@@ -38,7 +38,6 @@
 
 void test04()
 {
-  bool test __attribute__((unused)) = true;
   const std::string s("CA ISO emergency once again:immediate power down");
   const char* strlit1 = "wish I lived in Palo Alto";
   const char* strlit2 = "...or Santa Barbara";
Index: testsuite/19_diagnostics/logic_error/what-big.cc
===================================================================
--- testsuite/19_diagnostics/logic_error/what-big.cc	(revision 241022)
+++ testsuite/19_diagnostics/logic_error/what-big.cc	(working copy)
@@ -27,7 +27,6 @@
 {
   typedef std::logic_error test_type;
 
-  bool test __attribute__((unused)) = true;
   const std::string xxx(10000, 'x');
   test_type t(xxx);
   VERIFY( std::strcmp(t.what(), xxx.c_str()) == 0 );
Index: testsuite/19_diagnostics/runtime_error/what-1.cc
===================================================================
--- testsuite/19_diagnostics/runtime_error/what-1.cc	(revision 241022)
+++ testsuite/19_diagnostics/runtime_error/what-1.cc	(working copy)
@@ -27,7 +27,6 @@
 // libstdc++/1972
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   std::string s("lack of sunlight, no water error");
 
   // 1
@@ -42,7 +41,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   std::string s("lack of sunlight error");
   std::range_error x(s);
   
Index: testsuite/19_diagnostics/runtime_error/what-2.cc
===================================================================
--- testsuite/19_diagnostics/runtime_error/what-2.cc	(revision 241022)
+++ testsuite/19_diagnostics/runtime_error/what-2.cc	(working copy)
@@ -33,7 +33,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   try
     { throw fuzzy_logic(); }
   catch(const fuzzy_logic& obj)
Index: testsuite/19_diagnostics/runtime_error/what-3.cc
===================================================================
--- testsuite/19_diagnostics/runtime_error/what-3.cc	(revision 241022)
+++ testsuite/19_diagnostics/runtime_error/what-3.cc	(working copy)
@@ -40,7 +40,6 @@
 
 void test04()
 {
-  bool test __attribute__((unused)) = true;
   const std::string s("CA ISO emergency once again:immediate power down");
   const char* strlit1 = "wish I lived in Palo Alto";
   const char* strlit2 = "...or Santa Barbara";
Index: testsuite/19_diagnostics/runtime_error/what-big.cc
===================================================================
--- testsuite/19_diagnostics/runtime_error/what-big.cc	(revision 241022)
+++ testsuite/19_diagnostics/runtime_error/what-big.cc	(working copy)
@@ -27,7 +27,6 @@
 {
   typedef std::runtime_error test_type;
 
-  bool test __attribute__((unused)) = true;
   const std::string xxx(10000, 'x');
   test_type t(xxx);
   VERIFY( std::strcmp(t.what(), xxx.c_str()) == 0 );
Index: testsuite/19_diagnostics/system_error/cons-1.cc
===================================================================
--- testsuite/19_diagnostics/system_error/cons-1.cc	(revision 241022)
+++ testsuite/19_diagnostics/system_error/cons-1.cc	(working copy)
@@ -24,7 +24,6 @@
 
 int main()
 {
-  bool test __attribute__((unused)) = true;
   const std::string s("too late: boulangerie out of pain au raisin");
   const std::error_code
     e(std::make_error_code(std::errc::operation_not_supported));
Index: testsuite/19_diagnostics/system_error/what-1.cc
===================================================================
--- testsuite/19_diagnostics/system_error/what-1.cc	(revision 241022)
+++ testsuite/19_diagnostics/system_error/what-1.cc	(working copy)
@@ -28,7 +28,6 @@
 // libstdc++/1972
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   string s("lack of sunlight, no water error");
 
   // 1
@@ -43,7 +42,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   string s("lack of sunlight error");
   system_error x(error_code(), s);
   
Index: testsuite/19_diagnostics/system_error/what-2.cc
===================================================================
--- testsuite/19_diagnostics/system_error/what-2.cc	(revision 241022)
+++ testsuite/19_diagnostics/system_error/what-2.cc	(working copy)
@@ -32,7 +32,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   try
     { throw fuzzy_logic(); }
   catch(const fuzzy_logic& obj)
Index: testsuite/19_diagnostics/system_error/what-3.cc
===================================================================
--- testsuite/19_diagnostics/system_error/what-3.cc	(revision 241022)
+++ testsuite/19_diagnostics/system_error/what-3.cc	(working copy)
@@ -37,7 +37,6 @@
 
 void test04()
 {
-  bool test __attribute__((unused)) = true;
   const std::string s("CA ISO emergency once again:immediate power down");
   const char* strlit1 = "wish I lived in Palo Alto";
   const char* strlit2 = "...or Santa Barbara";
Index: testsuite/19_diagnostics/system_error/what-4.cc
===================================================================
--- testsuite/19_diagnostics/system_error/what-4.cc	(revision 241022)
+++ testsuite/19_diagnostics/system_error/what-4.cc	(working copy)
@@ -26,7 +26,6 @@
 // Make sure each invocation of what() doesn't grow the message.
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   std::string s("after nine thirty, this request cannot be met");
 
   std::system_error obj =
Index: testsuite/19_diagnostics/system_error/what-big.cc
===================================================================
--- testsuite/19_diagnostics/system_error/what-big.cc	(revision 241022)
+++ testsuite/19_diagnostics/system_error/what-big.cc	(working copy)
@@ -26,7 +26,6 @@
 {
   typedef std::system_error test_type;
 
-  bool test __attribute__((unused)) = true;
   const std::string xxx(10000, 'x');
   test_type t(std::error_code(), xxx);
   VERIFY( std::string(t.what()).find(xxx) != std::string::npos );
Index: testsuite/20_util/addressof/1.cc
===================================================================
--- testsuite/20_util/addressof/1.cc	(revision 241022)
+++ testsuite/20_util/addressof/1.cc	(working copy)
@@ -27,7 +27,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace __gnu_test;
   
   OverloadedAddress* ao1 = new OverloadedAddress();
Index: testsuite/20_util/align/1.cc
===================================================================
--- testsuite/20_util/align/1.cc	(revision 241022)
+++ testsuite/20_util/align/1.cc	(working copy)
@@ -30,8 +30,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   size_t space = 100;
   void* ptr = new char[space];
   char* const orig_ptr = static_cast<char*>(ptr);
Index: testsuite/20_util/align/2.cc
===================================================================
--- testsuite/20_util/align/2.cc	(revision 241022)
+++ testsuite/20_util/align/2.cc	(working copy)
@@ -27,8 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   int i = 0;
   void* ptr = &i;
   auto space = sizeof(i);
Index: testsuite/20_util/allocator/1.cc
===================================================================
--- testsuite/20_util/allocator/1.cc	(revision 241022)
+++ testsuite/20_util/allocator/1.cc	(working copy)
@@ -44,7 +44,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   std::allocator<gnu> obj;
 
   // NB: These should work for various size allocation and
Index: testsuite/20_util/allocator/10378.cc
===================================================================
--- testsuite/20_util/allocator/10378.cc	(revision 241022)
+++ testsuite/20_util/allocator/10378.cc	(working copy)
@@ -32,7 +32,6 @@
 void test01()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   list<Bob> uniset;
   uniset.push_back(Bob());
Index: testsuite/20_util/allocator/8230.cc
===================================================================
--- testsuite/20_util/allocator/8230.cc	(revision 241022)
+++ testsuite/20_util/allocator/8230.cc	(working copy)
@@ -26,7 +26,7 @@
 // libstdc++/8230
 void test02()
 {
-  bool test __attribute__((unused)) = true;
+  bool test = true;
   try 
     {
       std::allocator<int> alloc;
Index: testsuite/20_util/allocator_traits/members/allocate_hint.cc
===================================================================
--- testsuite/20_util/allocator_traits/members/allocate_hint.cc	(revision 241022)
+++ testsuite/20_util/allocator_traits/members/allocate_hint.cc	(working copy)
@@ -46,8 +46,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::allocator_traits<hintable_allocator<X>> traits_type;
   traits_type::allocator_type a;
   traits_type::const_void_pointer v;
@@ -74,8 +72,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::allocator_traits<unhintable_allocator<X>> traits_type;
   traits_type::allocator_type a;
   traits_type::const_void_pointer v;
Index: testsuite/20_util/allocator_traits/members/construct.cc
===================================================================
--- testsuite/20_util/allocator_traits/members/construct.cc	(revision 241022)
+++ testsuite/20_util/allocator_traits/members/construct.cc	(working copy)
@@ -52,8 +52,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::allocator_traits<fake_allocator<X>> traits_type;
   traits_type::allocator_type a;
   X* p = traits_type::allocate(a, 1);
Index: testsuite/20_util/allocator_traits/members/destroy.cc
===================================================================
--- testsuite/20_util/allocator_traits/members/destroy.cc	(revision 241022)
+++ testsuite/20_util/allocator_traits/members/destroy.cc	(working copy)
@@ -53,8 +53,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::allocator_traits<allocator_with_destroy<X>> traits_type;
   traits_type::allocator_type a;
   X* p = 0;
@@ -65,8 +63,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::allocator_traits<allocator_without_destroy<X>> traits_type;
   traits_type::allocator_type a;
   char buf[sizeof(X)];
Index: testsuite/20_util/allocator_traits/members/max_size.cc
===================================================================
--- testsuite/20_util/allocator_traits/members/max_size.cc	(revision 241022)
+++ testsuite/20_util/allocator_traits/members/max_size.cc	(working copy)
@@ -42,8 +42,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::allocator_traits<maxsize_allocator<X>> traits_type;
   traits_type::allocator_type a;
   auto size = a.max_size();
@@ -52,8 +50,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::allocator_traits<unsized_allocator<X>> traits_type;
   traits_type::allocator_type a;
   auto size = std::numeric_limits<traits_type::size_type>::max();
@@ -62,8 +58,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::allocator_traits<unsized_allocator<int>> traits_type;
   traits_type::allocator_type a;
   auto size = std::numeric_limits<traits_type::size_type>::max();
Index: testsuite/20_util/any/assign/exception.cc
===================================================================
--- testsuite/20_util/any/assign/exception.cc	(revision 241022)
+++ testsuite/20_util/any/assign/exception.cc	(working copy)
@@ -57,8 +57,8 @@
         a1 = a2;
     } catch (...) {
         auto x = std::any_cast<Good>(a1);
-        assert(del_count == 0);
-        assert(a1.has_value());
+        VERIFY( del_count == 0 );
+        VERIFY( a1.has_value() );
         std::any_cast<Good>(a1);
     }
     std::any a3 = Good();
@@ -70,8 +70,8 @@
         a3 = a4;
     } catch (...) {
         auto x = std::any_cast<Good>(a1);
-        assert(del_count == 0);
-        assert(a1.has_value());
+        VERIFY( del_count == 0 );
+        VERIFY( a1.has_value() );
         std::any_cast<Good>(a1);
     }
 }
Index: testsuite/20_util/auto_ptr/1.cc
===================================================================
--- testsuite/20_util/auto_ptr/1.cc	(revision 241022)
+++ testsuite/20_util/auto_ptr/1.cc	(working copy)
@@ -62,7 +62,6 @@
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::auto_ptr<A> A_default;
   VERIFY( A_default.get() == 0 );
Index: testsuite/20_util/auto_ptr/2.cc
===================================================================
--- testsuite/20_util/auto_ptr/2.cc	(revision 241022)
+++ testsuite/20_util/auto_ptr/2.cc	(working copy)
@@ -59,7 +59,6 @@
 test02()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::auto_ptr<A> A_from_A(new A);
   std::auto_ptr<B> B_from_B(new B);
Index: testsuite/20_util/auto_ptr/3.cc
===================================================================
--- testsuite/20_util/auto_ptr/3.cc	(revision 241022)
+++ testsuite/20_util/auto_ptr/3.cc	(working copy)
@@ -59,7 +59,6 @@
 test03()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::auto_ptr<A> A_from_ptr_A;
   std::auto_ptr<A> A_from_ptr_B;
Index: testsuite/20_util/auto_ptr/4.cc
===================================================================
--- testsuite/20_util/auto_ptr/4.cc	(revision 241022)
+++ testsuite/20_util/auto_ptr/4.cc	(working copy)
@@ -60,7 +60,6 @@
 test04()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   {/*lifetine scope*/
     std::auto_ptr<A> A_from_A(new A);
Index: testsuite/20_util/auto_ptr/5.cc
===================================================================
--- testsuite/20_util/auto_ptr/5.cc	(revision 241022)
+++ testsuite/20_util/auto_ptr/5.cc	(working copy)
@@ -68,7 +68,6 @@
 int 
 test05()
 {
-  bool test __attribute__((unused)) = true;
   reset_count_struct __attribute__((unused)) reset;
 
   pimpl<A>();
Index: testsuite/20_util/auto_ptr/6.cc
===================================================================
--- testsuite/20_util/auto_ptr/6.cc	(revision 241022)
+++ testsuite/20_util/auto_ptr/6.cc	(working copy)
@@ -61,7 +61,6 @@
 test06()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::auto_ptr<A> A_from_A(new A);
   std::auto_ptr<A> A_from_A_ptr(A_from_A.release());
Index: testsuite/20_util/auto_ptr/7.cc
===================================================================
--- testsuite/20_util/auto_ptr/7.cc	(revision 241022)
+++ testsuite/20_util/auto_ptr/7.cc	(working copy)
@@ -70,7 +70,6 @@
 int
 test07()
 {
-  bool test __attribute__((unused)) = true;
   reset_count_struct __attribute__((unused)) reset;
 
   drain(source<A>());
Index: testsuite/20_util/bind/all_bound.cc
===================================================================
--- testsuite/20_util/bind/all_bound.cc	(revision 241022)
+++ testsuite/20_util/bind/all_bound.cc	(working copy)
@@ -24,8 +24,6 @@
 // Operations on empty function<> objects
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   VERIFY( std::bind(std::plus<int>(), 3, 5)() == 8 );
   VERIFY( std::bind(std::minus<int>(), 3, 5)() == -2 );
   VERIFY( std::bind<int>(std::plus<int>(), 3, 5)() == 8 );
Index: testsuite/20_util/bind/conv_result.cc
===================================================================
--- testsuite/20_util/bind/conv_result.cc	(revision 241022)
+++ testsuite/20_util/bind/conv_result.cc	(working copy)
@@ -30,7 +30,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::bind;
   using std::ref;
   ::X x = { true };
Index: testsuite/20_util/bind/cv_quals.cc
===================================================================
--- testsuite/20_util/bind/cv_quals.cc	(revision 241022)
+++ testsuite/20_util/bind/cv_quals.cc	(working copy)
@@ -42,8 +42,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   auto b0 = std::bind(X());
   VERIFY( b0() == 0 );
 
@@ -59,8 +57,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   auto b0 = std::bind<int>(X());
   VERIFY( b0() == 0 );
 
@@ -76,8 +72,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
-
   auto b0 = std::bind(X(), 0, _1, _2);
   VERIFY( b0(0, 0) == 0 );
 
@@ -93,8 +87,6 @@
 
 void test04()
 {
-  bool test __attribute__((unused)) = true;
-
   auto b0 = std::bind<int>(X(), 0, _1, _2);
   VERIFY( b0(0, 0) == 0 );
 
Index: testsuite/20_util/bind/cv_quals_2.cc
===================================================================
--- testsuite/20_util/bind/cv_quals_2.cc	(revision 241022)
+++ testsuite/20_util/bind/cv_quals_2.cc	(working copy)
@@ -30,8 +30,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const auto b0 = std::bind(X());
   VERIFY( b0() == 0 );
 
Index: testsuite/20_util/bind/nested.cc
===================================================================
--- testsuite/20_util/bind/nested.cc	(revision 241022)
+++ testsuite/20_util/bind/nested.cc	(working copy)
@@ -24,7 +24,6 @@
 // Operations on empty function<> objects
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::placeholders;
 
   int five = 5;
Index: testsuite/20_util/bind/placeholders.cc
===================================================================
--- testsuite/20_util/bind/placeholders.cc	(revision 241022)
+++ testsuite/20_util/bind/placeholders.cc	(working copy)
@@ -24,7 +24,6 @@
 // Operations on empty function<> objects
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::placeholders;
 
   int five = 5;
Index: testsuite/20_util/bind/ref.cc
===================================================================
--- testsuite/20_util/bind/ref.cc	(revision 241022)
+++ testsuite/20_util/bind/ref.cc	(working copy)
@@ -37,7 +37,6 @@
 // Operations on empty function<> objects
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::bind;
   using std::ref;
   ::X x;
Index: testsuite/20_util/bind/ref2.cc
===================================================================
--- testsuite/20_util/bind/ref2.cc	(revision 241022)
+++ testsuite/20_util/bind/ref2.cc	(working copy)
@@ -28,8 +28,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   int counter = 0;
   std::bind(&inc, _1)(counter);
   VERIFY(counter == 1 );
@@ -47,8 +45,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   int counter = 0;
   std::bind(Inc(), _1)(counter);
   VERIFY(counter == 1 );
Index: testsuite/20_util/common_type/requirements/typedefs-1.cc
===================================================================
--- testsuite/20_util/common_type/requirements/typedefs-1.cc	(revision 241022)
+++ testsuite/20_util/common_type/requirements/typedefs-1.cc	(working copy)
@@ -66,7 +66,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::common_type;
   using std::is_same;
 
@@ -98,7 +97,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   using std::common_type;
   using std::is_same;
   
Index: testsuite/20_util/duration/arithmetic/1.cc
===================================================================
--- testsuite/20_util/duration/arithmetic/1.cc	(revision 241022)
+++ testsuite/20_util/duration/arithmetic/1.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   duration<int> d0(3);
@@ -59,7 +58,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   duration<int> d7(3);
Index: testsuite/20_util/duration/arithmetic/2.cc
===================================================================
--- testsuite/20_util/duration/arithmetic/2.cc	(revision 241022)
+++ testsuite/20_util/duration/arithmetic/2.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   duration<int> d0(12);
Index: testsuite/20_util/duration/arithmetic/58850.cc
===================================================================
--- testsuite/20_util/duration/arithmetic/58850.cc	(revision 241022)
+++ testsuite/20_util/duration/arithmetic/58850.cc	(working copy)
@@ -23,7 +23,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
 
   typedef duration<std::int64_t, std::ratio<36 * 24 * 36525>> Years;
Index: testsuite/20_util/duration/arithmetic/dr2020.cc
===================================================================
--- testsuite/20_util/duration/arithmetic/dr2020.cc	(revision 241022)
+++ testsuite/20_util/duration/arithmetic/dr2020.cc	(working copy)
@@ -26,7 +26,6 @@
 // DR 2020
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
 
   constexpr duration<int> d0(12);
Index: testsuite/20_util/duration/arithmetic/dr934-2.cc
===================================================================
--- testsuite/20_util/duration/arithmetic/dr934-2.cc	(revision 241022)
+++ testsuite/20_util/duration/arithmetic/dr934-2.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
 
   const duration<int> d0(17);
Index: testsuite/20_util/duration/comparison_operators/1.cc
===================================================================
--- testsuite/20_util/duration/comparison_operators/1.cc	(revision 241022)
+++ testsuite/20_util/duration/comparison_operators/1.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   duration<int> d0(12);
Index: testsuite/20_util/duration/cons/1.cc
===================================================================
--- testsuite/20_util/duration/cons/1.cc	(revision 241022)
+++ testsuite/20_util/duration/cons/1.cc	(working copy)
@@ -106,7 +106,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::chrono::duration;
   
   int r = 3;
Index: testsuite/20_util/duration/cons/2.cc
===================================================================
--- testsuite/20_util/duration/cons/2.cc	(revision 241022)
+++ testsuite/20_util/duration/cons/2.cc	(working copy)
@@ -87,7 +87,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   duration<int> d0(3);
Index: testsuite/20_util/enable_if/requirements/typedefs.cc
===================================================================
--- testsuite/20_util/enable_if/requirements/typedefs.cc	(revision 241022)
+++ testsuite/20_util/enable_if/requirements/typedefs.cc	(working copy)
@@ -23,7 +23,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::enable_if;
 
   // Positive tests.
Index: testsuite/20_util/enable_if/requirements/typedefs_neg.cc
===================================================================
--- testsuite/20_util/enable_if/requirements/typedefs_neg.cc	(revision 241022)
+++ testsuite/20_util/enable_if/requirements/typedefs_neg.cc	(working copy)
@@ -24,7 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::enable_if;
 
   // Negative  tests.
@@ -31,4 +30,4 @@
   typedef enable_if<false, int>::type     test2_type;
 }
 
-// { dg-error "does not name a type" "" { target *-*-* } 31 }
+// { dg-error "does not name a type" "" { target *-*-* } 30 }
Index: testsuite/20_util/enable_shared_from_this/members/assign.cc
===================================================================
--- testsuite/20_util/enable_shared_from_this/members/assign.cc	(revision 241022)
+++ testsuite/20_util/enable_shared_from_this/members/assign.cc	(working copy)
@@ -24,7 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   auto x1 = std::make_shared<X>(), x2 = std::make_shared<X>();
   *x1 = *x2;
   VERIFY( x1->shared_from_this() != x2->shared_from_this() );
Index: testsuite/20_util/exchange/1.cc
===================================================================
--- testsuite/20_util/exchange/1.cc	(revision 241022)
+++ testsuite/20_util/exchange/1.cc	(working copy)
@@ -41,8 +41,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   struct DefaultConstructible
   {
     DefaultConstructible(int i = 0) : value(i) { }
@@ -63,8 +61,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   int (*fp)(int);
   std::exchange(fp, &f);
   VERIFY( fp != nullptr );
Index: testsuite/20_util/forward/a.cc
===================================================================
--- testsuite/20_util/forward/a.cc	(revision 241022)
+++ testsuite/20_util/forward/a.cc	(working copy)
@@ -45,7 +45,6 @@
 
   void test() const
   {
-    bool test __attribute__((unused)) = true;
     VERIFY( data_ == 3 );
   }
 };
Index: testsuite/20_util/forward/b.cc
===================================================================
--- testsuite/20_util/forward/b.cc	(revision 241022)
+++ testsuite/20_util/forward/b.cc	(working copy)
@@ -45,7 +45,6 @@
 
   void test() const
   {
-    bool test __attribute__((unused)) = true;
     VERIFY( data_ == 3 );
   }
 };
Index: testsuite/20_util/forward/d.cc
===================================================================
--- testsuite/20_util/forward/d.cc	(revision 241022)
+++ testsuite/20_util/forward/d.cc	(working copy)
@@ -45,7 +45,6 @@
 
   void test() const
   {
-    bool test __attribute__((unused)) = true;
     VERIFY( data_ == 3 );
   }
 };
Index: testsuite/20_util/function/1.cc
===================================================================
--- testsuite/20_util/function/1.cc	(revision 241022)
+++ testsuite/20_util/function/1.cc	(working copy)
@@ -24,8 +24,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Operations on empty function<> objects
 void test01()
 {
Index: testsuite/20_util/function/2.cc
===================================================================
--- testsuite/20_util/function/2.cc	(revision 241022)
+++ testsuite/20_util/function/2.cc	(working copy)
@@ -25,8 +25,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Put function pointers into function<> wrappers
 void test02()
 {
Index: testsuite/20_util/function/3.cc
===================================================================
--- testsuite/20_util/function/3.cc	(revision 241022)
+++ testsuite/20_util/function/3.cc	(working copy)
@@ -25,8 +25,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Put nearly-matching function pointers into function<> wrappers
 void test03()
 {
Index: testsuite/20_util/function/4.cc
===================================================================
--- testsuite/20_util/function/4.cc	(revision 241022)
+++ testsuite/20_util/function/4.cc	(working copy)
@@ -25,8 +25,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Put function objects into function<> wrappers
 void test04()
 {
Index: testsuite/20_util/function/43397.cc
===================================================================
--- testsuite/20_util/function/43397.cc	(revision 241022)
+++ testsuite/20_util/function/43397.cc	(working copy)
@@ -36,8 +36,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   using std::function;
   using std::ref;
 
Index: testsuite/20_util/function/5.cc
===================================================================
--- testsuite/20_util/function/5.cc	(revision 241022)
+++ testsuite/20_util/function/5.cc	(working copy)
@@ -25,8 +25,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Put member pointers into function<> wrappers
 void test05()
 {
Index: testsuite/20_util/function/6.cc
===================================================================
--- testsuite/20_util/function/6.cc	(revision 241022)
+++ testsuite/20_util/function/6.cc	(working copy)
@@ -24,8 +24,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 struct secret {};
 
 struct noncopyable_function_object_type
Index: testsuite/20_util/function/7.cc
===================================================================
--- testsuite/20_util/function/7.cc	(revision 241022)
+++ testsuite/20_util/function/7.cc	(working copy)
@@ -25,8 +25,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Put reference_wrappers to function pointers into function<> wrappers
 void test07()
 {
Index: testsuite/20_util/function/8.cc
===================================================================
--- testsuite/20_util/function/8.cc	(revision 241022)
+++ testsuite/20_util/function/8.cc	(working copy)
@@ -25,8 +25,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Put reference_wrappers to member pointers
 void test08()
 {
Index: testsuite/20_util/function/9.cc
===================================================================
--- testsuite/20_util/function/9.cc	(revision 241022)
+++ testsuite/20_util/function/9.cc	(working copy)
@@ -25,8 +25,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Put function objects into a void-returning function<> wrapper
 void test09()
 {
Index: testsuite/20_util/function/assign/move.cc
===================================================================
--- testsuite/20_util/function/assign/move.cc	(revision 241022)
+++ testsuite/20_util/function/assign/move.cc	(working copy)
@@ -25,8 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::function<int()> function;
 
   function fo(f1);
Index: testsuite/20_util/function/cons/move.cc
===================================================================
--- testsuite/20_util/function/cons/move.cc	(revision 241022)
+++ testsuite/20_util/function/cons/move.cc	(working copy)
@@ -25,8 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::function<int()> function;
 
   function fo(f1);
Index: testsuite/20_util/function_objects/dr660.cc
===================================================================
--- testsuite/20_util/function_objects/dr660.cc	(revision 241022)
+++ testsuite/20_util/function_objects/dr660.cc	(working copy)
@@ -23,8 +23,6 @@
 // DR 660. Missing Bitwise Operations.
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   for (int i1 = 0; i1 < 1000; ++i1)
     for (int i2 = 0; i2 < 1000; ++i2)
       {
Index: testsuite/20_util/hash/chi2_q_bit_flip_set.cc
===================================================================
--- testsuite/20_util/hash/chi2_q_bit_flip_set.cc	(revision 241022)
+++ testsuite/20_util/hash/chi2_q_bit_flip_set.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test_bit_flip_set()
 {
-  bool test __attribute__((unused)) = true;
   const unsigned long N = SAMPLES;
   const unsigned long k = N/100;
   const unsigned int len = 67;
Index: testsuite/20_util/hash/chi2_q_bit_string_set.cc
===================================================================
--- testsuite/20_util/hash/chi2_q_bit_string_set.cc	(revision 241022)
+++ testsuite/20_util/hash/chi2_q_bit_string_set.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test_bit_string_set()
 {
-  bool test __attribute__((unused)) = true;
   const unsigned long N = SAMPLES;
   const unsigned long k = N/100;
   std::vector<std::string> set;
Index: testsuite/20_util/hash/chi2_q_document_words.cc
===================================================================
--- testsuite/20_util/hash/chi2_q_document_words.cc	(revision 241022)
+++ testsuite/20_util/hash/chi2_q_document_words.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test_document_words()
 {
-  bool test __attribute__((unused)) = true;
   const std::string f_name = "thirty_years_among_the_dead_preproc.txt";
   std::ifstream in(f_name);
   VERIFY( in.is_open() );
Index: testsuite/20_util/hash/chi2_q_numeric_pattern_set.cc
===================================================================
--- testsuite/20_util/hash/chi2_q_numeric_pattern_set.cc	(revision 241022)
+++ testsuite/20_util/hash/chi2_q_numeric_pattern_set.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test_numeric_pattern_set()
 {
-  bool test __attribute__((unused)) = true;
   const unsigned long N = SAMPLES;
   const unsigned long k = N/100;
   std::vector<std::string> set;
Index: testsuite/20_util/hash/chi2_q_uniform_random.cc
===================================================================
--- testsuite/20_util/hash/chi2_q_uniform_random.cc	(revision 241022)
+++ testsuite/20_util/hash/chi2_q_uniform_random.cc	(working copy)
@@ -26,7 +26,6 @@
 void
 test_uniform_random()
 {
-  bool test __attribute__((unused)) = true;
   std::srand(137);
   std::unordered_set<std::string> set;
   std::string s;
Index: testsuite/20_util/hash/operators/size_t.cc
===================================================================
--- testsuite/20_util/hash/operators/size_t.cc	(revision 241022)
+++ testsuite/20_util/hash/operators/size_t.cc	(working copy)
@@ -26,8 +26,6 @@
   void
   do_test()
   {
-    bool test __attribute__((unused)) = true;
-
     typedef T 				value_type;
     typedef std::hash<value_type> 	hash_type;
     using std::size_t;
Index: testsuite/20_util/hash/quality.cc
===================================================================
--- testsuite/20_util/hash/quality.cc	(revision 241022)
+++ testsuite/20_util/hash/quality.cc	(working copy)
@@ -59,7 +59,6 @@
 double
 score_from_varying_position(string s, unsigned int index)
 {
-  bool test __attribute__((unused)) = true;
   unsigned int bits_in_hash_code = sizeof(size_t) * 8;
 
   // We'll iterate through all 256 vals for s[index], leaving the rest
@@ -146,7 +145,6 @@
 void
 quality_test()
 {
-  bool test __attribute__((unused)) = true;
   srand(137);
   double sum_of_scores = 0;
   for (unsigned int i = 0; i < num_quality_tests; i++)
Index: testsuite/20_util/integral_constant/static_definition.cc
===================================================================
--- testsuite/20_util/integral_constant/static_definition.cc	(revision 241022)
+++ testsuite/20_util/integral_constant/static_definition.cc	(working copy)
@@ -22,7 +22,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   const bool* p = &std::integral_constant<bool, true>::value;
   VERIFY( p );
 }
Index: testsuite/20_util/integral_constant/true_false_value.cc
===================================================================
--- testsuite/20_util/integral_constant/true_false_value.cc	(revision 241022)
+++ testsuite/20_util/integral_constant/true_false_value.cc	(working copy)
@@ -22,7 +22,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::true_type;
   using std::false_type;
 
Index: testsuite/20_util/is_function/24808.cc
===================================================================
--- testsuite/20_util/is_function/24808.cc	(revision 241022)
+++ testsuite/20_util/is_function/24808.cc	(working copy)
@@ -24,7 +24,6 @@
 // libstdc++/24808
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::is_function;
   using namespace __gnu_test;
 
Index: testsuite/20_util/is_object/24808.cc
===================================================================
--- testsuite/20_util/is_object/24808.cc	(revision 241022)
+++ testsuite/20_util/is_object/24808.cc	(working copy)
@@ -24,7 +24,6 @@
 // libstdc++/24808
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::is_object;
   using namespace __gnu_test;
 
Index: testsuite/20_util/move_if_noexcept/1.cc
===================================================================
--- testsuite/20_util/move_if_noexcept/1.cc	(revision 241022)
+++ testsuite/20_util/move_if_noexcept/1.cc	(working copy)
@@ -93,8 +93,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   noexcept_move_copy nemc1;
   auto nemc2 __attribute__((unused)) = std::move_if_noexcept(nemc1);
   VERIFY( nemc1 == false );
Index: testsuite/20_util/move_if_noexcept/constexpr.cc
===================================================================
--- testsuite/20_util/move_if_noexcept/constexpr.cc	(revision 241022)
+++ testsuite/20_util/move_if_noexcept/constexpr.cc	(working copy)
@@ -28,8 +28,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   constexpr simple s { 5 };
   constexpr auto s2  __attribute__((unused)) = std::move_if_noexcept(s);
 }
Index: testsuite/20_util/owner_less/cmp.cc
===================================================================
--- testsuite/20_util/owner_less/cmp.cc	(revision 241022)
+++ testsuite/20_util/owner_less/cmp.cc	(working copy)
@@ -32,8 +32,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   // test empty shared_ptrs compare equivalent
   std::owner_less<std::shared_ptr<A>> less;
   std::owner_less<std::weak_ptr<A>> wless;
@@ -51,8 +49,6 @@
 int
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::owner_less<std::shared_ptr<A>> less;
   std::owner_less<std::weak_ptr<A>> wless;
 
@@ -84,8 +80,6 @@
 int
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   std::owner_less<std::shared_ptr<A>> less;
   std::owner_less<std::weak_ptr<A>> wless;
 
@@ -108,8 +102,6 @@
 int
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::owner_less<std::shared_ptr<A>> less;
 
   std::shared_ptr<A> a[3];
Index: testsuite/20_util/pair/1.cc
===================================================================
--- testsuite/20_util/pair/1.cc	(revision 241022)
+++ testsuite/20_util/pair/1.cc	(working copy)
@@ -45,8 +45,6 @@
 // heterogeneous
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::pair<bool, long> p_bl_1(true, 433);
   std::pair<bool, long> p_bl_2 = std::make_pair(true, 433);
   VERIFY( p_bl_1 == p_bl_2 );
Index: testsuite/20_util/pair/2.cc
===================================================================
--- testsuite/20_util/pair/2.cc	(revision 241022)
+++ testsuite/20_util/pair/2.cc	(working copy)
@@ -44,8 +44,6 @@
 // homogeneous
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::pair<bool, bool> p_bb_1(true, false);
   std::pair<bool, bool> p_bb_2 = std::make_pair(true, false);
   VERIFY( p_bb_1 == p_bb_2 );
Index: testsuite/20_util/pair/3.cc
===================================================================
--- testsuite/20_util/pair/3.cc	(revision 241022)
+++ testsuite/20_util/pair/3.cc	(working copy)
@@ -45,8 +45,6 @@
 // const
 void test03()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::pair<bool, long> p_bl_1(true, 433);
   const std::pair<bool, long> p_bl_2 = std::make_pair(true, 433);
   VERIFY( p_bl_1 == p_bl_2 );
Index: testsuite/20_util/pair/4.cc
===================================================================
--- testsuite/20_util/pair/4.cc	(revision 241022)
+++ testsuite/20_util/pair/4.cc	(working copy)
@@ -44,7 +44,6 @@
 // const&
 void test04()
 {
-  bool test __attribute__((unused)) = true;
   const gnu_obj& obj1 = gnu_obj(5);
   const std::pair<const char*, gnu_obj> p_sg_1("enlightenment", obj1);
   const std::pair<const char*, gnu_obj> p_sg_2 = 
Index: testsuite/20_util/pair/make_pair/constexpr.cc
===================================================================
--- testsuite/20_util/pair/make_pair/constexpr.cc	(revision 241022)
+++ testsuite/20_util/pair/make_pair/constexpr.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test1()
 {
-  bool test __attribute__((unused)) = true;
   typedef std::pair<int, float> pair_type;
   constexpr pair_type p1 __attribute__((unused)) = std::make_pair(22, 22.222);
 }
Index: testsuite/20_util/pair/moveable.cc
===================================================================
--- testsuite/20_util/pair/moveable.cc	(revision 241022)
+++ testsuite/20_util/pair/moveable.cc	(working copy)
@@ -26,8 +26,6 @@
 #include <utility>
 #include <testsuite_hooks.h>
 
-bool test __attribute__((unused)) = true;
-
 void
 test1()
 {
Index: testsuite/20_util/pair/piecewise.cc
===================================================================
--- testsuite/20_util/pair/piecewise.cc	(revision 241022)
+++ testsuite/20_util/pair/piecewise.cc	(working copy)
@@ -67,8 +67,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::pair<type_one, type_zero> pp0(std::piecewise_construct,
 				     std::forward_as_tuple(-3),
 				     std::forward_as_tuple());
Index: testsuite/20_util/pair/swap.cc
===================================================================
--- testsuite/20_util/pair/swap.cc	(revision 241022)
+++ testsuite/20_util/pair/swap.cc	(working copy)
@@ -24,7 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef __gnu_test::uneq_allocator<double> ua_type;
   ua_type one(1), two(2);
 
Index: testsuite/20_util/ratio/comparisons/comp1.cc
===================================================================
--- testsuite/20_util/ratio/comparisons/comp1.cc	(revision 241022)
+++ testsuite/20_util/ratio/comparisons/comp1.cc	(working copy)
@@ -24,8 +24,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
- 
   VERIFY(( std::ratio_equal<std::ratio<2,6>, std::ratio<1,3>>::value == 1 ));
   VERIFY(( std::ratio_equal<std::ratio<2,6>, std::ratio<1,4>>::value == 0 ));
   
@@ -38,8 +36,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
- 
   VERIFY( (std::ratio_less<std::ratio<1,4>, std::ratio<1,3>>::value == 1) );
   VERIFY( (std::ratio_less<std::ratio<-1,3>, std::ratio<1,3>>::value == 1) );
   
Index: testsuite/20_util/ratio/comparisons/comp2.cc
===================================================================
--- testsuite/20_util/ratio/comparisons/comp2.cc	(revision 241022)
+++ testsuite/20_util/ratio/comparisons/comp2.cc	(working copy)
@@ -26,8 +26,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
- 
   // No overflow with same denominator
   VERIFY( (std::ratio_less<std::ratio<M - 2, M>,
            std::ratio<M - 1, M>>::value == 1) );
Index: testsuite/20_util/ratio/comparisons/comp3.cc
===================================================================
--- testsuite/20_util/ratio/comparisons/comp3.cc	(revision 241022)
+++ testsuite/20_util/ratio/comparisons/comp3.cc	(working copy)
@@ -26,8 +26,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   VERIFY( (std::ratio_less<std::ratio<59, 29131>,
 	                   std::ratio<59, 29129>>::value == 1) );
   VERIFY( (std::ratio_less<std::ratio<4733, 13>,
Index: testsuite/20_util/ratio/cons/cons1.cc
===================================================================
--- testsuite/20_util/ratio/cons/cons1.cc	(revision 241022)
+++ testsuite/20_util/ratio/cons/cons1.cc	(working copy)
@@ -26,8 +26,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::ratio<1,3> r0;
   std::ratio<2,6> r1;  
   std::ratio<2,-6> r2;
Index: testsuite/20_util/ratio/operations/45866.cc
===================================================================
--- testsuite/20_util/ratio/operations/45866.cc	(revision 241022)
+++ testsuite/20_util/ratio/operations/45866.cc	(working copy)
@@ -26,8 +26,6 @@
 // libstdc++/45866
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::ratio<1, 4>::type r_type1;
   typedef std::ratio<3, 2>::type r_type2;
 
Index: testsuite/20_util/ratio/operations/47913.cc
===================================================================
--- testsuite/20_util/ratio/operations/47913.cc	(revision 241022)
+++ testsuite/20_util/ratio/operations/47913.cc	(working copy)
@@ -25,7 +25,6 @@
 // libstdc++/47913
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   const intmax_t m1 = (intmax_t)1 << (4 * sizeof(intmax_t) - 1);
Index: testsuite/20_util/ratio/operations/ops1.cc
===================================================================
--- testsuite/20_util/ratio/operations/ops1.cc	(revision 241022)
+++ testsuite/20_util/ratio/operations/ops1.cc	(working copy)
@@ -26,8 +26,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::ratio_add<std::ratio<3,8>, std::ratio<5,12>>::type r;
 
   VERIFY( r.num == 19 );
@@ -37,7 +35,6 @@
 void
 test02()
 {  
-  bool test __attribute__((unused)) = true;
   std::ratio_subtract<std::ratio<3,8>, std::ratio<5,12>>::type r;
 
   VERIFY( r.num == -1 );
@@ -47,7 +44,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::ratio_multiply<std::ratio<3,8>, std::ratio<5,12>>::type r;
 
   VERIFY( r.num == 5 );
@@ -57,7 +53,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
   std::ratio_divide<std::ratio<3,8>, std::ratio<5,12>>::type r;
 
   VERIFY( r.num == 9 );
Index: testsuite/20_util/ratio/operations/ops2.cc
===================================================================
--- testsuite/20_util/ratio/operations/ops2.cc	(revision 241022)
+++ testsuite/20_util/ratio/operations/ops2.cc	(working copy)
@@ -31,8 +31,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::ratio_add<one_over_max, one_over_max>::type r1;
 
   VERIFY( r1.num == two_over_max::num);
@@ -48,9 +46,7 @@
 
 void
 test02()
-{  
-  bool test __attribute__((unused)) = true;
-  
+{
   std::ratio_subtract<one_over_max, one_over_max>::type r1;
 
   VERIFY( r1.num == 0);
Index: testsuite/20_util/ratio/operations/ops3.cc
===================================================================
--- testsuite/20_util/ratio/operations/ops3.cc	(revision 241022)
+++ testsuite/20_util/ratio/operations/ops3.cc	(working copy)
@@ -26,8 +26,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::ratio_multiply<
     std::ratio<2, INTMAX_MAX>,
     std::ratio<INTMAX_MAX, 2>>::type r1;
@@ -45,9 +43,7 @@
 
 void
 test02()
-{  
-  bool test __attribute__((unused)) = true;
-  
+{
   std::ratio_divide<
     std::ratio<INTMAX_MAX, 2>,
     std::ratio<INTMAX_MAX, 2>>::type r1;
Index: testsuite/20_util/reference_wrapper/invoke.cc
===================================================================
--- testsuite/20_util/reference_wrapper/invoke.cc	(revision 241022)
+++ testsuite/20_util/reference_wrapper/invoke.cc	(working copy)
@@ -24,8 +24,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 struct X
 {
   typedef int result_type;
Index: testsuite/20_util/scoped_allocator/1.cc
===================================================================
--- testsuite/20_util/scoped_allocator/1.cc	(revision 241022)
+++ testsuite/20_util/scoped_allocator/1.cc	(working copy)
@@ -44,8 +44,6 @@
 
 void test01()
 {
-  bool test __attribute((unused)) = false;
-
   typedef std::scoped_allocator_adaptor<Element::allocator_type> alloc1_type;
 
   typedef std::vector<Element, alloc1_type> EltVec;
@@ -59,8 +57,6 @@
 
 void test02()
 {
-  bool test __attribute((unused)) = false;
-
   typedef std::scoped_allocator_adaptor<Element::allocator_type> inner_alloc_type;
 
   typedef std::vector<Element, inner_alloc_type> EltVec;
Index: testsuite/20_util/scoped_allocator/2.cc
===================================================================
--- testsuite/20_util/scoped_allocator/2.cc	(revision 241022)
+++ testsuite/20_util/scoped_allocator/2.cc	(working copy)
@@ -120,8 +120,6 @@
   void
   test_def()
   {
-    bool test __attribute((unused)) = false;
-
     typedef std::pair<A, B> test_type;
     typedef uneq_allocator<test_type> alloc_type;
     typedef scoped_allocator_adaptor<alloc_type, alloc_type> alloc_adaptor;
@@ -167,8 +165,6 @@
   void
   test_copying()
   {
-    bool test __attribute((unused)) = false;
-
     typedef std::pair<A, B> test_type;
     typedef uneq_allocator<test_type> alloc_type;
     typedef scoped_allocator_adaptor<alloc_type, alloc_type> alloc_adaptor;
@@ -218,8 +214,6 @@
   void
   test_moving()
   {
-    bool test __attribute((unused)) = false;
-
     typedef std::pair<A, B> test_type;
     typedef uneq_allocator<test_type> alloc_type;
     typedef scoped_allocator_adaptor<alloc_type, alloc_type> alloc_adaptor;
Index: testsuite/20_util/shared_ptr/assign/assign.cc
===================================================================
--- testsuite/20_util/shared_ptr/assign/assign.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/assign/assign.cc	(working copy)
@@ -49,7 +49,6 @@
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a;
 
Index: testsuite/20_util/shared_ptr/assign/auto_ptr.cc
===================================================================
--- testsuite/20_util/shared_ptr/assign/auto_ptr.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/assign/auto_ptr.cc	(working copy)
@@ -63,7 +63,6 @@
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a(new A);
   std::auto_ptr<B> b(new B);
Index: testsuite/20_util/shared_ptr/assign/auto_ptr_neg.cc
===================================================================
--- testsuite/20_util/shared_ptr/assign/auto_ptr_neg.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/assign/auto_ptr_neg.cc	(working copy)
@@ -32,8 +32,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> a;
   std::auto_ptr<B> b;
   a = std::move(b);                      // { dg-error "here" }
Index: testsuite/20_util/shared_ptr/assign/move.cc
===================================================================
--- testsuite/20_util/shared_ptr/assign/move.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/assign/move.cc	(working copy)
@@ -62,7 +62,6 @@
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a1;
   std::shared_ptr<A> a2(new A);
@@ -86,7 +85,6 @@
 test02()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a;
   std::shared_ptr<B> b(new B);
Index: testsuite/20_util/shared_ptr/assign/shared_ptr.cc
===================================================================
--- testsuite/20_util/shared_ptr/assign/shared_ptr.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/assign/shared_ptr.cc	(working copy)
@@ -62,7 +62,6 @@
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a;
 
Index: testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc
===================================================================
--- testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc	(working copy)
@@ -30,8 +30,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> a;
   std::unique_ptr<A> u;
   a = u; // { dg-error "" }
Index: testsuite/20_util/shared_ptr/comparison/cmp.cc
===================================================================
--- testsuite/20_util/shared_ptr/comparison/cmp.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/comparison/cmp.cc	(working copy)
@@ -36,8 +36,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   // test empty shared_ptrs compare equivalent
   std::shared_ptr<A> p1;
   std::shared_ptr<B> p2;
@@ -52,8 +50,6 @@
 int
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> A_default;
 
   std::shared_ptr<A> A_from_A(new A);
Index: testsuite/20_util/shared_ptr/comparison/less.cc
===================================================================
--- testsuite/20_util/shared_ptr/comparison/less.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/comparison/less.cc	(working copy)
@@ -41,8 +41,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::less<std::shared_ptr<A>> less;
   // test empty shared_ptrs compare equivalent
   std::shared_ptr<A> p1;
@@ -57,8 +55,6 @@
 int
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::less<std::shared_ptr<A>> less;
 
   std::shared_ptr<A> empty;
@@ -81,8 +77,6 @@
 int
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   std::less<std::shared_ptr<A>> less;
 
   A a;
Index: testsuite/20_util/shared_ptr/cons/alias.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/alias.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/alias.cc	(working copy)
@@ -44,7 +44,7 @@
 
 int test01()
 {
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   std::shared_ptr<A> a;
   std::shared_ptr<bool> b1(a, &test);
@@ -62,8 +62,6 @@
 int
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> a(new A);
   std::shared_ptr<int> i1(a, &a->i);
   VERIFY( i1.use_count() == 2 );
@@ -78,8 +76,6 @@
 int
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<B> b(new B);
   std::shared_ptr<A> a1(b, b.get());
   std::shared_ptr<A> a2(b, &b->a);
Index: testsuite/20_util/shared_ptr/cons/alloc.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/alloc.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/alloc.cc	(working copy)
@@ -41,7 +41,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
   tracker_allocator_counter::reset();
 
   std::shared_ptr<A> p1(new A, deletefunc, tracker_allocator<A>());
@@ -68,7 +67,6 @@
 int
 test02()
 {
-  bool test __attribute__((unused)) = true;
   tracker_allocator_counter::reset();
 
   std::shared_ptr<A> p1(new A, deletefunc, tracker_allocator<A>());
Index: testsuite/20_util/shared_ptr/cons/auto_ptr.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/auto_ptr.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/auto_ptr.cc	(working copy)
@@ -31,8 +31,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::auto_ptr<A> a(new A);
   std::shared_ptr<A> a2(std::move(a));
   VERIFY( a.get() == 0 );
Index: testsuite/20_util/shared_ptr/cons/copy.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/copy.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/copy.cc	(working copy)
@@ -61,7 +61,6 @@
 int test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a1;
   std::shared_ptr<A> a2(a1);
@@ -78,7 +77,6 @@
 test02()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a1(new A);
   std::shared_ptr<A> a2(a1);
@@ -95,7 +93,6 @@
 test03()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<B> b(new B);
   std::shared_ptr<A> a(b);
@@ -112,7 +109,6 @@
 test04()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<B> b(new B, &deleter);
   std::shared_ptr<A> a(b);
Index: testsuite/20_util/shared_ptr/cons/default.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/default.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/default.cc	(working copy)
@@ -30,8 +30,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> a;
   VERIFY( a.get() == 0 );
 
Index: testsuite/20_util/shared_ptr/cons/move.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/move.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/move.cc	(working copy)
@@ -68,7 +68,6 @@
 int test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a1;
   std::shared_ptr<A> a2(std::move(a1));
@@ -86,7 +85,6 @@
 test02()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a1(new A);
   std::shared_ptr<A> a2(std::move(a1));
@@ -102,7 +100,6 @@
 test03()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<B> b(new B);
   std::shared_ptr<A> a(std::move(b));
@@ -120,7 +117,6 @@
 test04()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<B> b(new B, D());
   std::shared_ptr<A> a(std::move(b));
@@ -142,7 +138,6 @@
 test05()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a(std::move(std::shared_ptr<A>(new A)));
   VERIFY( a.use_count() == 1 );
Index: testsuite/20_util/shared_ptr/cons/nullptr.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/nullptr.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/nullptr.cc	(working copy)
@@ -39,8 +39,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<int> p = nullptr;
   VERIFY( p.get() == nullptr );
   VERIFY( p.use_count() == 0 );
@@ -50,8 +48,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   deleter d;
   std::shared_ptr<int> p(nullptr, std::ref(d));
   VERIFY( p.get() == nullptr );
@@ -66,8 +62,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   deleter d;
   __gnu_test::tracker_allocator<int> a;
   std::shared_ptr<int> p(nullptr, std::ref(d), a);
Index: testsuite/20_util/shared_ptr/cons/pointer.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/pointer.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/pointer.cc	(working copy)
@@ -33,8 +33,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   A * const a = 0;
   std::shared_ptr<A> p(a);
   VERIFY( p.get() == 0 );
@@ -46,8 +44,6 @@
 int
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   A * const a = new A;
   std::shared_ptr<A> p(a);
   VERIFY( p.get() == a );
@@ -60,8 +56,6 @@
 int
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   B * const b = new B;
   std::shared_ptr<A> p(b);
   VERIFY( p.get() == b );
Index: testsuite/20_util/shared_ptr/cons/unique_ptr.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/unique_ptr.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/unique_ptr.cc	(working copy)
@@ -30,8 +30,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A> up(new A);
   std::shared_ptr<A> sp(std::move(up));
   VERIFY( up.get() == 0 );
Index: testsuite/20_util/shared_ptr/cons/unique_ptr_array.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/unique_ptr_array.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/unique_ptr_array.cc	(working copy)
@@ -35,8 +35,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A[]> up(new A[2]);
   std::shared_ptr<A> sp(std::move(up));
   VERIFY( up.get() == 0 );
Index: testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc	(working copy)
@@ -37,8 +37,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A, D> up(new A, D());
   {
       std::shared_ptr<A> sp(std::move(up));
@@ -52,8 +50,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   D::count = 0;
   std::unique_ptr<A, D> up;
   {
Index: testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_1.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_1.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_1.cc	(working copy)
@@ -37,8 +37,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   D d = D();
   std::unique_ptr<A, D&> up(new A, d);
   {
Index: testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_2.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_2.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_2.cc	(working copy)
@@ -39,8 +39,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   D d;
   std::unique_ptr<A, D&> p1(new A, d);
 
Index: testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc	(working copy)
@@ -30,8 +30,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A> a;
   std::shared_ptr<A> p(a); // { dg-error "" }
 
Index: testsuite/20_util/shared_ptr/cons/weak_ptr.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/weak_ptr.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/cons/weak_ptr.cc	(working copy)
@@ -30,8 +30,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   A * const a = new A;
   std::shared_ptr<A> a1(a);
   std::weak_ptr<A> wa(a1);
Index: testsuite/20_util/shared_ptr/creation/alloc.cc
===================================================================
--- testsuite/20_util/shared_ptr/creation/alloc.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/creation/alloc.cc	(working copy)
@@ -56,7 +56,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   reset_count_struct __attribute__((unused)) reset;
 
   {
@@ -74,7 +73,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
   reset_count_struct __attribute__((unused)) reset;
 
   std::shared_ptr<A> p1;
Index: testsuite/20_util/shared_ptr/creation/dr402.cc
===================================================================
--- testsuite/20_util/shared_ptr/creation/dr402.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/creation/dr402.cc	(working copy)
@@ -21,12 +21,11 @@
 
 #include <memory>
 #include <new>
-#include <testsuite_hooks.h>
 
 struct A
 {
-    void* operator new(size_t n) { return new char[sizeof(A)]; }
-    void operator delete(void* p, size_t) { delete (char*)p; }
+  void* operator new(size_t n) { return new char[sizeof(A)]; }
+  void operator delete(void* p, size_t) { delete (char*)p; }
 };
 
 // 20.6.6.2.6 shared_ptr creation [util.smartptr.shared.create]
@@ -34,8 +33,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> p = std::make_shared<A>();
 }
 
Index: testsuite/20_util/shared_ptr/creation/dr925.cc
===================================================================
--- testsuite/20_util/shared_ptr/creation/dr925.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/creation/dr925.cc	(working copy)
@@ -42,8 +42,6 @@
 void 
 process(std::shared_ptr<A> a)
 {
-  bool test __attribute__((unused)) = true;
-
   VERIFY( a.get() != 0 );
   VERIFY( a.use_count() == 1 );
 }
Index: testsuite/20_util/shared_ptr/creation/make.cc
===================================================================
--- testsuite/20_util/shared_ptr/creation/make.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/creation/make.cc	(working copy)
@@ -51,7 +51,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   reset_count_struct __attribute__((unused)) reset;
 
   {
@@ -66,7 +65,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
   reset_count_struct __attribute__((unused)) reset;
 
   std::shared_ptr<A> p1;
Index: testsuite/20_util/shared_ptr/dest/dest.cc
===================================================================
--- testsuite/20_util/shared_ptr/dest/dest.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/dest/dest.cc	(working copy)
@@ -69,7 +69,6 @@
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   {
     std::shared_ptr<A> a;
@@ -88,7 +87,6 @@
 test02()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a;
   {
@@ -108,7 +106,6 @@
 test03()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   {
     std::shared_ptr<A> a1(new B);
Index: testsuite/20_util/shared_ptr/hash/1.cc
===================================================================
--- testsuite/20_util/shared_ptr/hash/1.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/hash/1.cc	(working copy)
@@ -24,8 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   struct T { };
 
   std::shared_ptr<T>                s0(new T);
Index: testsuite/20_util/shared_ptr/misc/24595.cc
===================================================================
--- testsuite/20_util/shared_ptr/misc/24595.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/misc/24595.cc	(working copy)
@@ -27,8 +27,6 @@
 // libstdc++/24595
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<int> sp;
   VERIFY( !get_deleter<void(*)(int*)>(sp) );
 }
Index: testsuite/20_util/shared_ptr/misc/42019.cc
===================================================================
--- testsuite/20_util/shared_ptr/misc/42019.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/misc/42019.cc	(working copy)
@@ -34,8 +34,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> spA = std::make_shared<A>();
 
   VERIFY( spA.get() != 0 );
@@ -43,8 +41,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<B> spB = std::make_shared<B>(99);
 
   VERIFY( spB->i == 99 );
Index: testsuite/20_util/shared_ptr/misc/io.cc
===================================================================
--- testsuite/20_util/shared_ptr/misc/io.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/misc/io.cc	(working copy)
@@ -31,8 +31,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> p(new A);
   std::ostringstream buf;
   buf << p;
Index: testsuite/20_util/shared_ptr/misc/swap.cc
===================================================================
--- testsuite/20_util/shared_ptr/misc/swap.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/misc/swap.cc	(working copy)
@@ -30,8 +30,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   A * const a1 = new A;
   A * const a2 = new A;
   std::shared_ptr<A> p1(a1);
Index: testsuite/20_util/shared_ptr/modifiers/reset.cc
===================================================================
--- testsuite/20_util/shared_ptr/modifiers/reset.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/modifiers/reset.cc	(working copy)
@@ -37,8 +37,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   A * const a = new A;
   std::shared_ptr<A> p1(a);
   std::shared_ptr<A> p2(p1);
@@ -52,8 +50,6 @@
 int
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   A * const a = new A;
   B * const b = new B;
   std::shared_ptr<A> p1(a);
@@ -68,8 +64,6 @@
 int
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   {
     std::shared_ptr<A> p1;
     p1.reset(new B, D());
Index: testsuite/20_util/shared_ptr/modifiers/reset_alloc.cc
===================================================================
--- testsuite/20_util/shared_ptr/modifiers/reset_alloc.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/modifiers/reset_alloc.cc	(working copy)
@@ -41,7 +41,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
   tracker_allocator_counter::reset();
 
   {
Index: testsuite/20_util/shared_ptr/modifiers/reset_neg.cc
===================================================================
--- testsuite/20_util/shared_ptr/modifiers/reset_neg.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/modifiers/reset_neg.cc	(working copy)
@@ -30,8 +30,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::shared_ptr<A> p1(new A);
   p1.reset();     // { dg-error "" }
 
Index: testsuite/20_util/shared_ptr/modifiers/swap.cc
===================================================================
--- testsuite/20_util/shared_ptr/modifiers/swap.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/modifiers/swap.cc	(working copy)
@@ -30,8 +30,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   A * const a1 = new A;
   A * const a2 = new A;
   std::shared_ptr<A> p1(a1);
Index: testsuite/20_util/shared_ptr/modifiers/swap_neg.cc
===================================================================
--- testsuite/20_util/shared_ptr/modifiers/swap_neg.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/modifiers/swap_neg.cc	(working copy)
@@ -30,8 +30,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::shared_ptr<A> p1(new A);
   std::shared_ptr<A> p2(new A);
   p1.swap(p2);   // { dg-error "discards qualifiers" }
Index: testsuite/20_util/shared_ptr/observers/bool_conv.cc
===================================================================
--- testsuite/20_util/shared_ptr/observers/bool_conv.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/observers/bool_conv.cc	(working copy)
@@ -30,8 +30,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::shared_ptr<A> p1;
   VERIFY( static_cast<bool>(p1) == false );
   const std::shared_ptr<A> p2(p1);
@@ -41,8 +39,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> p1(new A);
   VERIFY( static_cast<bool>(p1) );
   std::shared_ptr<A> p2(p1);
@@ -55,8 +51,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> p1(new A);
   std::shared_ptr<A> p2(p1);
   p2.reset(new A);
Index: testsuite/20_util/shared_ptr/observers/get.cc
===================================================================
--- testsuite/20_util/shared_ptr/observers/get.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/observers/get.cc	(working copy)
@@ -34,8 +34,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   A * const a = new A;
   const std::shared_ptr<A> p(a);
   VERIFY( p.get() == a );
@@ -45,8 +43,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   A * const a = new A;
   const std::shared_ptr<A> p(a);
   VERIFY( &*p == a );
@@ -56,8 +52,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   A * const a = new A;
   const std::shared_ptr<A> p(a);
   VERIFY( &p->i == &a->i );
@@ -66,8 +60,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
 #if !(defined _GLIBCXX_DEBUG && defined _GLIBCXX_DEBUG_PEDANTIC)
   std::shared_ptr<int> p;
   auto np = p.operator->();
Index: testsuite/20_util/shared_ptr/observers/owner_before.cc
===================================================================
--- testsuite/20_util/shared_ptr/observers/owner_before.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/observers/owner_before.cc	(working copy)
@@ -37,8 +37,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   // test empty shared_ptrs compare equivalent
   std::shared_ptr<A> p1;
   std::shared_ptr<B> p2;
@@ -50,8 +48,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> a0;
 
   std::shared_ptr<A> a1(new A);
@@ -77,8 +73,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> p1(new A());
   std::shared_ptr<int> p2(p1, &p1->i);
   VERIFY( !p1.owner_before(p2) && !p2.owner_before(p1) );
Index: testsuite/20_util/shared_ptr/observers/unique.cc
===================================================================
--- testsuite/20_util/shared_ptr/observers/unique.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/observers/unique.cc	(working copy)
@@ -30,8 +30,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::shared_ptr<A> p1;
   VERIFY( !p1.unique() );
   const std::shared_ptr<A> p2(p1);
@@ -41,8 +39,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> p1(new A);
   VERIFY( p1.unique() );
   std::shared_ptr<A> p2(p1);
@@ -55,8 +51,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> p1(new A);
   std::shared_ptr<A> p2(p1);
   p2.reset(new A);
Index: testsuite/20_util/shared_ptr/observers/use_count.cc
===================================================================
--- testsuite/20_util/shared_ptr/observers/use_count.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/observers/use_count.cc	(working copy)
@@ -31,8 +31,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::shared_ptr<A> p1;
   VERIFY( p1.use_count() == 0 );
   const std::shared_ptr<A> p2(p1);
@@ -42,8 +40,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> p1(new A);
   std::shared_ptr<A> p2(p1);
   p1.reset();
@@ -54,8 +50,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> p1(new A);
   std::shared_ptr<A> p2(p1);
   p2.reset(new B);
Index: testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc
===================================================================
--- testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc	(working copy)
@@ -124,7 +124,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   sp_vector_t obj_pool(POOL_SIZE);
   
   for(auto& obj : obj_pool)
Index: testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc
===================================================================
--- testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc	(revision 241022)
+++ testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc	(working copy)
@@ -126,7 +126,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   sp_vector_t obj_pool(POOL_SIZE);
   
   for(auto& obj : obj_pool)
Index: testsuite/20_util/specialized_algorithms/uninitialized_copy/move_iterators/1.cc
===================================================================
--- testsuite/20_util/specialized_algorithms/uninitialized_copy/move_iterators/1.cc	(revision 241022)
+++ testsuite/20_util/specialized_algorithms/uninitialized_copy/move_iterators/1.cc	(working copy)
@@ -36,8 +36,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
   const int size = sizeof(inarray) / sizeof(int);
 
Index: testsuite/20_util/specialized_algorithms/uninitialized_copy_n/move_iterators/1.cc
===================================================================
--- testsuite/20_util/specialized_algorithms/uninitialized_copy_n/move_iterators/1.cc	(revision 241022)
+++ testsuite/20_util/specialized_algorithms/uninitialized_copy_n/move_iterators/1.cc	(working copy)
@@ -38,8 +38,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
   const int size = sizeof(inarray) / sizeof(int);
 
Index: testsuite/20_util/temporary_buffer.cc
===================================================================
--- testsuite/20_util/temporary_buffer.cc	(revision 241022)
+++ testsuite/20_util/temporary_buffer.cc	(working copy)
@@ -26,8 +26,6 @@
 
 int main(void)
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::pair<junk*, std::ptrdiff_t> pair_type;
   pair_type results = std::get_temporary_buffer<junk>(5);
 
Index: testsuite/20_util/time_point/1.cc
===================================================================
--- testsuite/20_util/time_point/1.cc	(revision 241022)
+++ testsuite/20_util/time_point/1.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   time_point<system_clock> t1;
Index: testsuite/20_util/time_point/2.cc
===================================================================
--- testsuite/20_util/time_point/2.cc	(revision 241022)
+++ testsuite/20_util/time_point/2.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   time_point<system_clock> t1, t2;
@@ -42,7 +41,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   time_point<system_clock> t1;
Index: testsuite/20_util/time_point/3.cc
===================================================================
--- testsuite/20_util/time_point/3.cc	(revision 241022)
+++ testsuite/20_util/time_point/3.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   time_point<system_clock> t1(seconds(1));
Index: testsuite/20_util/time_point/nonmember/constexpr.cc
===================================================================
--- testsuite/20_util/time_point/nonmember/constexpr.cc	(revision 241022)
+++ testsuite/20_util/time_point/nonmember/constexpr.cc	(working copy)
@@ -22,7 +22,6 @@
 
 int main()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   typedef time_point<system_clock> time_type;
Index: testsuite/20_util/tuple/48476.cc
===================================================================
--- testsuite/20_util/tuple/48476.cc	(revision 241022)
+++ testsuite/20_util/tuple/48476.cc	(working copy)
@@ -29,8 +29,6 @@
 // libstdc++/48476
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<int> p(new int()), q, r;
   
   std::tuple<std::shared_ptr<int>&, int>  t0(p, 23), t1(q, 0);
Index: testsuite/20_util/tuple/comparison_operators/comparisons.cc
===================================================================
--- testsuite/20_util/tuple/comparison_operators/comparisons.cc	(revision 241022)
+++ testsuite/20_util/tuple/comparison_operators/comparisons.cc	(working copy)
@@ -24,8 +24,6 @@
 
 using namespace std;
 
-bool test __attribute__((unused)) = true;
-
 #define TEST1(x) VERIFY( x == x && !(x != x) && x <= x && !(x < x) )
 
 int
Index: testsuite/20_util/tuple/cons/allocators.cc
===================================================================
--- testsuite/20_util/tuple/cons/allocators.cc	(revision 241022)
+++ testsuite/20_util/tuple/cons/allocators.cc	(working copy)
@@ -102,7 +102,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::allocator_arg;
   using std::tuple;
   using std::make_tuple;
@@ -164,7 +163,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   using std::allocator_arg;
   using std::tuple;
   using std::make_tuple;
Index: testsuite/20_util/tuple/cons/assignment.cc
===================================================================
--- testsuite/20_util/tuple/cons/assignment.cc	(revision 241022)
+++ testsuite/20_util/tuple/cons/assignment.cc	(working copy)
@@ -27,8 +27,6 @@
 int
 main()
 {
-  bool test __attribute__((unused)) = true;
-
   tuple<> ta;
   tuple<> tb;
   ta = tb;
Index: testsuite/20_util/tuple/cons/big_tuples.cc
===================================================================
--- testsuite/20_util/tuple/cons/big_tuples.cc	(revision 241022)
+++ testsuite/20_util/tuple/cons/big_tuples.cc	(working copy)
@@ -32,8 +32,6 @@
 void
 test_constructors()
 {
-  bool test __attribute__((unused)) = true;
-
   int x1=0,x2=0;
   const int &z1=x1;
 
Index: testsuite/20_util/tuple/cons/constructor.cc
===================================================================
--- testsuite/20_util/tuple/cons/constructor.cc	(revision 241022)
+++ testsuite/20_util/tuple/cons/constructor.cc	(working copy)
@@ -28,8 +28,6 @@
 int
 main()
 {
-  bool test __attribute__((unused)) = true;
-
   int x1=0,x2=0;
   const int &z1=x1;
 
Index: testsuite/20_util/tuple/creation_functions/23978.cc
===================================================================
--- testsuite/20_util/tuple/creation_functions/23978.cc	(revision 241022)
+++ testsuite/20_util/tuple/creation_functions/23978.cc	(working copy)
@@ -28,8 +28,6 @@
 // libstdc++/23978
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   pair<int, int> p(1, 2);
   int x = 0;
   int y = 0;
Index: testsuite/20_util/tuple/creation_functions/48476.cc
===================================================================
--- testsuite/20_util/tuple/creation_functions/48476.cc	(revision 241022)
+++ testsuite/20_util/tuple/creation_functions/48476.cc	(working copy)
@@ -29,8 +29,6 @@
   void
   check_tuple_cat(std::tuple<Args1...> t1, std::tuple<Args2...> t2)
   {
-    bool test __attribute__((unused)) = true;
-
     typedef std::tuple<Args1..., Args2...> concatenated;
   
     auto cat1 = std::tuple_cat(     t1,       t2 );
Index: testsuite/20_util/tuple/creation_functions/constexpr.cc
===================================================================
--- testsuite/20_util/tuple/creation_functions/constexpr.cc	(revision 241022)
+++ testsuite/20_util/tuple/creation_functions/constexpr.cc	(working copy)
@@ -24,9 +24,6 @@
 
 #include <tuple>
 
-bool test __attribute__((unused)) = true;
-
-
 // make_tuple
 void
 test_make_tuple()
Index: testsuite/20_util/tuple/creation_functions/forward_as_tuple.cc
===================================================================
--- testsuite/20_util/tuple/creation_functions/forward_as_tuple.cc	(revision 241022)
+++ testsuite/20_util/tuple/creation_functions/forward_as_tuple.cc	(working copy)
@@ -28,8 +28,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::forward_as_tuple();
 
   VERIFY( std::get<0>(std::forward_as_tuple(-1)) == -1 );
Index: testsuite/20_util/tuple/creation_functions/make_tuple.cc
===================================================================
--- testsuite/20_util/tuple/creation_functions/make_tuple.cc	(revision 241022)
+++ testsuite/20_util/tuple/creation_functions/make_tuple.cc	(working copy)
@@ -28,8 +28,6 @@
 int
 main()
 {
-  bool test __attribute__((unused)) = true;
-
   int i=0;
   make_tuple(1,2,4.0);
   make_tuple(ref(i)) = tuple<int>(1);
Index: testsuite/20_util/tuple/creation_functions/tie.cc
===================================================================
--- testsuite/20_util/tuple/creation_functions/tie.cc	(revision 241022)
+++ testsuite/20_util/tuple/creation_functions/tie.cc	(working copy)
@@ -27,8 +27,6 @@
 int
 main()
 {
-  bool test __attribute__((unused)) = true; 
-
   int x1 = 0;
   int x2 = 0;
   int y1 = 0;
Index: testsuite/20_util/tuple/creation_functions/tie2.cc
===================================================================
--- testsuite/20_util/tuple/creation_functions/tie2.cc	(revision 241022)
+++ testsuite/20_util/tuple/creation_functions/tie2.cc	(working copy)
@@ -26,7 +26,6 @@
 int
 main()
 {
-  bool test __attribute__((unused)) = true; 
   using namespace std;
 
   int i;
Index: testsuite/20_util/tuple/cv_tuple_size.cc
===================================================================
--- testsuite/20_util/tuple/cv_tuple_size.cc	(revision 241022)
+++ testsuite/20_util/tuple/cv_tuple_size.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   VERIFY( tuple_size<const tuple<> >::value == 0 );
Index: testsuite/20_util/tuple/element_access/get.cc
===================================================================
--- testsuite/20_util/tuple/element_access/get.cc	(revision 241022)
+++ testsuite/20_util/tuple/element_access/get.cc	(working copy)
@@ -27,8 +27,6 @@
 int
 main()
 {
-  bool test __attribute__((unused)) = true;
-
   int j=1;
   const int k=2;
   tuple<int,int &,const int&> a(0,j,k);
Index: testsuite/20_util/tuple/element_access/get_by_type.cc
===================================================================
--- testsuite/20_util/tuple/element_access/get_by_type.cc	(revision 241022)
+++ testsuite/20_util/tuple/element_access/get_by_type.cc	(working copy)
@@ -27,8 +27,6 @@
 int
 main()
 {
-  bool test __attribute__((unused)) = true;
-
   int j=1;
   const int k=2;
   tuple<int,int &,const int&> a(0,j,k);
Index: testsuite/20_util/tuple/moveable.cc
===================================================================
--- testsuite/20_util/tuple/moveable.cc	(revision 241022)
+++ testsuite/20_util/tuple/moveable.cc	(working copy)
@@ -28,8 +28,6 @@
 
 int main()
 {
-  bool test __attribute__((unused)) = true;
-
   std::tuple<int, double> a(1, 2.0), b;
   b = std::move(a);
   VERIFY( std::get<0>(b) == 1 && std::get<1>(b) == 2.0 );
Index: testsuite/20_util/tuple/swap.cc
===================================================================
--- testsuite/20_util/tuple/swap.cc	(revision 241022)
+++ testsuite/20_util/tuple/swap.cc	(working copy)
@@ -56,8 +56,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::tuple<> t1, t2;
   std::swap(t1, t2);
 
@@ -66,8 +64,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::tuple<int> t1(1), t2(2);
   std::swap(t1, t2);
   
@@ -76,8 +72,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
-
   std::tuple<int, float> t1(1, 1.0f), t2(2, 2.0f);
   std::swap(t1, t2);
 
@@ -87,8 +81,6 @@
 
 void test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::tuple<int, float, MoveOnly> 
     t1(1, 1.0f, make_move_only(1)), 
     t2(2, 2.0f, make_move_only(2));
Index: testsuite/20_util/tuple/tuple_size.cc
===================================================================
--- testsuite/20_util/tuple/tuple_size.cc	(revision 241022)
+++ testsuite/20_util/tuple/tuple_size.cc	(working copy)
@@ -27,8 +27,6 @@
 int
 main()
 {
-  bool test __attribute__((unused)) = true;
-
   static_assert(tuple_size<tuple<>>::value == 0, "");
   static_assert(tuple_size<tuple<int>>::value == 1, "");
   static_assert(tuple_size<tuple<void>>::value == 1, "");
Index: testsuite/20_util/typeindex/comparison_operators.cc
===================================================================
--- testsuite/20_util/typeindex/comparison_operators.cc	(revision 241022)
+++ testsuite/20_util/typeindex/comparison_operators.cc	(working copy)
@@ -50,7 +50,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   class Abraca { };
Index: testsuite/20_util/typeindex/hash.cc
===================================================================
--- testsuite/20_util/typeindex/hash.cc	(revision 241022)
+++ testsuite/20_util/typeindex/hash.cc	(working copy)
@@ -24,7 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   class Abraca { };
Index: testsuite/20_util/typeindex/hash_code.cc
===================================================================
--- testsuite/20_util/typeindex/hash_code.cc	(revision 241022)
+++ testsuite/20_util/typeindex/hash_code.cc	(working copy)
@@ -24,7 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   class Abraca { };
Index: testsuite/20_util/typeindex/name.cc
===================================================================
--- testsuite/20_util/typeindex/name.cc	(revision 241022)
+++ testsuite/20_util/typeindex/name.cc	(working copy)
@@ -24,7 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   class Abraca { };
Index: testsuite/20_util/unique_ptr/assign/48635.cc
===================================================================
--- testsuite/20_util/unique_ptr/assign/48635.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/assign/48635.cc	(working copy)
@@ -29,7 +29,6 @@
   Deleter&
   operator=(const Deleter&)
   {
-    bool test __attribute__((unused)) = true;
     VERIFY( true );
     return *this;
   }
@@ -37,7 +36,6 @@
   Deleter&
   operator=(Deleter&&)
   {
-    bool test __attribute__((unused)) = true;
     VERIFY( false );
     return *this;
   }
Index: testsuite/20_util/unique_ptr/assign/move.cc
===================================================================
--- testsuite/20_util/unique_ptr/assign/move.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/assign/move.cc	(working copy)
@@ -28,8 +28,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   D *d = new D;
   std::unique_ptr<D> p1(d);
   std::unique_ptr<D> p2(new D);
Index: testsuite/20_util/unique_ptr/assign/move_array.cc
===================================================================
--- testsuite/20_util/unique_ptr/assign/move_array.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/assign/move_array.cc	(working copy)
@@ -28,8 +28,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   D *d = new D[3];
   std::unique_ptr<D[]> p1(d);
   std::unique_ptr<D[]> p2;
Index: testsuite/20_util/unique_ptr/assign/nullptr.cc
===================================================================
--- testsuite/20_util/unique_ptr/assign/nullptr.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/assign/nullptr.cc	(working copy)
@@ -27,8 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A> p(new A);
   p = nullptr;
 
@@ -38,8 +36,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A[]> p(new A[2]);
   p = nullptr;
 
Index: testsuite/20_util/unique_ptr/cons/auto_ptr.cc
===================================================================
--- testsuite/20_util/unique_ptr/cons/auto_ptr.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/cons/auto_ptr.cc	(working copy)
@@ -31,8 +31,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::auto_ptr<A> a(new A);
   std::unique_ptr<A> a2(std::move(a));
   VERIFY( a.get() == nullptr );
Index: testsuite/20_util/unique_ptr/cons/nullptr.cc
===================================================================
--- testsuite/20_util/unique_ptr/cons/nullptr.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/cons/nullptr.cc	(working copy)
@@ -27,8 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A> p = nullptr;
 
   VERIFY( p.get() == nullptr );
@@ -37,8 +35,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A[]> p = nullptr;
 
   VERIFY( p.get() == nullptr );
Index: testsuite/20_util/unique_ptr/cons/pointer.cc
===================================================================
--- testsuite/20_util/unique_ptr/cons/pointer.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/cons/pointer.cc	(working copy)
@@ -61,7 +61,6 @@
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::unique_ptr<A> A_default;
   VERIFY( A_default.get() == 0 );
@@ -89,7 +88,6 @@
 test02()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   A * const A_default = 0;
   std::unique_ptr<A> p1(A_default);
Index: testsuite/20_util/unique_ptr/cons/pointer_array.cc
===================================================================
--- testsuite/20_util/unique_ptr/cons/pointer_array.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/cons/pointer_array.cc	(working copy)
@@ -60,7 +60,6 @@
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::unique_ptr<A[]> A_default;
   VERIFY( A_default.get() == 0 );
Index: testsuite/20_util/unique_ptr/cons/ptr_deleter.cc
===================================================================
--- testsuite/20_util/unique_ptr/cons/ptr_deleter.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/cons/ptr_deleter.cc	(working copy)
@@ -30,7 +30,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   count = 0;
   {
     std::unique_ptr<int, void(*)(int*)> p(nullptr, del);
@@ -45,7 +44,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
   count = 0;
   {
     std::unique_ptr<int[], void(*)(int*)> p(nullptr, vdel);
Index: testsuite/20_util/unique_ptr/creation/array.cc
===================================================================
--- testsuite/20_util/unique_ptr/creation/array.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/creation/array.cc	(working copy)
@@ -32,8 +32,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A[]> a = std::make_unique<A[]>(3);
   VERIFY( a != nullptr );
   VERIFY( a[0].b && a[1].b && a[2].b );
Index: testsuite/20_util/unique_ptr/creation/single.cc
===================================================================
--- testsuite/20_util/unique_ptr/creation/single.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/creation/single.cc	(working copy)
@@ -32,8 +32,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   int i = 0;
   double d = 0;
   char c = 0;
Index: testsuite/20_util/unique_ptr/hash/1.cc
===================================================================
--- testsuite/20_util/unique_ptr/hash/1.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/hash/1.cc	(working copy)
@@ -24,8 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   struct T { };
 
   std::unique_ptr<T>                                 u0(new T);
Index: testsuite/20_util/unique_ptr/modifiers/43183.cc
===================================================================
--- testsuite/20_util/unique_ptr/modifiers/43183.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/modifiers/43183.cc	(working copy)
@@ -36,8 +36,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<int, D> up;
   up.reset();
   VERIFY( D::count == 0 );
Index: testsuite/20_util/unique_ptr/specialized_algorithms/comparisons.cc
===================================================================
--- testsuite/20_util/unique_ptr/specialized_algorithms/comparisons.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/specialized_algorithms/comparisons.cc	(working copy)
@@ -36,8 +36,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A> p1;
   std::unique_ptr<A> p2;
 
@@ -49,8 +47,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-  
   std::unique_ptr<A> p1;
   std::unique_ptr<A> p2(new A);
 
Index: testsuite/20_util/unique_ptr/specialized_algorithms/comparisons_array.cc
===================================================================
--- testsuite/20_util/unique_ptr/specialized_algorithms/comparisons_array.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/specialized_algorithms/comparisons_array.cc	(working copy)
@@ -36,8 +36,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A[]> p1;
   std::unique_ptr<A[]> p2;
 
@@ -49,8 +47,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-  
   std::unique_ptr<A[]> p1;
   std::unique_ptr<A[]> p2(new A[3]);
 
Index: testsuite/20_util/unique_ptr/specialized_algorithms/swap.cc
===================================================================
--- testsuite/20_util/unique_ptr/specialized_algorithms/swap.cc	(revision 241022)
+++ testsuite/20_util/unique_ptr/specialized_algorithms/swap.cc	(working copy)
@@ -27,8 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
- 
   std::unique_ptr<A> p1;
   std::unique_ptr<A> p2(new A);
   std::unique_ptr<A> p3;
Index: testsuite/20_util/uses_allocator/construction.cc
===================================================================
--- testsuite/20_util/uses_allocator/construction.cc	(revision 241022)
+++ testsuite/20_util/uses_allocator/construction.cc	(working copy)
@@ -91,8 +91,6 @@
 template<typename... T>
   void test(T... args)
   {
-    bool test __attribute__((unused)) = true;
-
     VERIFY( test2<CannotUse>(args...) );
     VERIFY( test2<DoesNotUse>(args...) );
     VERIFY( test2<UsesWithTag>(args...) );
Index: testsuite/20_util/uses_allocator/value.cc
===================================================================
--- testsuite/20_util/uses_allocator/value.cc	(revision 241022)
+++ testsuite/20_util/uses_allocator/value.cc	(working copy)
@@ -38,7 +38,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::uses_allocator;
   using namespace __gnu_test;
 
Index: testsuite/20_util/variant/run.cc
===================================================================
--- testsuite/20_util/variant/run.cc	(revision 241022)
+++ testsuite/20_util/variant/run.cc	(working copy)
@@ -51,8 +51,6 @@
 
 void default_ctor()
 {
-  bool test [[gnu::unused]] = true;
-
   variant<monostate, string> v;
   VERIFY(holds_alternative<monostate>(v));
 }
@@ -59,8 +57,6 @@
 
 void copy_ctor()
 {
-  bool test [[gnu::unused]] = true;
-
   variant<monostate, string> v("a");
   VERIFY(holds_alternative<string>(v));
   variant<monostate, string> u(v);
@@ -70,8 +66,6 @@
 
 void move_ctor()
 {
-  bool test [[gnu::unused]] = true;
-
   variant<monostate, string> v("a");
   VERIFY(holds_alternative<string>(v));
   variant<monostate, string> u(std::move(v));
@@ -82,8 +76,6 @@
 
 void arbitrary_ctor()
 {
-  bool test [[gnu::unused]] = true;
-
   variant<int, string> v("a");
   VERIFY(holds_alternative<string>(v));
   VERIFY(get<1>(v) == "a");
@@ -91,8 +83,6 @@
 
 void copy_assign()
 {
-  bool test [[gnu::unused]] = true;
-
   variant<monostate, string> v("a");
   VERIFY(holds_alternative<string>(v));
   variant<monostate, string> u;
@@ -103,8 +93,6 @@
 
 void move_assign()
 {
-  bool test [[gnu::unused]] = true;
-
   variant<monostate, string> v("a");
   VERIFY(holds_alternative<string>(v));
   variant<monostate, string> u;
@@ -116,8 +104,6 @@
 
 void arbitrary_assign()
 {
-  bool test [[gnu::unused]] = true;
-
   variant<int, string> v;
   v = "a";
 
@@ -127,8 +113,6 @@
 
 void dtor()
 {
-  bool test [[gnu::unused]] = true;
-
   struct A {
       A(int& called) : called(called) {}
       ~A() {
@@ -150,8 +134,6 @@
 
 void in_place_index_ctor()
 {
-  bool test [[gnu::unused]] = true;
-
   {
     variant<int, string> v(in_place<1>, "a");
     VERIFY(holds_alternative<string>(v));
@@ -166,8 +148,6 @@
 
 void in_place_type_ctor()
 {
-  bool test [[gnu::unused]] = true;
-
   {
     variant<int, string> v(in_place<string>, "a");
     VERIFY(holds_alternative<string>(v));
@@ -206,8 +186,6 @@
 
 void uses_allocator_ctor()
 {
-  bool test [[gnu::unused]] = true;
-
   std::allocator<char> a;
   variant<UsesAllocatable> v(std::allocator_arg, a);
   VERIFY(get<0>(v).d == 0);
@@ -226,8 +204,6 @@
 
 void emplace()
 {
-  bool test [[gnu::unused]] = true;
-
   variant<int, string> v;
   v.emplace<0>(1);
   VERIFY(get<0>(v) == 1);
@@ -252,8 +228,6 @@
 
 void test_get()
 {
-  bool test [[gnu::unused]] = true;
-
   VERIFY(get<1>(variant<int, string>("a")) == "a");
   VERIFY(get<string>(variant<int, string>("a")) == "a");
   {
@@ -286,8 +260,6 @@
 
 void test_relational()
 {
-  bool test [[gnu::unused]] = true;
-
   VERIFY((variant<int, string>(2) < variant<int, string>(3)));
   VERIFY((variant<int, string>(3) == variant<int, string>(3)));
   VERIFY((variant<int, string>(3) > variant<int, string>(2)));
@@ -303,8 +275,6 @@
 
 void test_swap()
 {
-  bool test [[gnu::unused]] = true;
-
   variant<int, string> a("a"), b("b");
   a.swap(b);
   VERIFY(get<1>(a) == "b");
@@ -316,8 +286,6 @@
 
 void test_visit()
 {
-  bool test [[gnu::unused]] = true;
-
   {
     struct Visitor
     {
@@ -383,8 +351,6 @@
 
 void test_hash()
 {
-  bool test [[gnu::unused]] = true;
-
   unordered_set<variant<int, string>> s;
   VERIFY(s.emplace(3).second);
   VERIFY(s.emplace("asdf").second);
@@ -419,8 +385,6 @@
 
 void test_valueless_by_exception()
 {
-  bool test [[gnu::unused]] = true;
-
   {
     AlwaysThrow a;
     bool caught = false;
Index: testsuite/20_util/weak_ptr/observers/owner_before.cc
===================================================================
--- testsuite/20_util/weak_ptr/observers/owner_before.cc	(revision 241022)
+++ testsuite/20_util/weak_ptr/observers/owner_before.cc	(working copy)
@@ -30,8 +30,6 @@
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   // test empty weak_ptrs compare equivalent
   std::weak_ptr<A> p1;
   std::weak_ptr<B> p2;
@@ -47,8 +45,6 @@
 int
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> a0;
   std::weak_ptr<A> w0(a0);
 
Index: testsuite/21_strings/basic_string/allocator/char/copy.cc
===================================================================
--- testsuite/21_strings/basic_string/allocator/char/copy.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/allocator/char/copy.cc	(working copy)
@@ -30,7 +30,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, false> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
@@ -48,7 +47,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, true> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
@@ -66,7 +64,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, true> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
Index: testsuite/21_strings/basic_string/allocator/char/copy_assign.cc
===================================================================
--- testsuite/21_strings/basic_string/allocator/char/copy_assign.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/allocator/char/copy_assign.cc	(working copy)
@@ -30,7 +30,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, false> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
@@ -66,7 +65,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, true> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
Index: testsuite/21_strings/basic_string/allocator/char/move.cc
===================================================================
--- testsuite/21_strings/basic_string/allocator/char/move.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/allocator/char/move.cc	(working copy)
@@ -30,7 +30,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef uneq_allocator<C> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
@@ -42,7 +41,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   typedef uneq_allocator<C> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
Index: testsuite/21_strings/basic_string/allocator/char/move_assign.cc
===================================================================
--- testsuite/21_strings/basic_string/allocator/char/move_assign.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/allocator/char/move_assign.cc	(working copy)
@@ -30,7 +30,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, false> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
 
@@ -69,7 +68,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, true> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
 
@@ -108,7 +106,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, false> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
 
Index: testsuite/21_strings/basic_string/allocator/char/swap.cc
===================================================================
--- testsuite/21_strings/basic_string/allocator/char/swap.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/allocator/char/swap.cc	(working copy)
@@ -47,7 +47,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, false> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
@@ -63,7 +62,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, true> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
Index: testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc
===================================================================
--- testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc	(working copy)
@@ -30,7 +30,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, false> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
@@ -48,7 +47,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, true> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
@@ -66,7 +64,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, true> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
Index: testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc
===================================================================
--- testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc	(working copy)
@@ -30,7 +30,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, false> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
@@ -66,7 +65,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, true> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
Index: testsuite/21_strings/basic_string/allocator/wchar_t/move.cc
===================================================================
--- testsuite/21_strings/basic_string/allocator/wchar_t/move.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/allocator/wchar_t/move.cc	(working copy)
@@ -30,7 +30,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef uneq_allocator<C> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
@@ -42,7 +41,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   typedef uneq_allocator<C> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
Index: testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc
===================================================================
--- testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc	(working copy)
@@ -30,7 +30,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, false> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
 
@@ -69,7 +68,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, true> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
 
@@ -108,7 +106,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, false> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
 
Index: testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc
===================================================================
--- testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc	(working copy)
@@ -47,7 +47,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, false> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
@@ -63,7 +62,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   typedef propagating_allocator<C, true> alloc_type;
   typedef std::basic_string<C, traits, alloc_type> test_type;
   test_type v1(alloc_type(1));
Index: testsuite/21_strings/basic_string/capacity/1.cc
===================================================================
--- testsuite/21_strings/basic_string/capacity/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/capacity/1.cc	(working copy)
@@ -125,8 +125,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   // non POD types : resize, capacity, reserve
   std::basic_string< A<B> > str02;
   typedef std::basic_string< A<B> >::size_type size_type_o;
Index: testsuite/21_strings/basic_string/capacity/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/capacity/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/capacity/char/1.cc	(working copy)
@@ -25,7 +25,6 @@
 void test01()
 {
   // POD types : resize, capacity, reserve
-  bool test __attribute__((unused)) = true;
   std::string str01;
   typedef std::string::size_type size_type_s;
 
Index: testsuite/21_strings/basic_string/capacity/char/18654.cc
===================================================================
--- testsuite/21_strings/basic_string/capacity/char/18654.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/capacity/char/18654.cc	(working copy)
@@ -32,7 +32,6 @@
 void test01()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   typedef string::size_type size_type;
 
Index: testsuite/21_strings/basic_string/capacity/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string/capacity/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/capacity/char/2.cc	(working copy)
@@ -26,8 +26,6 @@
 // http://gcc.gnu.org/ml/libstdc++/2001-11/msg00150.html
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str01 = "twelve chars";
   // str01 becomes shared
   std::string str02 = str01;
Index: testsuite/21_strings/basic_string/capacity/char/shrink_to_fit.cc
===================================================================
--- testsuite/21_strings/basic_string/capacity/char/shrink_to_fit.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/capacity/char/shrink_to_fit.cc	(working copy)
@@ -25,8 +25,6 @@
 // libstdc++/42573
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string s(100, 'a');
   s.push_back('b');
   s.push_back('b');
Index: testsuite/21_strings/basic_string/capacity/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/capacity/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/capacity/wchar_t/1.cc	(working copy)
@@ -25,7 +25,6 @@
 void test01()
 {
   // POD types : resize, capacity, reserve
-  bool test __attribute__((unused)) = true;
   std::wstring str01;
   typedef std::wstring::size_type size_type_s;
 
Index: testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc
===================================================================
--- testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc	(working copy)
@@ -32,7 +32,6 @@
 void test01()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   typedef wstring::size_type size_type;
 
Index: testsuite/21_strings/basic_string/capacity/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string/capacity/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/capacity/wchar_t/2.cc	(working copy)
@@ -26,8 +26,6 @@
 // http://gcc.gnu.org/ml/libstdc++/2001-11/msg00150.html
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str01 = L"twelve chars";
   // str01 becomes shared
   std::wstring str02 = str01;
Index: testsuite/21_strings/basic_string/capacity/wchar_t/shrink_to_fit.cc
===================================================================
--- testsuite/21_strings/basic_string/capacity/wchar_t/shrink_to_fit.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/capacity/wchar_t/shrink_to_fit.cc	(working copy)
@@ -25,8 +25,6 @@
 // libstdc++/42573
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring s(100, L'a');
   s.push_back(L'b');
   s.push_back(L'b');
Index: testsuite/21_strings/basic_string/cons/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/char/1.cc	(working copy)
@@ -26,7 +26,6 @@
 
 void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::iterator citerator;
   csize_type npos = std::string::npos;
Index: testsuite/21_strings/basic_string/cons/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/char/2.cc	(working copy)
@@ -24,8 +24,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   // template<typename _InputIter>
   //   basic_string(_InputIter begin, _InputIter end, const allocator& a)
   // where _InputIter is integral [21.3.1 para 15]
Index: testsuite/21_strings/basic_string/cons/char/3.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/char/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/char/3.cc	(working copy)
@@ -26,7 +26,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   const char* with_nulls = "This contains \0 a zero byte.";
 
   // These are tests to see how basic_string handles data with NUL
Index: testsuite/21_strings/basic_string/cons/char/4.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/char/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/char/4.cc	(working copy)
@@ -25,8 +25,6 @@
 // http://gcc.gnu.org/ml/libstdc++/2002-06/msg00025.html
 void test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str01("portofino");
 
   std::string::reverse_iterator i1 = str01.rbegin();
Index: testsuite/21_strings/basic_string/cons/char/42261.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/char/42261.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/char/42261.cc	(working copy)
@@ -21,7 +21,6 @@
 // libstdc++/42261
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   const string s(string::size_type(6), string::size_type('f'));
Index: testsuite/21_strings/basic_string/cons/char/5.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/char/5.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/char/5.cc	(working copy)
@@ -26,8 +26,6 @@
 // libstdc++/8347
 void test05()
 {
-  bool test __attribute__((unused)) = true;
-
   std::vector<char> empty;
   std::string empty2(empty.begin(), empty.end());
 
Index: testsuite/21_strings/basic_string/cons/char/6.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/char/6.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/char/6.cc	(working copy)
@@ -36,8 +36,6 @@
 
 void test01(int iter)
 {
-  bool test __attribute__((unused)) = true;
-
   for (long i = 0, j = 1; i < iter; ++i, j *= 3)
     {
       istringstream isstr(data(j));
Index: testsuite/21_strings/basic_string/cons/char/7.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/char/7.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/char/7.cc	(working copy)
@@ -24,8 +24,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string_view s("foo");
   std::string s2(s);
   
Index: testsuite/21_strings/basic_string/cons/char/8.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/char/8.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/char/8.cc	(working copy)
@@ -30,8 +30,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   using string = std::string;
   using list = std::initializer_list<string::value_type>;
 
Index: testsuite/21_strings/basic_string/cons/char/moveable.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/char/moveable.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/char/moveable.cc	(working copy)
@@ -28,8 +28,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string a, b;
   a.push_back('1');
   b = std::move(a);
Index: testsuite/21_strings/basic_string/cons/char/moveable2.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/char/moveable2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/char/moveable2.cc	(working copy)
@@ -37,8 +37,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   tstring a, b;
   a.push_back('1');
   b = std::move(a);
Index: testsuite/21_strings/basic_string/cons/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/wchar_t/1.cc	(working copy)
@@ -26,7 +26,6 @@
 
 void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::iterator citerator;
   csize_type npos = std::wstring::npos;
Index: testsuite/21_strings/basic_string/cons/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/wchar_t/2.cc	(working copy)
@@ -24,8 +24,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   // template<typename _InputIter>
   //   basic_string(_InputIter begin, _InputIter end, const allocator& a)
   // where _InputIter is integral [21.3.1 para 15]
Index: testsuite/21_strings/basic_string/cons/wchar_t/3.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/wchar_t/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/wchar_t/3.cc	(working copy)
@@ -26,7 +26,6 @@
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   const wchar_t* with_nulls = L"This contains \0 a zero byte.";
 
   // These are tests to see how basic_string handles data with NUL
Index: testsuite/21_strings/basic_string/cons/wchar_t/4.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/wchar_t/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/wchar_t/4.cc	(working copy)
@@ -25,8 +25,6 @@
 // http://gcc.gnu.org/ml/libstdc++/2002-06/msg00025.html
 void test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str01(L"portofino");
 
   std::wstring::reverse_iterator i1 = str01.rbegin();
Index: testsuite/21_strings/basic_string/cons/wchar_t/42261.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/wchar_t/42261.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/wchar_t/42261.cc	(working copy)
@@ -21,7 +21,6 @@
 // libstdc++/42261
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   const wstring s(wstring::size_type(6), wstring::size_type(L'f'));
Index: testsuite/21_strings/basic_string/cons/wchar_t/5.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/wchar_t/5.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/wchar_t/5.cc	(working copy)
@@ -26,8 +26,6 @@
 // libstdc++/8347
 void test05()
 {
-  bool test __attribute__((unused)) = true;
-
   std::vector<wchar_t> empty;
   std::wstring empty2(empty.begin(), empty.end());
 
Index: testsuite/21_strings/basic_string/cons/wchar_t/6.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/wchar_t/6.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/wchar_t/6.cc	(working copy)
@@ -42,8 +42,6 @@
 
 void test01(int iter)
 {
-  bool test __attribute__((unused)) = true;
-
   for (long i = 0, j = 1; i < iter; ++i, j *= 3)
     {
       wistringstream isstr(data(j));
Index: testsuite/21_strings/basic_string/cons/wchar_t/7.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/wchar_t/7.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/wchar_t/7.cc	(working copy)
@@ -24,8 +24,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring_view s(L"foo");
   std::wstring s2(s);
   
Index: testsuite/21_strings/basic_string/cons/wchar_t/8.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/wchar_t/8.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/wchar_t/8.cc	(working copy)
@@ -30,8 +30,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   using string = std::wstring;
   using list = std::initializer_list<string::value_type>;
 
Index: testsuite/21_strings/basic_string/cons/wchar_t/moveable.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/wchar_t/moveable.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/wchar_t/moveable.cc	(working copy)
@@ -28,8 +28,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring a, b;
   a.push_back(L'1');
   b = std::move(a);
Index: testsuite/21_strings/basic_string/cons/wchar_t/moveable2.cc
===================================================================
--- testsuite/21_strings/basic_string/cons/wchar_t/moveable2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/cons/wchar_t/moveable2.cc	(working copy)
@@ -37,8 +37,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   twstring a, b;
   a.push_back(L'1');
   b = std::move(a);
Index: testsuite/21_strings/basic_string/element_access/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/char/1.cc	(working copy)
@@ -23,9 +23,8 @@
 #include <stdexcept>
 #include <testsuite_hooks.h>
 
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
@@ -78,7 +77,6 @@
   catch(...) {
     VERIFY( false );
   }
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/element_access/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/char/2.cc	(working copy)
@@ -26,9 +26,8 @@
 // Do a quick sanity check on known problems with element access and
 // ref-counted strings. These should all pass, regardless of the
 // underlying string implementation, of course.
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::iterator siterator;
   typedef std::string::reverse_iterator sriterator;
@@ -100,7 +99,6 @@
   VERIFY( str03[0] == 'x' );
 
   // need to also test for const begin/const end
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/element_access/char/3.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/char/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/char/3.cc	(working copy)
@@ -25,9 +25,8 @@
 
 // Do another sanity check, this time for member functions that return
 // iterators, namely insert and erase.
-bool test02(void)
+void test02(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::iterator siterator;
   typedef std::string::reverse_iterator sriterator;
@@ -73,7 +72,6 @@
   std::string str13 = str12;
   *p2 = 'e';
   VERIFY( str12 != str13 );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/element_access/char/4.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/char/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/char/4.cc	(working copy)
@@ -25,7 +25,6 @@
 // http://gcc.gnu.org/ml/libstdc++/2004-01/msg00184.html
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   for (int i = 0; i < 2000; ++i)
Index: testsuite/21_strings/basic_string/element_access/char/58163.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/char/58163.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/char/58163.cc	(working copy)
@@ -24,8 +24,6 @@
 // PR c++/58163
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::string cs;
         std::string  s;
 
Index: testsuite/21_strings/basic_string/element_access/char/empty.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/char/empty.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/char/empty.cc	(working copy)
@@ -22,8 +22,6 @@
 // as per 21.3.4
 int main()
 {
-  bool test __attribute__((unused)) = true;
-  
   {
     std::string empty;
     char c = empty[0];
Index: testsuite/21_strings/basic_string/element_access/char/front_back.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/char/front_back.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/char/front_back.cc	(working copy)
@@ -25,8 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str("ramifications");
   const std::string cstr("melodien");
 
Index: testsuite/21_strings/basic_string/element_access/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/wchar_t/1.cc	(working copy)
@@ -23,9 +23,8 @@
 #include <stdexcept>
 #include <testsuite_hooks.h>
 
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
@@ -78,7 +77,6 @@
   catch(...) {
     VERIFY( false );
   }
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/element_access/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/wchar_t/2.cc	(working copy)
@@ -26,9 +26,8 @@
 // Do a quick sanity check on known problems with element access and
 // ref-counted strings. These should all pass, regardless of the
 // underlying string implementation, of course.
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::iterator siterator;
   typedef std::wstring::reverse_iterator sriterator;
@@ -100,8 +99,6 @@
   VERIFY( str03[0] == L'x' );
 
   // need to also test for const begin/const end
-  VERIFY(test);
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/element_access/wchar_t/3.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/wchar_t/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/wchar_t/3.cc	(working copy)
@@ -25,9 +25,8 @@
 
 // Do another sanity check, this time for member functions that return
 // iterators, namely insert and erase.
-bool test02(void)
+void test02(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::iterator siterator;
   typedef std::wstring::reverse_iterator sriterator;
@@ -73,7 +72,6 @@
   std::wstring str13 = str12;
   *p2 = L'e';
   VERIFY( str12 != str13 );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/element_access/wchar_t/4.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/wchar_t/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/wchar_t/4.cc	(working copy)
@@ -25,7 +25,6 @@
 // http://gcc.gnu.org/ml/libstdc++/2004-01/msg00184.html
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   for (int i = 0; i < 2000; ++i)
Index: testsuite/21_strings/basic_string/element_access/wchar_t/58163.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/wchar_t/58163.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/wchar_t/58163.cc	(working copy)
@@ -24,8 +24,6 @@
 // PR c++/58163
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::wstring cs;
         std::wstring  s;
 
Index: testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc	(working copy)
@@ -22,8 +22,6 @@
 // as per 21.3.4
 int main()
 {
-  bool test __attribute__((unused)) = true;
-  
   {
     std::wstring empty;
     wchar_t c = empty[0];
Index: testsuite/21_strings/basic_string/element_access/wchar_t/front_back.cc
===================================================================
--- testsuite/21_strings/basic_string/element_access/wchar_t/front_back.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/element_access/wchar_t/front_back.cc	(working copy)
@@ -25,8 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str(L"ramifications");
   const std::wstring cstr(L"melodien");
 
Index: testsuite/21_strings/basic_string/init-list.cc
===================================================================
--- testsuite/21_strings/basic_string/init-list.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/init-list.cc	(working copy)
@@ -25,8 +25,6 @@
 
 int test01(void)
 {
-  bool test = true;
-
   string s1 = { 'a', 'b', 'c' };
   VERIFY(s1 == "abc");
 
@@ -60,8 +58,6 @@
   i2 = i1+6;
   s1.replace(i1, i2, { 'y', 'z' });
   VERIFY(s1 == "mnyzo");
-
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/inserters_extractors/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/char/1.cc	(working copy)
@@ -30,9 +30,8 @@
 #include <iostream>
 #include <testsuite_hooks.h>
 
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
@@ -154,7 +153,6 @@
   
   std::string hello_world;
   std::cout << hello_world;
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/inserters_extractors/char/10.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/char/10.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/char/10.cc	(working copy)
@@ -42,8 +42,6 @@
 
 void check(istream& stream, const string& str, unsigned nchunks, char delim)
 {
-  bool test __attribute__((unused)) = true;
-
   string chunk;
   string::size_type index = 0, index_new = 0;
   unsigned n = 0;
Index: testsuite/21_strings/basic_string/inserters_extractors/char/11.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/char/11.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/char/11.cc	(working copy)
@@ -42,8 +42,6 @@
 
 void check(istream& stream, const string& str, unsigned nchunks)
 {
-  bool test __attribute__((unused)) = true;
-
   string chunk;
   string::size_type index = 0, index_new = 0;
   unsigned n = 0;
Index: testsuite/21_strings/basic_string/inserters_extractors/char/28277.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/char/28277.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/char/28277.cc	(working copy)
@@ -33,7 +33,6 @@
 void test01()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   ostringstream oss_01;
   const string str_01(50, 'a');
Index: testsuite/21_strings/basic_string/inserters_extractors/char/4.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/char/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/char/4.cc	(working copy)
@@ -31,7 +31,6 @@
 // based on a bug report libstdc++ 9
 void test04(std::size_t size)
 {
-  bool test __attribute__((unused)) = true;
   std::string str(size, 's');
   std::size_t expected_size = 2 * (size + 1);
   std::ostringstream oss(str);
@@ -43,11 +42,11 @@
   // stress test
   oss << str << std::endl;
   if (!oss.good()) 
-    test = false;
+    VERIFY( false );
 
   oss << str << std::endl;
   if (!oss.good()) 
-    test = false;
+    VERIFY( false );
 
   VERIFY( str.size() == size );
   VERIFY( oss.good() );
Index: testsuite/21_strings/basic_string/inserters_extractors/char/5.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/char/5.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/char/5.cc	(working copy)
@@ -35,7 +35,7 @@
 // mode == out
 void test05(std::size_t size)
 {
-  bool test __attribute__((unused)) = true;
+  bool test = true;
   const char filename[] = "inserters_extractors-1.txt";
   const char fillc = 'f';
   std::ofstream ofs(filename);
Index: testsuite/21_strings/basic_string/inserters_extractors/char/6.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/char/6.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/char/6.cc	(working copy)
@@ -32,8 +32,6 @@
 // http://gcc.gnu.org/ml/libstdc++/1999-q4/msg00049.html
 void test06(void)
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::string::size_type size_type;
   std::string str01("@silent");
   size_type i01 = str01.size();
Index: testsuite/21_strings/basic_string/inserters_extractors/char/7.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/char/7.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/char/7.cc	(working copy)
@@ -33,7 +33,6 @@
 // NB: this is a defect in the standard.
 void test07(void)
 {
-  bool test __attribute__((unused)) = true;
   const std::string name("z6.cc");
   std::istringstream iss (name);
   int i = 0;
Index: testsuite/21_strings/basic_string/inserters_extractors/char/8.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/char/8.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/char/8.cc	(working copy)
@@ -33,7 +33,6 @@
 {
   using namespace std;
 
-  bool test __attribute__((unused)) = true;
   istringstream istrm("enero:2001");
   int 		year;
   char 		sep;
Index: testsuite/21_strings/basic_string/inserters_extractors/char/9.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/char/9.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/char/9.cc	(working copy)
@@ -31,7 +31,6 @@
 // libstdc++/2830
 void test09()
 {
-  bool test __attribute__((unused)) = true;
   std::string blanks( 3, '\0');
   std::string foo = "peace";
   foo += blanks;
Index: testsuite/21_strings/basic_string/inserters_extractors/pod/10081-in.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/pod/10081-in.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/pod/10081-in.cc	(working copy)
@@ -34,8 +34,6 @@
   typedef basic_stringbuf<pod_ushort> 	stringbuf_type;
   typedef basic_istream<pod_ushort> 	istream_type;
 
-  bool test __attribute__((unused)) = true;
-
   string_type str;
   stringbuf_type strbuf01;
   istream_type stream(&strbuf01);
Index: testsuite/21_strings/basic_string/inserters_extractors/pod/10081-out.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/pod/10081-out.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/pod/10081-out.cc	(working copy)
@@ -34,8 +34,6 @@
   typedef basic_stringbuf<pod_ushort> 	stringbuf_type;
   typedef basic_ostream<pod_ushort> 	ostream_type;
 
-  bool test __attribute__((unused)) = true;
-
   string_type str;
   stringbuf_type strbuf01;
   ostream_type stream(&strbuf01);
Index: testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc	(working copy)
@@ -30,9 +30,8 @@
 #include <iostream>
 #include <testsuite_hooks.h>
 
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
@@ -154,7 +153,6 @@
   
   std::wstring hello_world;
   std::wcout << hello_world;
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc	(working copy)
@@ -46,8 +46,6 @@
 
 void check(wistream& stream, const wstring& str, unsigned nchunks, wchar_t delim)
 {
-  bool test __attribute__((unused)) = true;
-
   wstring chunk;
   wstring::size_type index = 0, index_new = 0;
   unsigned n = 0;
Index: testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc	(working copy)
@@ -46,8 +46,6 @@
 
 void check(wistream& stream, const wstring& str, unsigned nchunks)
 {
-  bool test __attribute__((unused)) = true;
-
   wstring chunk;
   wstring::size_type index = 0, index_new = 0;
   unsigned n = 0;
Index: testsuite/21_strings/basic_string/inserters_extractors/wchar_t/28277.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/wchar_t/28277.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/wchar_t/28277.cc	(working copy)
@@ -33,7 +33,6 @@
 void test01()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   wostringstream oss_01;
   const wstring str_01(50, L'a');
Index: testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc	(working copy)
@@ -31,7 +31,6 @@
 // based on a bug report libstdc++ 9
 void test04(std::size_t size)
 {
-  bool test __attribute__((unused)) = true;
   std::wstring str(size, L's');
   std::size_t expected_size = 2 * (size + 1);
   std::wostringstream oss(str);
@@ -43,11 +42,11 @@
   // stress test
   oss << str << std::endl;
   if (!oss.good()) 
-    test = false;
+    VERIFY( false );
 
   oss << str << std::endl;
   if (!oss.good()) 
-    test = false;
+    VERIFY( false );
 
   VERIFY( str.size() == size );
   VERIFY( oss.good() );
Index: testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc	(working copy)
@@ -33,7 +33,7 @@
 // mode == out
 void test05(std::size_t size)
 {
-  bool test __attribute__((unused)) = true;
+  bool test = true;
   const char filename[] = "inserters_extractors-1.txt";
   const wchar_t fillc = L'f';
   std::wofstream ofs(filename);
Index: testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc	(working copy)
@@ -32,8 +32,6 @@
 // http://gcc.gnu.org/ml/libstdc++/1999-q4/msg00049.html
 void test06(void)
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::wstring::size_type size_type;
   std::wstring str01(L"@silent");
   size_type i01 = str01.size();
Index: testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc	(working copy)
@@ -33,7 +33,6 @@
 // NB: this is a defect in the standard.
 void test07(void)
 {
-  bool test __attribute__((unused)) = true;
   const std::wstring name(L"z6.cc");
   std::wistringstream iss(name);
   int i = 0;
Index: testsuite/21_strings/basic_string/inserters_extractors/wchar_t/8.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/wchar_t/8.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/wchar_t/8.cc	(working copy)
@@ -33,7 +33,6 @@
 {
   using namespace std;
 
-  bool test __attribute__((unused)) = true;
   wistringstream istrm(L"enero:2001");
   int 		 year;
   wchar_t	 sep;
Index: testsuite/21_strings/basic_string/inserters_extractors/wchar_t/9.cc
===================================================================
--- testsuite/21_strings/basic_string/inserters_extractors/wchar_t/9.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/inserters_extractors/wchar_t/9.cc	(working copy)
@@ -31,7 +31,6 @@
 // libstdc++/2830
 void test09()
 {
-  bool test __attribute__((unused)) = true;
   std::wstring blanks(3, L'\0');
   std::wstring foo = L"peace";
   foo += blanks;
Index: testsuite/21_strings/basic_string/modifiers/append/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/append/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/append/char/1.cc	(working copy)
@@ -23,9 +23,8 @@
 #include <stdexcept>
 #include <testsuite_hooks.h>
 
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
@@ -148,7 +147,6 @@
   str05.append(str05.begin(), str05.begin() + str05.find('r')); 
   VERIFY( str05 ==  "point bolivar, texaspoint boliva" );
   VERIFY( str05 != str01 );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/modifiers/append/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/append/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/append/char/2.cc	(working copy)
@@ -27,8 +27,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
  
   string one; 
Index: testsuite/21_strings/basic_string/modifiers/append/char/3.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/append/char/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/append/char/3.cc	(working copy)
@@ -27,8 +27,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
  
   const char * source = "Kesto";
Index: testsuite/21_strings/basic_string/modifiers/append/char/4.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/append/char/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/append/char/4.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::string_view str1("foo");
   std::string str2;
   str2 += str1;
@@ -42,8 +41,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str("a");
   char c = 'b';
   str.append(&c, 1);
Index: testsuite/21_strings/basic_string/modifiers/append/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/append/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/append/wchar_t/1.cc	(working copy)
@@ -23,9 +23,8 @@
 #include <stdexcept>
 #include <testsuite_hooks.h>
 
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
@@ -148,7 +147,6 @@
   str05.append(str05.begin(), str05.begin() + str05.find(L'r')); 
   VERIFY( str05 ==  L"point bolivar, texaspoint boliva" );
   VERIFY( str05 != str01 );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/modifiers/append/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/append/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/append/wchar_t/2.cc	(working copy)
@@ -27,8 +27,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
  
   wstring one; 
Index: testsuite/21_strings/basic_string/modifiers/append/wchar_t/3.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/append/wchar_t/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/append/wchar_t/3.cc	(working copy)
@@ -33,8 +33,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
  
   const wchar_t * source = L"Kesto";
Index: testsuite/21_strings/basic_string/modifiers/append/wchar_t/4.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/append/wchar_t/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/append/wchar_t/4.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::wstring_view str1(L"foo");
   std::wstring str2;
   str2 += str1;
@@ -42,8 +41,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str(L"a");
 
   wchar_t c = L'b';
Index: testsuite/21_strings/basic_string/modifiers/assign/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/assign/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/assign/char/1.cc	(working copy)
@@ -26,8 +26,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
 
   const char* strlit = "../the long pier/Hanalei Bay/Kauai/Hawaii";
Index: testsuite/21_strings/basic_string/modifiers/assign/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/assign/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/assign/char/2.cc	(working copy)
@@ -27,8 +27,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
   
   string one = "Selling England by the pound";
Index: testsuite/21_strings/basic_string/modifiers/assign/char/3.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/assign/char/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/assign/char/3.cc	(working copy)
@@ -27,8 +27,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
  
   string one; 
Index: testsuite/21_strings/basic_string/modifiers/assign/char/4.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/assign/char/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/assign/char/4.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::string_view str1("foo");
   std::string str2;
   str2.assign(str1);
@@ -39,8 +38,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str("a");
   char c = 'b';
   str.assign(&c, 1);
Index: testsuite/21_strings/basic_string/modifiers/assign/char/move_assign.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/assign/char/move_assign.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/assign/char/move_assign.cc	(working copy)
@@ -28,8 +28,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string a, b;
   a.push_back('1');
   b.assign(std::move(a));
Index: testsuite/21_strings/basic_string/modifiers/assign/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/assign/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/assign/wchar_t/1.cc	(working copy)
@@ -26,8 +26,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
 
   const wchar_t* strlit = L"../the long pier/Hanalei Bay/Kauai/Hawaii";
Index: testsuite/21_strings/basic_string/modifiers/assign/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/assign/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/assign/wchar_t/2.cc	(working copy)
@@ -27,8 +27,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
   
   wstring one = L"Selling England by the pound";
Index: testsuite/21_strings/basic_string/modifiers/assign/wchar_t/3.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/assign/wchar_t/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/assign/wchar_t/3.cc	(working copy)
@@ -27,8 +27,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
  
   wstring one; 
Index: testsuite/21_strings/basic_string/modifiers/assign/wchar_t/4.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/assign/wchar_t/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/assign/wchar_t/4.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::wstring_view str1(L"foo");
   std::wstring str2;
   str2.assign(str1);
@@ -39,8 +38,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str(L"a");
 
   wchar_t c = L'b';
Index: testsuite/21_strings/basic_string/modifiers/assign/wchar_t/move_assign.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/assign/wchar_t/move_assign.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/assign/wchar_t/move_assign.cc	(working copy)
@@ -28,8 +28,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring a, b;
   a.push_back(L'1');
   b.assign(std::move(a));
Index: testsuite/21_strings/basic_string/modifiers/insert/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/insert/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/insert/char/1.cc	(working copy)
@@ -23,9 +23,8 @@
 #include <stdexcept>
 #include <testsuite_hooks.h>
 
-int test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::iterator citerator;
   csize_type csz01, csz02;
@@ -178,7 +177,6 @@
   csz01 = str03.size();
   str03.insert(str03.end(), str01.begin(), str01.end()); 
   VERIFY( str03 == "baker beach, san franciscorodeo beach, marin" );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/modifiers/insert/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/insert/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/insert/char/2.cc	(working copy)
@@ -26,10 +26,8 @@
 //   string& insert(size_type __p, const char* s, size_type n);
 //   string& insert(size_type __p, const char* s);
 // but now s points inside the _Rep
-int test02(void)
+void test02(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str01;
   const char* title = "Everything was beautiful, and nothing hurt";
   // Increasing size: str01 is reallocated every time.
@@ -72,7 +70,6 @@
   str01.insert(0, str01.c_str());
   VERIFY( str01 == "Everything was beautiful, and nothing hurt"
 	  "Everything was beautiful, and nothing hurt");
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/modifiers/insert/char/3.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/insert/char/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/insert/char/3.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::string_view str1("foo");
   std::string str2;
   str2.insert(0, str1);
@@ -43,8 +42,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str("a");
   char c = 'b';
   str.insert(0, &c, 1);
Index: testsuite/21_strings/basic_string/modifiers/insert/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/insert/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/insert/wchar_t/1.cc	(working copy)
@@ -23,9 +23,8 @@
 #include <stdexcept>
 #include <testsuite_hooks.h>
 
-int test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::iterator citerator;
   csize_type csz01, csz02;
@@ -178,7 +177,6 @@
   csz01 = str03.size();
   str03.insert(str03.end(), str01.begin(), str01.end()); 
   VERIFY( str03 == L"baker beach, san franciscorodeo beach, marin" );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/modifiers/insert/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/insert/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/insert/wchar_t/2.cc	(working copy)
@@ -26,10 +26,8 @@
 //   wstring& insert(size_type __p, const wchar_t* s, size_type n);
 //   wstring& insert(size_type __p, const wchar_t* s);
 // but now s points inside the _Rep
-int test02(void)
+void test02(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str01;
   const wchar_t* title = L"Everything was beautiful, and nothing hurt";
   // Increasing size: str01 is reallocated every time.
@@ -72,7 +70,6 @@
   str01.insert(0, str01.c_str());
   VERIFY( str01 == L"Everything was beautiful, and nothing hurt"
 	  L"Everything was beautiful, and nothing hurt");
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/modifiers/insert/wchar_t/3.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/insert/wchar_t/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/insert/wchar_t/3.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::wstring_view str1(L"foo");
   std::wstring str2;
   str2.insert(0, str1);
@@ -43,8 +42,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str(L"a");
 
   wchar_t c = L'b';
Index: testsuite/21_strings/basic_string/modifiers/pop_back/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/pop_back/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/pop_back/char/1.cc	(working copy)
@@ -23,8 +23,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::string cstr("Badger");
   std::string str = cstr;
   str.pop_back();
Index: testsuite/21_strings/basic_string/modifiers/pop_back/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/pop_back/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/pop_back/wchar_t/1.cc	(working copy)
@@ -23,8 +23,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::wstring cstr(L"Badger");
   std::wstring str = cstr;
   str.pop_back();
Index: testsuite/21_strings/basic_string/modifiers/replace/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/char/1.cc	(working copy)
@@ -23,9 +23,8 @@
 #include <algorithm> // for std::find
 #include <testsuite_hooks.h>
 
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
@@ -71,7 +70,6 @@
 	    std::find(x.rbegin(), x.rend(), 'l').base(), ar, 
 	    ar + sizeof(ar) / sizeof(ar[0]));
   VERIFY( x == "jeHelloo" );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/modifiers/replace/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/char/2.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
   const char* strlit = "../the long pier/Hanalei Bay/Kauai/Hawaii";
   std::string aux = strlit;
   aux.replace(aux.begin()+5, aux.begin()+20,
Index: testsuite/21_strings/basic_string/modifiers/replace/char/3.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/char/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/char/3.cc	(working copy)
@@ -26,7 +26,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   const char* title01 = "nine types of ambiguity";
   const char* title02 = "ultra";
   std::string str01 = title01;
Index: testsuite/21_strings/basic_string/modifiers/replace/char/4.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/char/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/char/4.cc	(working copy)
@@ -28,7 +28,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
   std::string str01 = "geogaddi";
   std::string str02;
 
Index: testsuite/21_strings/basic_string/modifiers/replace/char/5.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/char/5.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/char/5.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test05()
 {
-  bool test __attribute__((unused)) = true;
   std::string str01 = "londinium";
   std::string str02 = "cydonia";
 
Index: testsuite/21_strings/basic_string/modifiers/replace/char/6.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/char/6.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/char/6.cc	(working copy)
@@ -24,8 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str01("Valle Del Salto");
   str01.replace(0, 5, str01.data() + 10, 5);
   VERIFY( str01 == "Salto Del Salto" );
Index: testsuite/21_strings/basic_string/modifiers/replace/char/7.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/char/7.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/char/7.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::string_view str1("foo");
   std::string str2("bar");
   str2.replace(0, 3, str1);
@@ -51,8 +50,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str("a");
   char c = 'b';
   str.replace(0, 1, &c, 1);
Index: testsuite/21_strings/basic_string/modifiers/replace/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/wchar_t/1.cc	(working copy)
@@ -23,9 +23,8 @@
 #include <algorithm> // for std::find
 #include <testsuite_hooks.h>
 
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
@@ -71,7 +70,6 @@
 	    std::find(x.rbegin(), x.rend(), L'l').base(), ar, 
 	    ar + sizeof(ar) / sizeof(ar[0]));
   VERIFY( x == L"jeHelloo" );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/modifiers/replace/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/wchar_t/2.cc	(working copy)
@@ -26,7 +26,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
   const wchar_t* strlit = L"../the long pier/Hanalei Bay/Kauai/Hawaii";
   std::wstring aux = strlit;
   aux.replace(aux.begin()+5, aux.begin()+20,
Index: testsuite/21_strings/basic_string/modifiers/replace/wchar_t/3.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/wchar_t/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/wchar_t/3.cc	(working copy)
@@ -26,7 +26,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   const wchar_t* title01 = L"nine types of ambiguity";
   const wchar_t* title02 = L"ultra";
   std::wstring str01 = title01;
Index: testsuite/21_strings/basic_string/modifiers/replace/wchar_t/4.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/wchar_t/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/wchar_t/4.cc	(working copy)
@@ -28,7 +28,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
   std::wstring str01 = L"geogaddi";
   std::wstring str02;
 
Index: testsuite/21_strings/basic_string/modifiers/replace/wchar_t/5.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/wchar_t/5.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/wchar_t/5.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test05()
 {
-  bool test __attribute__((unused)) = true;
   std::wstring str01 = L"londinium";
   std::wstring str02 = L"cydonia";
 
Index: testsuite/21_strings/basic_string/modifiers/replace/wchar_t/6.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/wchar_t/6.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/wchar_t/6.cc	(working copy)
@@ -24,8 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str01(L"Valle Del Salto");
   str01.replace(0, 5, str01.data() + 10, 5);
   VERIFY( str01 == L"Salto Del Salto" );
Index: testsuite/21_strings/basic_string/modifiers/replace/wchar_t/7.cc
===================================================================
--- testsuite/21_strings/basic_string/modifiers/replace/wchar_t/7.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/modifiers/replace/wchar_t/7.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::wstring_view str1(L"foo");
   std::wstring str2(L"bar");
   str2.replace(0, 3, str1);
@@ -51,8 +50,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str(L"a");
 
   wchar_t c = L'b';
Index: testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc	(working copy)
@@ -26,7 +26,6 @@
 // DR 1261. Insufficient overloads for to_string / to_wstring
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   const string one(to_string(-2));
Index: testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc	(working copy)
@@ -30,7 +30,8 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
+
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc	(working copy)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc	(working copy)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc	(working copy)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc	(working copy)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc	(working copy)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc	(working copy)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/char/stoull.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/char/stoull.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/char/stoull.cc	(working copy)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/char/to_string.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/char/to_string.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/char/to_string.cc	(working copy)
@@ -28,7 +28,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
+  bool test = true;
   using namespace std;
   
   long long ll1 = -2;
Index: testsuite/21_strings/basic_string/numeric_conversions/wchar_t/dr1261.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/wchar_t/dr1261.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/wchar_t/dr1261.cc	(working copy)
@@ -26,7 +26,6 @@
 // DR 1261. Insufficient overloads for to_string / to_wstring
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   const wstring one(to_wstring(-2));
Index: testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stod.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stod.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stod.cc	(working copy)
@@ -31,7 +31,7 @@
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stof.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stof.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stof.cc	(working copy)
@@ -31,7 +31,7 @@
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoi.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoi.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoi.cc	(working copy)
@@ -31,7 +31,7 @@
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stol.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stol.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stol.cc	(working copy)
@@ -31,7 +31,7 @@
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stold.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stold.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stold.cc	(working copy)
@@ -31,7 +31,7 @@
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoll.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoll.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoll.cc	(working copy)
@@ -31,7 +31,7 @@
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoul.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoul.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoul.cc	(working copy)
@@ -31,7 +31,7 @@
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoull.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoull.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stoull.cc	(working copy)
@@ -31,7 +31,7 @@
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
Index: testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring.cc
===================================================================
--- testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring.cc	(working copy)
@@ -29,7 +29,6 @@
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   long long ll1 = -2;
Index: testsuite/21_strings/basic_string/operations/compare/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/compare/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/compare/char/1.cc	(working copy)
@@ -41,7 +41,6 @@
 int
 test_value(int result, want_value expected)
 {
-  bool test __attribute__((unused)) = true;
   bool pass = false;
 
   switch (expected) {
Index: testsuite/21_strings/basic_string/operations/compare/char/13650.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/compare/char/13650.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/compare/char/13650.cc	(working copy)
@@ -26,7 +26,6 @@
 void test01()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   const char lit_01[] = { 'w', 'e', '\0', 'r', 'd' };
   const char lit_02[] = { 'w', 'e', 'i', '\0', 'd' };
Index: testsuite/21_strings/basic_string/operations/compare/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/compare/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/compare/char/2.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::string_view str1("foobar");
   std::string str2("foobar");
 
@@ -53,8 +52,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::string str("a");
   char c = 'a';
   int res = str.compare(0, 1, &c, 1);
Index: testsuite/21_strings/basic_string/operations/compare/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/compare/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/compare/wchar_t/1.cc	(working copy)
@@ -40,7 +40,6 @@
 int
 test_value(int result, want_value expected)
 {
-  bool test __attribute__((unused)) = true;
   bool pass = false;
 
   switch (expected) {
Index: testsuite/21_strings/basic_string/operations/compare/wchar_t/13650.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/compare/wchar_t/13650.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/compare/wchar_t/13650.cc	(working copy)
@@ -26,7 +26,6 @@
 void test01()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   const wchar_t lit_01[] = { L'w', L'e', L'\0', L'r', L'd' };
   const wchar_t lit_02[] = { L'w', L'e', L'i', L'\0', L'd' };
Index: testsuite/21_strings/basic_string/operations/compare/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/compare/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/compare/wchar_t/2.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::wstring_view str1(L"foobar");
   std::wstring str2(L"foobar");
 
@@ -53,8 +52,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::wstring str(L"a");
 
   wchar_t c = L'a';
Index: testsuite/21_strings/basic_string/operations/data/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/data/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/data/char/1.cc	(working copy)
@@ -22,8 +22,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::string empty;
 
   // data() for size == 0 is non-NULL.
Index: testsuite/21_strings/basic_string/operations/data/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/data/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/data/wchar_t/1.cc	(working copy)
@@ -22,8 +22,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring empty;
 
   // data() for size == 0 is non-NULL.
Index: testsuite/21_strings/basic_string/operations/find/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/find/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/find/char/1.cc	(working copy)
@@ -22,9 +22,8 @@
 #include <string>
 #include <testsuite_hooks.h>
 
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
@@ -83,7 +82,6 @@
   VERIFY( csz01 == csz02 );
   csz01 = str01.find('/');
   VERIFY( csz01 == npos );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/operations/find/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/find/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/find/char/2.cc	(working copy)
@@ -22,9 +22,8 @@
 #include <string>
 #include <testsuite_hooks.h>
 
-bool test02(void)
+void test02(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   csize_type npos = std::string::npos;
   csize_type csz01, csz02;
@@ -82,7 +81,6 @@
   csz01 = str01.find_first_of('z');
   csz02 = str01.size() - 1;
   VERIFY( csz01 == csz02 );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/operations/find/char/3.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/find/char/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/find/char/3.cc	(working copy)
@@ -22,9 +22,8 @@
 #include <string>
 #include <testsuite_hooks.h>
 
-bool test03(void)
+void test03(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   csize_type npos = std::string::npos;
   csize_type csz01;
@@ -82,7 +81,6 @@
   VERIFY( csz01 == 0 );
   csz01 = str04.find_first_not_of('S');
   VERIFY( csz01 == npos );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/operations/find/char/4.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/find/char/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/find/char/4.cc	(working copy)
@@ -25,7 +25,6 @@
 // libstdc++/31401
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   csize_type npos = std::string::npos;
 
Index: testsuite/21_strings/basic_string/operations/find/char/5.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/find/char/5.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/find/char/5.cc	(working copy)
@@ -30,7 +30,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::string_view str1("bar");
   std::string str2("foobar");
 
Index: testsuite/21_strings/basic_string/operations/find/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/find/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/find/wchar_t/1.cc	(working copy)
@@ -22,9 +22,8 @@
 #include <string>
 #include <testsuite_hooks.h>
 
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
@@ -83,7 +82,6 @@
   VERIFY( csz01 == csz02 );
   csz01 = str01.find(L'/');
   VERIFY( csz01 == npos );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/operations/find/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/find/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/find/wchar_t/2.cc	(working copy)
@@ -22,9 +22,8 @@
 #include <string>
 #include <testsuite_hooks.h>
 
-bool test02(void)
+void test02(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   csize_type npos = std::wstring::npos;
   csize_type csz01, csz02;
@@ -82,7 +81,6 @@
   csz01 = str01.find_first_of(L'z');
   csz02 = str01.size() - 1;
   VERIFY( csz01 == csz02 );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/operations/find/wchar_t/3.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/find/wchar_t/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/find/wchar_t/3.cc	(working copy)
@@ -22,9 +22,8 @@
 #include <string>
 #include <testsuite_hooks.h>
 
-bool test03(void)
+void test03(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   csize_type npos = std::wstring::npos;
   csize_type csz01;
@@ -82,7 +81,6 @@
   VERIFY( csz01 == 0 );
   csz01 = str04.find_first_not_of(L'S');
   VERIFY( csz01 == npos );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/operations/find/wchar_t/4.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/find/wchar_t/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/find/wchar_t/4.cc	(working copy)
@@ -25,7 +25,6 @@
 // libstdc++/31401
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   csize_type npos = std::wstring::npos;
 
Index: testsuite/21_strings/basic_string/operations/find/wchar_t/5.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/find/wchar_t/5.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/find/wchar_t/5.cc	(working copy)
@@ -30,7 +30,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::wstring_view str1(L"bar");
   std::wstring str2(L"foobar");
 
Index: testsuite/21_strings/basic_string/operations/rfind/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/rfind/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/rfind/char/1.cc	(working copy)
@@ -21,9 +21,8 @@
 #include <testsuite_hooks.h>
 
 // 21.3.6.2 basic_string rfind
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
@@ -82,7 +81,6 @@
   VERIFY( csz01 == csz02 );
   csz01 = str01.rfind('/');
   VERIFY( csz01 == npos );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/operations/rfind/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/rfind/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/rfind/char/2.cc	(working copy)
@@ -21,9 +21,8 @@
 #include <testsuite_hooks.h>
 
 // 21.3.6.4 basic_string::find_last_of
-bool test02()
+void test02()
 {
-  bool test __attribute__((unused)) = true;
   std::string z("ab");
   std::string::size_type pos;
   pos = z.find_last_of("ab");
@@ -40,7 +39,6 @@
   VERIFY( pos == 1 );
   pos = z.find_last_of('X');
   VERIFY( pos == std::string::npos );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/operations/rfind/char/3.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/rfind/char/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/rfind/char/3.cc	(working copy)
@@ -21,9 +21,8 @@
 #include <testsuite_hooks.h>
 
 // 21.3.6.6 basic_string::find_last_not_of
-bool test03()
+void test03()
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   std::string::size_type pos;
   csize_type npos = std::string::npos;
@@ -55,7 +54,6 @@
   VERIFY( pos == 0 );
   pos = z.find_last_not_of("Xa");
   VERIFY( pos == 1 );
-  return test;
 }
 int main()
 {
Index: testsuite/21_strings/basic_string/operations/rfind/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/rfind/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/rfind/wchar_t/1.cc	(working copy)
@@ -21,9 +21,8 @@
 #include <testsuite_hooks.h>
 
 // 21.3.6.2 basic_string rfind
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
@@ -82,7 +81,6 @@
   VERIFY( csz01 == csz02 );
   csz01 = str01.rfind(L'/');
   VERIFY( csz01 == npos );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/operations/rfind/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/rfind/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/rfind/wchar_t/2.cc	(working copy)
@@ -21,9 +21,8 @@
 #include <testsuite_hooks.h>
 
 // 21.3.6.4 basic_string::find_last_of
-bool test02()
+void test02()
 {
-  bool test __attribute__((unused)) = true;
   std::wstring::size_type pos;
   std::wstring z(L"ab");
   pos = z.find_last_of(L"ab");
@@ -40,7 +39,6 @@
   VERIFY( pos == 1 );
   pos = z.find_last_of(L'X');
   VERIFY( pos == std::wstring::npos );
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/operations/rfind/wchar_t/3.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/rfind/wchar_t/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/rfind/wchar_t/3.cc	(working copy)
@@ -21,9 +21,8 @@
 #include <testsuite_hooks.h>
 
 // 21.3.6.6 basic_string::find_last_not_of
-bool test03()
+void test03()
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   std::wstring::size_type pos;
   csize_type npos = std::wstring::npos;
@@ -55,7 +54,6 @@
   VERIFY( pos == 0 );
   pos = z.find_last_not_of(L"Xa");
   VERIFY( pos == 1 );
-  return test;
 }
 int main()
 {
Index: testsuite/21_strings/basic_string/operations/substr/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/substr/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/substr/char/1.cc	(working copy)
@@ -23,9 +23,8 @@
 #include <stdexcept>
 #include <testsuite_hooks.h>
 
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::string::size_type csize_type;
   typedef std::string::const_reference cref;
   typedef std::string::reference ref;
@@ -64,7 +63,6 @@
   catch(...) {
     VERIFY( false );
   }
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/operations/substr/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/operations/substr/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operations/substr/wchar_t/1.cc	(working copy)
@@ -23,9 +23,8 @@
 #include <stdexcept>
 #include <testsuite_hooks.h>
 
-bool test01(void)
+void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   typedef std::wstring::size_type csize_type;
   typedef std::wstring::const_reference cref;
   typedef std::wstring::reference ref;
@@ -64,7 +63,6 @@
   catch(...) {
     VERIFY( false );
   }
-  return test;
 }
 
 int main()
Index: testsuite/21_strings/basic_string/operators/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string/operators/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operators/char/1.cc	(working copy)
@@ -25,8 +25,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str1;
   std::string str2;
   
Index: testsuite/21_strings/basic_string/operators/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string/operators/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operators/char/2.cc	(working copy)
@@ -114,7 +114,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
   std::string 	str_0("costa rica");
   std::string 	str_1("costa marbella");
   std::string 	str_2("cost");
Index: testsuite/21_strings/basic_string/operators/char/3.cc
===================================================================
--- testsuite/21_strings/basic_string/operators/char/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operators/char/3.cc	(working copy)
@@ -25,7 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::string;
 
   VERIFY( (string("abc") + string("def")
Index: testsuite/21_strings/basic_string/operators/char/4.cc
===================================================================
--- testsuite/21_strings/basic_string/operators/char/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operators/char/4.cc	(working copy)
@@ -25,7 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::string;
   using std::move;
 
Index: testsuite/21_strings/basic_string/operators/char/5.cc
===================================================================
--- testsuite/21_strings/basic_string/operators/char/5.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operators/char/5.cc	(working copy)
@@ -24,8 +24,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::string_view str1("foo");;
   std::string str2;
   
Index: testsuite/21_strings/basic_string/operators/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string/operators/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operators/wchar_t/1.cc	(working copy)
@@ -25,8 +25,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str1;
   std::wstring str2;
   
Index: testsuite/21_strings/basic_string/operators/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string/operators/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operators/wchar_t/2.cc	(working copy)
@@ -114,7 +114,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
   std::wstring 	str_0(L"costa rica");
   std::wstring 	str_1(L"costa marbella");
   std::wstring 	str_2(L"cost");
Index: testsuite/21_strings/basic_string/operators/wchar_t/3.cc
===================================================================
--- testsuite/21_strings/basic_string/operators/wchar_t/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operators/wchar_t/3.cc	(working copy)
@@ -25,7 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::wstring;
 
   VERIFY( (wstring(L"abc") + wstring(L"def")
Index: testsuite/21_strings/basic_string/operators/wchar_t/4.cc
===================================================================
--- testsuite/21_strings/basic_string/operators/wchar_t/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operators/wchar_t/4.cc	(working copy)
@@ -25,7 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::wstring;
   using std::move;
 
Index: testsuite/21_strings/basic_string/operators/wchar_t/5.cc
===================================================================
--- testsuite/21_strings/basic_string/operators/wchar_t/5.cc	(revision 241022)
+++ testsuite/21_strings/basic_string/operators/wchar_t/5.cc	(working copy)
@@ -24,8 +24,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring_view str1(L"foo");;
   std::wstring str2;
   
Index: testsuite/21_strings/basic_string_view/capacity/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/capacity/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/capacity/1.cc	(working copy)
@@ -126,8 +126,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   std::basic_string_view<A<B>> str02;
   typedef std::basic_string_view< A<B> >::size_type size_type_o;
   size_type_o sz03;
Index: testsuite/21_strings/basic_string_view/cons/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/cons/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/cons/char/1.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
   typedef std::string_view::size_type csize_type;
 
   // basic_string_view()
Index: testsuite/21_strings/basic_string_view/cons/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string_view/cons/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/cons/char/2.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test03()
 {
-  bool test [[gnu::unused]] = true;
   const char* with_nulls = "This contains \0 a zero byte.";
 
   // These are tests to see how basic_string_view handles data with NUL
Index: testsuite/21_strings/basic_string_view/cons/char/3.cc
===================================================================
--- testsuite/21_strings/basic_string_view/cons/char/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/cons/char/3.cc	(working copy)
@@ -26,8 +26,6 @@
 void
 test05()
 {
-  bool test [[gnu::unused]] = true;
-
   char const * s = 0;
   std::string_view zero_length_built_with_NULL(s, 0);
 }
Index: testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc	(working copy)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
   typedef std::wstring_view::size_type csize_type;
 
   // basic_string_view()
Index: testsuite/21_strings/basic_string_view/cons/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string_view/cons/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/cons/wchar_t/2.cc	(working copy)
@@ -25,7 +25,6 @@
 void
 test03()
 {
-  bool test [[gnu::unused]] = true;
   const wchar_t* with_nulls = L"This contains \0 a zero byte.";
 
   // These are tests to see how basic_string_view handles data with NUL
Index: testsuite/21_strings/basic_string_view/cons/wchar_t/3.cc
===================================================================
--- testsuite/21_strings/basic_string_view/cons/wchar_t/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/cons/wchar_t/3.cc	(working copy)
@@ -25,8 +25,6 @@
 void
 test05()
 {
-  bool test [[gnu::unused]] = true;
-
   wchar_t const * s = 0;
   std::wstring_view zero_length_built_with_NULL(s, 0);
 }
Index: testsuite/21_strings/basic_string_view/element_access/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/element_access/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/element_access/char/1.cc	(working copy)
@@ -23,11 +23,9 @@
 #include <stdexcept>
 #include <testsuite_hooks.h>
 
-bool
+void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::string_view::size_type csize_type;
   typedef std::string_view::const_reference cref;
   typedef std::string_view::reference ref;
@@ -62,8 +60,6 @@
   {
     VERIFY( false );
   }
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/element_access/char/empty.cc
===================================================================
--- testsuite/21_strings/basic_string_view/element_access/char/empty.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/element_access/char/empty.cc	(working copy)
@@ -24,8 +24,6 @@
 int
 main()
 {
-  bool test [[gnu::unused]] = true;
-
   {
     std::string_view empty;
     VERIFY( empty.empty() );
Index: testsuite/21_strings/basic_string_view/element_access/char/front_back.cc
===================================================================
--- testsuite/21_strings/basic_string_view/element_access/char/front_back.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/element_access/char/front_back.cc	(working copy)
@@ -24,8 +24,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   std::string_view str("ramifications");
   const std::string_view cstr("melodien");
 
Index: testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc	(working copy)
@@ -23,11 +23,9 @@
 #include <stdexcept>
 #include <testsuite_hooks.h>
 
-bool
+void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::wstring_view::size_type csize_type;
   typedef std::wstring_view::const_reference cref;
   typedef std::wstring_view::reference ref;
@@ -62,8 +60,6 @@
   {
     VERIFY( false );
   }
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/element_access/wchar_t/empty.cc
===================================================================
--- testsuite/21_strings/basic_string_view/element_access/wchar_t/empty.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/element_access/wchar_t/empty.cc	(working copy)
@@ -24,8 +24,6 @@
 int
 main()
 {
-  bool test [[gnu::unused]] = true;
-  
   {
     std::wstring_view empty;
     VERIFY( empty.empty() );
Index: testsuite/21_strings/basic_string_view/element_access/wchar_t/front_back.cc
===================================================================
--- testsuite/21_strings/basic_string_view/element_access/wchar_t/front_back.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/element_access/wchar_t/front_back.cc	(working copy)
@@ -24,8 +24,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   std::wstring_view str(L"ramifications");
   const std::wstring_view cstr(L"melodien");
 
Index: testsuite/21_strings/basic_string_view/inserters/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/inserters/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/inserters/char/1.cc	(working copy)
@@ -30,11 +30,9 @@
 #include <iostream>
 #include <testsuite_hooks.h>
 
-bool
+void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::string_view::size_type csize_type;
   typedef std::string_view::const_reference cref;
   typedef std::string_view::reference ref;
@@ -56,8 +54,6 @@
   
   std::string_view hello_world;
   std::cout << hello_world;
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/inserters/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string_view/inserters/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/inserters/char/2.cc	(working copy)
@@ -37,7 +37,7 @@
 void
 test05(std::size_t size)
 {
-  bool test [[gnu::unused]] = true;
+  bool test = true;
 
   const char filename[] = "inserters_extractors-2.txt";
   const char fillc = 'f';
Index: testsuite/21_strings/basic_string_view/inserters/char/3.cc
===================================================================
--- testsuite/21_strings/basic_string_view/inserters/char/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/inserters/char/3.cc	(working copy)
@@ -32,8 +32,6 @@
 void
 test09()
 {
-  bool test [[gnu::unused]] = true;
-
   std::string_view foo{"peace\0\0\0& love"};
 
   std::ostringstream oss1;
Index: testsuite/21_strings/basic_string_view/inserters/pod/10081-out.cc
===================================================================
--- testsuite/21_strings/basic_string_view/inserters/pod/10081-out.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/inserters/pod/10081-out.cc	(working copy)
@@ -37,8 +37,6 @@
   typedef basic_stringbuf<pod_ushort> 	stringbuf_type;
   typedef basic_ostream<pod_ushort> 	ostream_type;
 
-  bool test [[gnu::unused]] = true;
-
   string_type str;
   stringbuf_type strbuf01;
   ostream_type stream(&strbuf01);
Index: testsuite/21_strings/basic_string_view/inserters/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/inserters/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/inserters/wchar_t/1.cc	(working copy)
@@ -30,11 +30,9 @@
 #include <iostream>
 #include <testsuite_hooks.h>
 
-bool
+void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::wstring_view::size_type csize_type;
   typedef std::wstring_view::const_reference cref;
   typedef std::wstring_view::reference ref;
@@ -61,8 +59,6 @@
   
   std::wstring_view hello_world;
   std::wcout << hello_world;
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/inserters/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string_view/inserters/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/inserters/wchar_t/2.cc	(working copy)
@@ -35,7 +35,7 @@
 void
 test05(std::size_t size)
 {
-  bool test [[gnu::unused]] = true;
+  bool test = true;
 
   const char filename[] = "inserters_extractors-2.txt";
   const wchar_t fillc = L'f';
Index: testsuite/21_strings/basic_string_view/inserters/wchar_t/3.cc
===================================================================
--- testsuite/21_strings/basic_string_view/inserters/wchar_t/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/inserters/wchar_t/3.cc	(working copy)
@@ -31,8 +31,6 @@
 void
 test09()
 {
-  bool test [[gnu::unused]] = true;
-
   std::wstring_view foo{L"peace\0\0\0& love"};
   
   std::wostringstream oss1;
Index: testsuite/21_strings/basic_string_view/modifiers/remove_prefix/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/modifiers/remove_prefix/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/modifiers/remove_prefix/char/1.cc	(working copy)
@@ -23,8 +23,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   using std::string_view;
 
   string_view str0{"olympus mons"};
Index: testsuite/21_strings/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc	(working copy)
@@ -23,8 +23,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   using std::wstring_view;
 
   wstring_view str0{L"olympus mons"};
Index: testsuite/21_strings/basic_string_view/modifiers/remove_suffix/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/modifiers/remove_suffix/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/modifiers/remove_suffix/char/1.cc	(working copy)
@@ -23,8 +23,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   using std::string_view;
 
   string_view str0{"olympus mons"};
Index: testsuite/21_strings/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc	(working copy)
@@ -23,8 +23,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   using std::wstring_view;
 
   wstring_view str0{L"olympus mons"};
Index: testsuite/21_strings/basic_string_view/operations/compare/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/compare/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/compare/char/1.cc	(working copy)
@@ -41,7 +41,6 @@
 int
 test_value(int result, want_value expected)
 {
-  bool test [[gnu::unused]] = true;
   bool pass = false;
 
   switch (expected) {
Index: testsuite/21_strings/basic_string_view/operations/compare/char/13650.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/compare/char/13650.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/compare/char/13650.cc	(working copy)
@@ -26,8 +26,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   using std::string_view;
 
   const char lit_01[]{ 'w', 'e', '\0', 'r', 'd' };
Index: testsuite/21_strings/basic_string_view/operations/compare/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/compare/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/compare/wchar_t/1.cc	(working copy)
@@ -40,7 +40,6 @@
 int
 test_value(int result, want_value expected)
 {
-  bool test [[gnu::unused]] = true;
   bool pass = false;
 
   switch (expected) {
Index: testsuite/21_strings/basic_string_view/operations/compare/wchar_t/13650.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/compare/wchar_t/13650.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/compare/wchar_t/13650.cc	(working copy)
@@ -26,8 +26,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   using std::wstring_view;
 
   const wchar_t lit_01[] = { L'w', L'e', L'\0', L'r', L'd' };
Index: testsuite/21_strings/basic_string_view/operations/copy/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/copy/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/copy/char/1.cc	(working copy)
@@ -25,8 +25,6 @@
 bool
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::string_view::size_type csize_type;
 
   const char str_lit01[] = "123456789A";
@@ -36,8 +34,6 @@
   csize_type len = str01.copy(buffer, sizeof(buffer), 8);
   VERIFY( 2 == len );
   VERIFY( '9' == buffer[0] );
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc	(working copy)
@@ -25,8 +25,6 @@
 bool
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::wstring_view::size_type csize_type;
   csize_type csz01;
 
@@ -37,8 +35,6 @@
   csize_type len = str01.copy(buffer, sizeof(buffer), 8);
   VERIFY( 2 == len );
   VERIFY( L'9' == buffer[0] );
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/data/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/data/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/data/char/1.cc	(working copy)
@@ -25,8 +25,6 @@
 int
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   std::string_view empty;
 
   VERIFY( empty.size() == 0 );
Index: testsuite/21_strings/basic_string_view/operations/data/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/data/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/data/wchar_t/1.cc	(working copy)
@@ -25,8 +25,6 @@
 int
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   std::wstring_view empty;
 
   VERIFY( empty.size() == 0 );
Index: testsuite/21_strings/basic_string_view/operations/find/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/find/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/find/char/1.cc	(working copy)
@@ -22,11 +22,9 @@
 #include <string_view>
 #include <testsuite_hooks.h>
 
-bool
+void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::string_view::size_type csize_type;
   typedef std::string_view::const_reference cref;
   typedef std::string_view::reference ref;
@@ -85,8 +83,6 @@
   VERIFY( csz01 == csz02 );
   csz01 = str01.find('/');
   VERIFY( csz01 == npos );
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/find/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/find/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/find/char/2.cc	(working copy)
@@ -22,11 +22,9 @@
 #include <string_view>
 #include <testsuite_hooks.h>
 
-bool
+void
 test02()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::string_view::size_type csize_type;
   csize_type npos = std::string_view::npos;
   csize_type csz01, csz02;
@@ -84,8 +82,6 @@
   csz01 = str01.find_first_of('z');
   csz02 = str01.size() - 1;
   VERIFY( csz01 == csz02 );
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/find/char/3.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/find/char/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/find/char/3.cc	(working copy)
@@ -22,11 +22,9 @@
 #include <string_view>
 #include <testsuite_hooks.h>
 
-bool
+void
 test03()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::string_view::size_type csize_type;
   csize_type npos = std::string_view::npos;
   csize_type csz01;
@@ -84,8 +82,6 @@
   VERIFY( csz01 == 0 );
   csz01 = str04.find_first_not_of('S');
   VERIFY( csz01 == npos );
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/find/char/4.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/find/char/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/find/char/4.cc	(working copy)
@@ -26,8 +26,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::string_view::size_type csize_type;
   csize_type npos = std::string_view::npos;
 
Index: testsuite/21_strings/basic_string_view/operations/find/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/find/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/find/wchar_t/1.cc	(working copy)
@@ -22,11 +22,9 @@
 #include <string_view>
 #include <testsuite_hooks.h>
 
-bool
+void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::wstring_view::size_type csize_type;
   typedef std::wstring_view::const_reference cref;
   typedef std::wstring_view::reference ref;
@@ -85,8 +83,6 @@
   VERIFY( csz01 == csz02 );
   csz01 = str01.find(L'/');
   VERIFY( csz01 == npos );
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/find/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/find/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/find/wchar_t/2.cc	(working copy)
@@ -22,11 +22,9 @@
 #include <string_view>
 #include <testsuite_hooks.h>
 
-bool
+void
 test02()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::wstring_view::size_type csize_type;
   csize_type npos = std::wstring_view::npos;
   csize_type csz01, csz02;
@@ -84,8 +82,6 @@
   csz01 = str01.find_first_of(L'z');
   csz02 = str01.size() - 1;
   VERIFY( csz01 == csz02 );
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/find/wchar_t/3.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/find/wchar_t/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/find/wchar_t/3.cc	(working copy)
@@ -22,11 +22,9 @@
 #include <string_view>
 #include <testsuite_hooks.h>
 
-bool
+void
 test03()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::wstring_view::size_type csize_type;
   csize_type npos = std::wstring_view::npos;
   csize_type csz01;
@@ -84,8 +82,6 @@
   VERIFY( csz01 == 0 );
   csz01 = str04.find_first_not_of(L'S');
   VERIFY( csz01 == npos );
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/find/wchar_t/4.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/find/wchar_t/4.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/find/wchar_t/4.cc	(working copy)
@@ -26,8 +26,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::wstring_view::size_type csize_type;
   csize_type npos = std::wstring_view::npos;
 
Index: testsuite/21_strings/basic_string_view/operations/rfind/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/rfind/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/rfind/char/1.cc	(working copy)
@@ -22,11 +22,9 @@
 
 // basic_string_view rfind
 
-bool
+void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::string_view::size_type csize_type;
   typedef std::string_view::const_reference cref;
   typedef std::string_view::reference ref;
@@ -85,8 +83,6 @@
   VERIFY( csz01 == csz02 );
   csz01 = str01.rfind('/');
   VERIFY( csz01 == npos );
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/rfind/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/rfind/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/rfind/char/2.cc	(working copy)
@@ -22,11 +22,9 @@
 
 // basic_string_view::find_last_of
 
-bool
+void
 test02()
 {
-  bool test [[gnu::unused]] = true;
-
   std::string_view z("ab");
   std::string_view::size_type pos;
   pos = z.find_last_of("ab");
@@ -43,8 +41,6 @@
   VERIFY( pos == 1 );
   pos = z.find_last_of('X');
   VERIFY( pos == std::string_view::npos );
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/rfind/char/3.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/rfind/char/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/rfind/char/3.cc	(working copy)
@@ -22,11 +22,9 @@
 
 // basic_string_view::find_last_not_of
 
-bool
+void
 test03()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::string_view::size_type csize_type;
   std::string_view::size_type pos;
   csize_type npos = std::string_view::npos;
@@ -58,8 +56,6 @@
   VERIFY( pos == 0 );
   pos = z.find_last_not_of("Xa");
   VERIFY( pos == 1 );
-
-  return test;
 }
 int
 main()
Index: testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/1.cc	(working copy)
@@ -22,11 +22,9 @@
 
 // basic_string_view rfind
 
-bool
+void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::wstring_view::size_type csize_type;
   typedef std::wstring_view::const_reference cref;
   typedef std::wstring_view::reference ref;
@@ -85,8 +83,6 @@
   VERIFY( csz01 == csz02 );
   csz01 = str01.rfind(L'/');
   VERIFY( csz01 == npos );
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/2.cc	(working copy)
@@ -22,11 +22,9 @@
 
 // basic_string_view::find_last_of
 
-bool
+void
 test02()
 {
-  bool test [[gnu::unused]] = true;
-
   std::wstring_view::size_type pos;
   std::wstring_view z(L"ab");
   pos = z.find_last_of(L"ab");
@@ -43,8 +41,6 @@
   VERIFY( pos == 1 );
   pos = z.find_last_of(L'X');
   VERIFY( pos == std::wstring_view::npos );
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/3.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/3.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/3.cc	(working copy)
@@ -22,11 +22,9 @@
 
 // basic_string_view::find_last_not_of
 
-bool
+void
 test03()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::wstring_view::size_type csize_type;
   std::wstring_view::size_type pos;
   csize_type npos = std::wstring_view::npos;
@@ -58,8 +56,6 @@
   VERIFY( pos == 0 );
   pos = z.find_last_not_of(L"Xa");
   VERIFY( pos == 1 );
-
-  return test;
 }
 int
 main()
Index: testsuite/21_strings/basic_string_view/operations/string_conversion/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/string_conversion/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/string_conversion/1.cc	(working copy)
@@ -25,11 +25,9 @@
 #include <testsuite_hooks.h>
 #include <testsuite_allocator.h>
 
-bool
+void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   const char str_lit[] = "123456789A";
   const std::string_view sv(str_lit);
   char buffer[4] = { 0 };
@@ -44,8 +42,6 @@
   VERIFY( std::equal(s1.begin(), s1.end(), s2.begin(), s2.end()) );
   auto s3 = static_cast<std::string>(sv);
   VERIFY( s3 == s1 );
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/substr/char/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/substr/char/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/substr/char/1.cc	(working copy)
@@ -23,11 +23,9 @@
 #include <stdexcept>
 #include <testsuite_hooks.h>
 
-bool
+void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::string_view::size_type csize_type;
   typedef std::string_view::const_reference cref;
   typedef std::string_view::reference ref;
@@ -70,8 +68,6 @@
   {
     VERIFY( false );
   }
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operations/substr/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operations/substr/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operations/substr/wchar_t/1.cc	(working copy)
@@ -23,11 +23,9 @@
 #include <stdexcept>
 #include <testsuite_hooks.h>
 
-bool
+void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::wstring_view::size_type csize_type;
   typedef std::wstring_view::const_reference cref;
   typedef std::wstring_view::reference ref;
@@ -70,8 +68,6 @@
   {
     VERIFY( false );
   }
-
-  return test;
 }
 
 int
Index: testsuite/21_strings/basic_string_view/operators/char/2.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operators/char/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operators/char/2.cc	(working copy)
@@ -115,8 +115,6 @@
 int
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   std::string_view 	str_0("costa rica");
   std::string_view 	str_1("costa marbella");
   std::string_view 	str_2("cost");
Index: testsuite/21_strings/basic_string_view/operators/wchar_t/2.cc
===================================================================
--- testsuite/21_strings/basic_string_view/operators/wchar_t/2.cc	(revision 241022)
+++ testsuite/21_strings/basic_string_view/operators/wchar_t/2.cc	(working copy)
@@ -115,8 +115,6 @@
 int
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   std::wstring_view 	str_0(L"costa rica");
   std::wstring_view 	str_1(L"costa marbella");
   std::wstring_view 	str_2(L"cost");
Index: testsuite/21_strings/c_strings/char/1.cc
===================================================================
--- testsuite/21_strings/c_strings/char/1.cc	(revision 241022)
+++ testsuite/21_strings/c_strings/char/1.cc	(working copy)
@@ -24,7 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   char c = 'a';
   const char cc = 'b';
   char* c1 = &c;
Index: testsuite/21_strings/c_strings/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/c_strings/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/c_strings/wchar_t/1.cc	(working copy)
@@ -25,7 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   wchar_t c = L'a';
   const wchar_t cc = L'b';
   wchar_t* c1 = &c;
Index: testsuite/21_strings/char_traits/requirements/char/1.cc
===================================================================
--- testsuite/21_strings/char_traits/requirements/char/1.cc	(revision 241022)
+++ testsuite/21_strings/char_traits/requirements/char/1.cc	(working copy)
@@ -24,7 +24,6 @@
 
 void test01(void)
 {
-  bool test __attribute__((unused)) = true;
   const std::string str_01("zuma beach");
   const std::string str_02("montara and ocean beach");
  
Index: testsuite/21_strings/char_traits/requirements/char/57704.cc
===================================================================
--- testsuite/21_strings/char_traits/requirements/char/57704.cc	(revision 241022)
+++ testsuite/21_strings/char_traits/requirements/char/57704.cc	(working copy)
@@ -20,8 +20,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   char a = '\x7f';
   char b = '\x80';
 
Index: testsuite/21_strings/char_traits/requirements/short/1.cc
===================================================================
--- testsuite/21_strings/char_traits/requirements/short/1.cc	(revision 241022)
+++ testsuite/21_strings/char_traits/requirements/short/1.cc	(working copy)
@@ -30,7 +30,6 @@
 void test02(void)
 {
   typedef short char_type;
-  bool test __attribute__((unused)) = true;
  
   // 21.1.1 character traits requirements
 
Index: testsuite/21_strings/char_traits/requirements/wchar_t/1.cc
===================================================================
--- testsuite/21_strings/char_traits/requirements/wchar_t/1.cc	(revision 241022)
+++ testsuite/21_strings/char_traits/requirements/wchar_t/1.cc	(working copy)
@@ -24,7 +24,6 @@
 
 void test02(void)
 {
-  bool test __attribute__((unused)) = true;
   const std::wstring str_01(L"zuma beach");
   const std::wstring str_02(L"montara and ocean beach");
  
Index: testsuite/22_locale/time_get/get/char/1.cc
===================================================================
--- testsuite/22_locale/time_get/get/char/1.cc	(revision 241022)
+++ testsuite/22_locale/time_get/get/char/1.cc	(working copy)
@@ -26,7 +26,7 @@
 #include <iterator>
 #include <testsuite_hooks.h>
 
-#ifndef _GLIBCXX_ASSERT
+#ifdef TEST_TIMEGET_VERBOSE
 #  include <iostream>
 #  define PRINT(x) cout << #x << ": " << x << endl
 #  define TESTHEAD(x) cout << x << endl
Index: testsuite/22_locale/time_get/get/char/2.cc
===================================================================
--- testsuite/22_locale/time_get/get/char/2.cc	(revision 241022)
+++ testsuite/22_locale/time_get/get/char/2.cc	(working copy)
@@ -26,7 +26,7 @@
 #include <sstream>
 #include <testsuite_hooks.h>
 
-#ifndef _GLIBCXX_ASSERT
+#ifdef TEST_TIMEGET_VERBOSE
 #  include <iostream>
 #  define PRINT(x) cout << #x << ": " << x << endl
 #  define TESTHEAD(x) cout << x << endl
Index: testsuite/22_locale/time_get/get/wchar_t/1.cc
===================================================================
--- testsuite/22_locale/time_get/get/wchar_t/1.cc	(revision 241022)
+++ testsuite/22_locale/time_get/get/wchar_t/1.cc	(working copy)
@@ -26,7 +26,7 @@
 #include <iterator>
 #include <testsuite_hooks.h>
 
-#ifndef _GLIBCXX_ASSERT
+#ifdef TEST_TIMEGET_VERBOSE
 #  include <iostream>
 #  define PRINT(x) cout << #x << ": " << x << endl
 #  define TESTHEAD(x) cout << x << endl
Index: testsuite/22_locale/time_get/get/wchar_t/2.cc
===================================================================
--- testsuite/22_locale/time_get/get/wchar_t/2.cc	(revision 241022)
+++ testsuite/22_locale/time_get/get/wchar_t/2.cc	(working copy)
@@ -26,7 +26,7 @@
 #include <sstream>
 #include <testsuite_hooks.h>
 
-#ifndef _GLIBCXX_ASSERT
+#ifdef TEST_TIMEGET_VERBOSE
 #  include <iostream>
 #  define PRINT(x) cout << #x << ": " << x << endl
 #  define TESTHEAD(x) cout << x << endl
Index: testsuite/27_io/basic_filebuf/close/char/4879.cc
===================================================================
--- testsuite/27_io/basic_filebuf/close/char/4879.cc	(revision 241022)
+++ testsuite/27_io/basic_filebuf/close/char/4879.cc	(working copy)
@@ -34,9 +34,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-// No asserts, avoid leaking the semaphores if a VERIFY fails.
-#undef _GLIBCXX_ASSERT
-
 #include <testsuite_hooks.h>
 
 // libstdc++/2913, libstdc++/4879
@@ -46,7 +43,7 @@
 {
   using namespace __gnu_test;
 
-  bool test __attribute__((unused)) = true;
+  bool test = true;
   const char* name = "tmp_fifo1";
   semaphore s1, s2;
 
@@ -92,7 +89,6 @@
   if (!(ofs.rdstate() & std::ios::failbit))
     {
       test = false;
-      VERIFY( test );
     }
 
   unlink(name);
Index: testsuite/27_io/basic_filebuf/close/char/9964.cc
===================================================================
--- testsuite/27_io/basic_filebuf/close/char/9964.cc	(revision 241022)
+++ testsuite/27_io/basic_filebuf/close/char/9964.cc	(working copy)
@@ -33,9 +33,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-// No asserts, avoid leaking the semaphores if a VERIFY fails.
-#undef _GLIBCXX_ASSERT
-
 #include <testsuite_hooks.h>
 
 // libstdc++/9964
@@ -43,7 +40,7 @@
 {
   using namespace std;
   using namespace __gnu_test;
-  bool test __attribute__((unused)) = true;
+  bool test = true;
   semaphore s1, s2;
 
   const char* name = "tmp_fifo3";
@@ -54,7 +51,7 @@
   mkfifo(name, S_IRWXU);
   
   int child = fork();
-  VERIFY( child != -1 );
+  test &= bool( child != -1 );
 
   if (child == 0)
     {
@@ -68,15 +65,15 @@
   
   filebuf fb;
   filebuf* ret = fb.open(name, ios_base::in | ios_base::out);
-  VERIFY( ret != 0 );
-  VERIFY( fb.is_open() );
+  test &= bool( ret != 0 );
+  test &= bool( fb.is_open() );
   s1.signal();
   s2.wait();
   fb.sputc('a');
 
   ret = fb.close();
-  VERIFY( ret != 0 );
-  VERIFY( !fb.is_open() );
+  test &= bool( ret != 0 );
+  test &= bool( !fb.is_open() );
 
   return test;
 }
Index: testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc
===================================================================
--- testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc	(revision 241022)
+++ testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc	(working copy)
@@ -29,15 +29,12 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-// No asserts, avoid leaking the semaphores if a VERIFY fails.
-#undef _GLIBCXX_ASSERT
-
 #include <testsuite_hooks.h>
 
 // libstdc++/13171
 bool test01()
 {
-  bool test __attribute__((unused)) = true;
+  bool test = true;
   using namespace std;
   using namespace __gnu_test;
 
@@ -66,11 +63,11 @@
   fb.pubimbue(loc_fr);
   fb.open(name, ios_base::in);
   s1.wait();
-  VERIFY( fb.is_open() );
+  test &= bool( fb.is_open() );
   fb.pubimbue(loc_en);
   filebuf::int_type c = fb.sgetc();
   fb.close();
-  VERIFY( c == 'S' );
+  test &= bool( c == 'S' );
   s2.signal();
 
   return test;
Index: testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc
===================================================================
--- testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc	(revision 241022)
+++ testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc	(working copy)
@@ -30,9 +30,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-// No asserts, avoid leaking the semaphore if a VERIFY fails.
-#undef _GLIBCXX_ASSERT
-
 #include <testsuite_hooks.h>
 
 // libstdc++/14975
@@ -40,7 +37,7 @@
 {
   using namespace std;
   using namespace __gnu_test;
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   locale loc_us = locale(ISO_8859(1,en_US));
 
@@ -53,7 +50,7 @@
   semaphore s1;
 
   int child = fork();
-  VERIFY( child != -1 );
+  test &= bool( child != -1 );
 
   if (child == 0)
     {
@@ -68,8 +65,8 @@
   wfilebuf fb;
   fb.pubimbue(loc_us);
   wfilebuf* ret = fb.open(name, ios_base::out);
-  VERIFY( ret != 0 );
-  VERIFY( fb.is_open() );
+  test &= bool( ret != 0 );
+  test &= bool( fb.is_open() );
 
   s1.wait();
 
Index: testsuite/27_io/basic_filebuf/seekoff/char/26777.cc
===================================================================
--- testsuite/27_io/basic_filebuf/seekoff/char/26777.cc	(revision 241022)
+++ testsuite/27_io/basic_filebuf/seekoff/char/26777.cc	(working copy)
@@ -20,9 +20,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// No asserts, avoid leaking the semaphores if a VERIFY fails.
-#undef _GLIBCXX_ASSERT
-
 #include <testsuite_hooks.h>
 #include <fstream>
 #include <sstream>
@@ -39,7 +36,7 @@
   using namespace std;
   using namespace __gnu_test;
 
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   const char* name = "tmp_fifo6";
 
@@ -50,13 +47,13 @@
   semaphore s1, s2;
 
   int child = fork();
-  VERIFY( child != -1 );
+  test &= bool( child != -1 );
 
   if (child == 0)
     {
       filebuf fbout;
       fbout.open(name, ios_base::in | ios_base::out);
-      VERIFY( fbout.is_open() );
+      test &= bool( fbout.is_open() );
       fbout.sputn("Whatever", 8);
       fbout.pubsync();
       s1.signal();
@@ -79,7 +76,7 @@
   oss << &fbin;
   fbin.close();
 
-  VERIFY( oss.str() == "Whatever" );
+  test &= bool( oss.str() == "Whatever" );
 
   return test;
 }
Index: testsuite/27_io/basic_filebuf/underflow/char/10097.cc
===================================================================
--- testsuite/27_io/basic_filebuf/underflow/char/10097.cc	(revision 241022)
+++ testsuite/27_io/basic_filebuf/underflow/char/10097.cc	(working copy)
@@ -30,9 +30,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-// No asserts, avoid leaking the semaphores if a VERIFY fails.
-#undef _GLIBCXX_ASSERT
-
 #include <testsuite_hooks.h>
 
 class UnderBuf : public std::filebuf
@@ -53,7 +50,7 @@
 {
   using namespace std;
   using namespace __gnu_test;
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   const char* name = "tmp_fifo1";
   
@@ -62,7 +59,7 @@
   
   if (0 != mkfifo(name, S_IRWXU))
     {
-      VERIFY( false );
+      test = false;
     }
   
   semaphore s1, s2;
@@ -70,13 +67,13 @@
   if (fval == -1)
     {
       unlink(name);
-      VERIFY( false );
+      test = false;
     }
   else if (fval == 0)
     {
       filebuf fbout;
       fbout.open(name, ios_base::in|ios_base::out);
-      VERIFY( fbout.is_open() );
+      test &= bool( fbout.is_open() );
       fbout.sputn("0123456789", 10);
       fbout.pubsync();
       s1.wait();
@@ -96,8 +93,8 @@
       --n;
       
       UnderBuf::int_type c = fb.pub_underflow();
-      VERIFY( c != UnderBuf::traits_type::eof() );
-      
+      test &= bool( c != UnderBuf::traits_type::eof() );
+
       fb.sbumpc();
     }
 
Index: testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc
===================================================================
--- testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc	(revision 241022)
+++ testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc	(working copy)
@@ -26,10 +26,6 @@
 
 using namespace std;
 
-#ifndef _GLIBCXX_ASSERT
-#  define TEST_NUMPUT_VERBOSE 1
-#endif
-
 struct _TestCase
 {
   double val;
Index: testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc
===================================================================
--- testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc	(revision 241022)
+++ testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc	(working copy)
@@ -27,10 +27,6 @@
 #include <string>
 #include <testsuite_hooks.h>
 
-#ifndef _GLIBCXX_ASSERT
-#  define TEST_NUMPUT_VERBOSE 1
-#endif
-
 #ifdef TEST_NUMPUT_VERBOSE
 #  include <iostream>
 #endif
Index: testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc
===================================================================
--- testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc	(revision 241022)
+++ testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc	(working copy)
@@ -26,10 +26,6 @@
 
 using namespace std;
 
-#ifndef _GLIBCXX_ASSERT
-#  define TEST_NUMPUT_VERBOSE 1
-#endif
-
 struct _TestCase
 {
   double val;
Index: testsuite/27_io/objects/char/7.cc
===================================================================
--- testsuite/27_io/objects/char/7.cc	(revision 241022)
+++ testsuite/27_io/objects/char/7.cc	(working copy)
@@ -30,10 +30,6 @@
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-
-// No asserts, avoid leaking the semaphore if a VERIFY fails.
-#undef _GLIBCXX_ASSERT
-
 #include <testsuite_hooks.h>
 
 // Check that cout.flush() is called when last ios_base::Init is destroyed.
@@ -41,7 +37,7 @@
 {
   using namespace std;
   using namespace __gnu_test;
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   const char* name = "tmp_fifo4";
 
@@ -52,13 +48,13 @@
   semaphore s1;
 
   int child = fork();
-  VERIFY( child != -1 );
+  test &= bool( child != -1 );
 
   if (child == 0)
     {
       filebuf fbout;
       fbout.open(name, ios_base::in|ios_base::out);
-      VERIFY( fbout.is_open() );
+      test &= bool( fbout.is_open() );
       s1.wait();
       cout.rdbuf(&fbout);
       fbout.sputc('a');
@@ -70,8 +66,8 @@
   fbin.open(name, ios_base::in);
   s1.signal();
   filebuf::int_type c = fbin.sbumpc();
-  VERIFY( c != filebuf::traits_type::eof() );
-  VERIFY( c == filebuf::traits_type::to_int_type('a') );
+  test &= bool( c != filebuf::traits_type::eof() );
+  test &= bool( c == filebuf::traits_type::to_int_type('a') );
 
   fbin.close();
 
Index: testsuite/27_io/objects/char/9661-1.cc
===================================================================
--- testsuite/27_io/objects/char/9661-1.cc	(revision 241022)
+++ testsuite/27_io/objects/char/9661-1.cc	(working copy)
@@ -20,9 +20,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// No asserts, avoid leaking the semaphores if a VERIFY fails.
-#undef _GLIBCXX_ASSERT
-
 #include <testsuite_hooks.h>
 #include <cstdio>
 #include <cstdlib>
@@ -41,7 +38,7 @@
   using namespace std;
   using namespace __gnu_test;
 
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   const char* name = "tmp_fifo5";
 
@@ -52,12 +49,12 @@
   semaphore s1, s2;
   
   int child = fork();
-  VERIFY( child != -1 );
+  test &= bool( child != -1 );
 
   if (child == 0)
     {
       FILE* file = fopen(name, "r+");
-      VERIFY( file != 0 );
+      test &= bool( file != 0 );
       fputs("Whatever\n", file);
       fflush(file);
       s1.signal();
@@ -67,25 +64,25 @@
       exit(0);
     }
 
-  VERIFY( freopen(name, "r", stdin) );
+  test &= bool( freopen(name, "r", stdin) );
   s1.wait();
 
   int c1 = fgetc(stdin);
-  VERIFY( c1 != EOF );
+  test &= bool( c1 != EOF );
   int c2 = cin.rdbuf()->sputbackc('a');
-  VERIFY( c2 != EOF );
-  VERIFY( c2 == 'a' );
+  test &= bool( c2 != EOF );
+  test &= bool( c2 == 'a' );
   
   int c3 = fgetc(stdin);
-  VERIFY( c3 != EOF );
-  VERIFY( c3 == c2 );
+  test &= bool( c3 != EOF );
+  test &= bool( c3 == c2 );
   int c4 = ungetc('b', stdin);
-  VERIFY( c4 != EOF );
-  VERIFY( c4 == 'b' );
+  test &= bool( c4 != EOF );
+  test &= bool( c4 == 'b' );
   
   int c5 = cin.rdbuf()->sgetc();
-  VERIFY( c5 != EOF );
-  VERIFY( c5 == c4 );
+  test &= bool( c5 != EOF );
+  test &= bool( c5 == c4 );
   s2.signal();
   s1.wait();
 
Index: testsuite/27_io/objects/wchar_t/7.cc
===================================================================
--- testsuite/27_io/objects/wchar_t/7.cc	(revision 241022)
+++ testsuite/27_io/objects/wchar_t/7.cc	(working copy)
@@ -31,9 +31,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-// No asserts, avoid leaking the semaphore if a VERIFY fails.
-#undef _GLIBCXX_ASSERT
-
 #include <testsuite_hooks.h>
 
 // Check that wcout.flush() is called when last ios_base::Init is destroyed.
@@ -41,7 +38,7 @@
 {
   using namespace std;
   using namespace __gnu_test;
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   const char* name = "tmp_fifo4";
 
@@ -52,7 +49,7 @@
   semaphore s1;
 
   int child = fork();
-  VERIFY( child != -1 );
+  test &= bool( child != -1 );
 
   if (child == 0)
     {
@@ -69,8 +66,8 @@
   fbin.open(name, ios_base::in);
   s1.signal();
   wfilebuf::int_type c = fbin.sbumpc();
-  VERIFY( c != wfilebuf::traits_type::eof() );
-  VERIFY( c == wfilebuf::traits_type::to_int_type(L'a') );
+  test &= bool( c != wfilebuf::traits_type::eof() );
+  test &= bool( c == wfilebuf::traits_type::to_int_type(L'a') );
 
   fbin.close();
 
Index: testsuite/27_io/objects/wchar_t/9661-1.cc
===================================================================
--- testsuite/27_io/objects/wchar_t/9661-1.cc	(revision 241022)
+++ testsuite/27_io/objects/wchar_t/9661-1.cc	(working copy)
@@ -20,9 +20,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// No asserts, avoid leaking the semaphores if a VERIFY fails.
-#undef _GLIBCXX_ASSERT
-
 #include <testsuite_hooks.h>
 #include <cstdio>
 #include <cstdlib>
@@ -41,7 +38,7 @@
   using namespace std;
   using namespace __gnu_test;
 
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   const char* name = "tmp_fifo5";
 
@@ -52,7 +49,7 @@
   semaphore s1, s2;
 
   int child = fork();
-  VERIFY( child != -1 );
+  test &= bool( child != -1 );
 
   if (child == 0)
     {
@@ -66,25 +63,25 @@
       exit(0);
     }
 
-  VERIFY( freopen(name, "r", stdin) );
+  test &= bool( freopen(name, "r", stdin) );
   s1.wait();
 
   wint_t c1 = fgetwc(stdin);
-  VERIFY( c1 != WEOF );
+  test &= bool( c1 != WEOF );
   wint_t c2 = wcin.rdbuf()->sputbackc(L'a');
-  VERIFY( c2 != WEOF );
-  VERIFY( c2 == L'a' );
+  test &= bool( c2 != WEOF );
+  test &= bool( c2 == L'a' );
   
   wint_t c3 = fgetwc(stdin);
-  VERIFY( c3 != WEOF );
-  VERIFY( c3 == c2 );
+  test &= bool( c3 != WEOF );
+  test &= bool( c3 == c2 );
   wint_t c4 = ungetwc(L'b', stdin);
-  VERIFY( c4 != WEOF );
-  VERIFY( c4 == L'b' );
+  test &= bool( c4 != WEOF );
+  test &= bool( c4 == L'b' );
   
   wint_t c5 = wcin.rdbuf()->sgetc();
-  VERIFY( c5 != WEOF );
-  VERIFY( c5 == c4 );
+  test &= bool( c5 != WEOF );
+  test &= bool( c5 == c4 );
   s2.signal();
   s1.wait();
 
Index: testsuite/lib/libstdc++.exp
===================================================================
--- testsuite/lib/libstdc++.exp	(revision 241022)
+++ testsuite/lib/libstdc++.exp	(working copy)
@@ -236,7 +236,7 @@
 
     # Default settings.
     set cxx [transform "g++"]
-    set cxxflags "-D_GLIBCXX_ASSERT -fmessage-length=0"
+    set cxxflags "-fmessage-length=0"
     set cxxpchflags ""
     set cxxvtvflags ""
     set cxxldflags ""
Index: testsuite/util/testsuite_hooks.h
===================================================================
--- testsuite/util/testsuite_hooks.h	(revision 241022)
+++ testsuite/util/testsuite_hooks.h	(working copy)
@@ -21,10 +21,7 @@
 
 // This file provides the following:
 //
-// 1)  VERIFY(), via _GLIBCXX_ASSERT, from Brent Verner <brent@rcfile.org>.
-//   This file is included in the various testsuite programs to provide
-//   #define(able) assert() behavior for debugging/testing. It may be
-//   a suitable location for other furry woodland creatures as well.
+// 1)  VERIFY()
 //
 // 2)  set_memory_limits()
 //   set_memory_limits() uses setrlimit() to restrict dynamic memory
@@ -54,12 +51,16 @@
 #include <sys/stat.h>
 #endif
 
-#ifdef _GLIBCXX_ASSERT
-# include <cassert>
-# define VERIFY(fn) assert(fn)
-#else
-# define VERIFY(fn) test &= bool(fn)
-#endif
+#define VERIFY(fn)                                                      \
+  do                                                                    \
+  {                                                                     \
+    if (! (fn))								\
+      {									\
+	__builtin_printf("%s:%d: %s: Assertion '%s' failed.\n",		\
+			 __FILE__, __LINE__, __PRETTY_FUNCTION__, #fn); \
+	__builtin_abort();						\
+      }									\
+  } while (false)
 
 #ifdef _GLIBCXX_HAVE_UNISTD_H
 # include <unistd.h>


More information about the Libstdc++ mailing list