]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite_hooks.h: Rewrite VERIFY in terms of __builtin_printf and __builtin_abort.
authorPaolo Carlini <paolo@gcc.gnu.org>
Wed, 12 Oct 2016 16:13:06 +0000 (16:13 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 12 Oct 2016 16:13:06 +0000 (16:13 +0000)
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.

From-SVN: r241069

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

index 39a67a1f6e2a6da917f272c4c8125a1cd12fc9f6..a1781e52ddf667f082f3a1461b284300bff29f6b 100644 (file)
@@ -564,7 +564,7 @@ cat 27_io/objects/char/3_xin.in | a.out</programlisting>
       <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 ea1a4643cb8c553d9ca3149e7e82a243ca58139d..cf7f0f7411e5e3ae421ed7e2353080f143d9150e 100755 (executable)
@@ -56,7 +56,7 @@ case ${query} in
       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 82b00f2c9dd626d218aa797980c425b958f7e9b4..88c87ee8ad527f5d8ea69f5f0ee2629d9038b538 100644 (file)
@@ -56,8 +56,6 @@ void operator delete(void* p)
 // libstdc++/50594
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   {
     std::string s = "Hello World, this is not a small string.";
   }
index 951ef2314d867d5ef2d467d49a31168253a11267..c12852bf0b8797895faf591f8e23422535357f15 100644 (file)
@@ -26,7 +26,6 @@
 // libstdc++/14493
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   bad_alloc ba;
index d69ce9bcaab12746550df92671544ec4ab293050..b960660955caef28eb1a5a9a78837ccf90558ce1 100644 (file)
@@ -26,7 +26,6 @@
 // libstdc++/14493
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   bad_cast bc;
index dfb19c7556103f51b98578287bc8e6ac4dabe682..28df237a743a0fb46ca5ac9ce2380d7025305bb8 100644 (file)
@@ -26,7 +26,6 @@
 // libstdc++/14493
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   bad_exception be;
index 4469236ddcefea82865820f5d274a578645390b8..633175b2440877c91538393aad88062abae36dae 100644 (file)
@@ -26,7 +26,6 @@
 // libstdc++/14493
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   bad_typeid bt;
index 132173bd2c5ebc3a651d08e611cfd0c9c12d1b35..926c47d04dd475963a39712db46ef70b4e766642 100644 (file)
@@ -61,7 +61,6 @@ extern "C" __cxa_eh_globals *__cxa_get_globals () throw();
 // PR libstdc++/38732
 void test01 ()
 {
-  bool test __attribute__((unused)) = true;
   try {
     throw 0;
   } catch(...) {
index 6e4e7d698107119c37e3f774ce7f46d32718c95e..334923de1ae500723db033ecaadcff1ce0ecbce1 100644 (file)
@@ -26,7 +26,6 @@
 // libstdc++/14493
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   exception e;
index fbb01ae9c3384b7dcd2613cafc6e6b1330f69529..c1e9a05943f7a74f57fb15e8b0d2d3640a35311b 100644 (file)
@@ -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 2383ceecf916bef0138250474da98d36daac19c1..79459ebab60afbe2d7fe133b1ea3e162be0b644d 100644 (file)
@@ -27,7 +27,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   exception_ptr ep = current_exception();
@@ -36,7 +35,6 @@ void test01()
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   try {
@@ -49,7 +47,6 @@ void test02()
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   try {
@@ -62,7 +59,6 @@ void test03()
 
 void test04()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   try {
index e350df3338139f0ffb7f136bbf56df2c6a57c876..ada652e7436079f585ecc40f84ab07c400625d82 100644 (file)
@@ -39,7 +39,6 @@ public:
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
@@ -56,7 +55,6 @@ void test01()
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
@@ -71,7 +69,6 @@ void test02()
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
@@ -89,7 +86,6 @@ void test03()
 
 void test04()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
@@ -119,7 +115,6 @@ void test05_helper()
 
 void test05()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
@@ -145,7 +140,6 @@ void test06_helper()
 
 void test06()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
@@ -165,7 +159,6 @@ std::exception_ptr gep;
 
 void test99()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   may_destruct = false;
index b496bb37ec594cb81257649dba75d4371633caeb..b9ded3589f0fab184184c4c9ab08aa7ab6366671 100644 (file)
@@ -23,8 +23,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::exception_ptr p = std::make_exception_ptr(0);
 
   VERIFY( !(p == 0) );
index f0b61b1512210f9eef89cdde667acacc03ccb1b1..567af32e947244f832aeb312b308bebd9d02d0ae 100644 (file)
@@ -40,7 +40,6 @@ void test01()
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   try {
index e652c31ab40ee683ad2db52c42bfa639a3358f49..af6f90c56f691c52fbdcc12c440dc18d6a2c3f98 100644 (file)
@@ -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 test01()
 
 void test02() 
 {
-  bool test __attribute__((unused)) = true;
-
   try
   {
     throw 42;
index bfb8ee08cbd61a639302d776a95aeea7be193af8..467d371846f82c852be922c3d4a4b7a2b592f714 100644 (file)
@@ -23,8 +23,6 @@
 
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
-
   try
   {
     throw std::nested_exception();
@@ -37,8 +35,6 @@ void test01()
 
 void test02() 
 {
-  bool test __attribute__((unused)) = true;
-
   try
   {
     throw 42;
index 7751213300907d8c13d091f062714c34737b33e0..b0420846a2b29dd443a64ad1617e71f4658387d5 100644 (file)
@@ -30,7 +30,7 @@ struct derived2 : base, std::nested_exception { };
 
 void test01() 
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
@@ -55,7 +55,7 @@ void test01()
 
 void test02() 
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
@@ -72,7 +72,7 @@ void test02()
 
 void test03() 
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
index 31d822ba11a107c867bd871c13afb2c766db745a..fd374e530e028ce1108d70e480fa4e92fe44afde 100644 (file)
@@ -23,7 +23,7 @@
 
 void test01() 
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
index ac37f020dc7623950dfe0e077ad9a20f949784bb..f768b1e516602b37f9d9333f54e12c2427150492 100644 (file)
@@ -30,7 +30,7 @@ struct uninheritable final { };
 
 void test01() 
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
@@ -53,7 +53,7 @@ void test01()
 
 void test02() 
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
@@ -76,7 +76,7 @@ void test02()
 
 void test03()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
 
   try
   {
index 546c5b2c49c805ca1b5034f4d1f1847a1dce2208..9e3aadb6f5388e143f116bb25882c76d7b2f5998 100644 (file)
@@ -31,8 +31,6 @@ template<typename T, typename R>
   void
   do_test()
   {
-    bool test __attribute__((unused)) = true;
-
     typedef std::numeric_limits<T> char_type;
     typedef std::numeric_limits<R> impl_type;
 
index ea08d560b5dd99ce5da3d99b0629fc78cda90da6..aa2ec00f6ad173638a9fbdb254333a9ca12d0e82 100644 (file)
 #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 @@ bool test03()
       VERIFY( std::numeric_limits<signed long long>::digits10 == 18 );
       VERIFY( std::numeric_limits<unsigned long long>::digits10 == 19 );
     }
-  return test;
 }
 
 int main()
index f4979fdda6f0083d15ab07dd618185b02d5d326b..35ec411cfd0fa17f20333bf1a76c5645f7f08ddc 100644 (file)
@@ -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 5a2aa7bdca493d6b34859d3108ef775b38a83d1a..c999fee8b0113e658fac72b95884f5ceca08c553 100644 (file)
@@ -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 1930d15bef79f9f5a3707265727969d1a5e83ed8..f6f5b675e3f4caa1c2e7ccdf8ae8f687a0d0db95 100644 (file)
@@ -52,10 +52,8 @@ test_is_iec559()
 }
 
 // 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 @@ bool test04()
   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 47a48bbcf5a8ba41a0249ecdc2edc81ffd102296..88face421c41ce14a829f8a6ee15ac67039a05b2 100644 (file)
@@ -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 8969ddfd67ffc78f5972d0cae019f47abd7a1687..9001f31ac34f8b8a1c43dbf44d8db0d27f1cce28 100644 (file)
@@ -30,7 +30,6 @@ template<typename T>
   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 @@ template<typename T>
   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 4f5c601732c4c75c3baab37246b407376e83a5c7..f6a511435089b260c17dc11f2d1b9661eca6edc9 100644 (file)
@@ -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 d51c58f2492f87f4b0971fda667ffc4570a59971..2cdddedba5cc83e015eed1b0d7ef30dbf721cc50 100644 (file)
@@ -61,7 +61,6 @@ DEFINE_EXTREMA(long double, LDBL_MIN, LDBL_MAX);
 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 6c11b6a534d63c50e669e852699a086c171363f6..04ba194f4c1e1139247837cd8815f6d60b51a046 100644 (file)
@@ -43,9 +43,8 @@ struct B
 };
 
 
-bool test01()
+void test01()
 {
-  bool test __attribute__((unused)) = true;
   std::numeric_limits< A<B> > obj;
 
   VERIFY( !obj.is_specialized );
@@ -78,7 +77,6 @@ bool test01()
   VERIFY( !obj.traps );
   VERIFY( !obj.tinyness_before );
   VERIFY( obj.round_style == std::round_toward_zero );
-  return test;
 }
 
 // test linkage of the generic bits
index 8758222b20e6600ec8723c80862c50d39843c673..4bf3d2456bcd0e6d64a230eca3fadb8c2eade006 100644 (file)
@@ -24,7 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   class Abraca { };
index 56e9f286d85323beca83e19dbc881f2fcf856a80..c7b98ba88b36b457c9700fa8d34280617b58ca76 100644 (file)
@@ -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 e3238ce751d81163763afd8d379af5dc63bc5074..d801a9662bf648c39b0b30ba7c1ada5a0b2e9c33 100644 (file)
@@ -23,8 +23,6 @@
 
 int main()
 {
-  bool test __attribute__((unused)) = true;
-
   // 1
   __gnu_test::test_category c1;
   __gnu_test::test_derived_category c2;
index 52c4b451ed3b6d616a1af555b41b92b51fafd3ea..134c46a832e7e550ad9bd395ae90a8d85e538d79 100644 (file)
@@ -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 7ba797c25bc80655fe57efa44e8a337f7c3cde05..5c412e13e4be52b4d73fa7f5bca29038efc13b8d 100644 (file)
@@ -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 d89f0168c4a1ec887e83ea4a38cd15829b012a95..ecddfb6f9a42de372a29d42a59d6d4e8223619b6 100644 (file)
@@ -24,8 +24,6 @@
 
 int main()
 {
-  bool test __attribute__((unused)) = true;
-
   // 1
   std::error_code e1;
   VERIFY( e1.value() == 0 );
index 989f29d683e397bc559c837104f4e49cc842b6c6..f441c213d353b2db55d3ce07d81c00346b3b10eb 100644 (file)
@@ -47,8 +47,6 @@ namespace std
 // libstdc++/39882
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::error_code ec1(my_err);
   VERIFY( ec1 == make_error_code(my_err) );
 }
index d810d7bae5c8fee54aa6b70ef6d98ff12f53f3cc..878aa216d683ea10dcbf004bf6bd109f6dab07f3 100644 (file)
@@ -47,8 +47,6 @@ namespace std
 // libstdc++/39882
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::error_code ec2;
   ec2 = my_err;
   VERIFY( ec2 == make_error_code(my_err) );
index 0452d0b4aae24b9105c8a71a297619e0c5f00ece..a8949d8ec48df87294ecad1b69316574da565443 100644 (file)
@@ -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 1b493fbb250260b6dcedafb4e6ed8e433c289307..193a7ce45453cfa1d1360b74b337a55e5625ae8f 100644 (file)
@@ -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 e4696cf7086e9a457d3978c5cd3ec3de9ec8fa41..544d126ba6f996ee2eef81117fc625435a4dc4f5 100644 (file)
@@ -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 772164cb4b9de30644ea0478e746f1df5d903ac7..51cfcae93a384f0b455989cdffb1ebe92cf58d6e 100644 (file)
@@ -23,8 +23,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   // 1
   std::error_condition e1;
   VERIFY( e1.value() == 0 );
index d989847f56e0a761d0eb878094389403eabf3a42..6198cde32a85be8bca917ac4e63315d8c7cb5caf 100644 (file)
@@ -47,8 +47,6 @@ namespace std
 // libstdc++/39881
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::error_condition ec1(my_err);
   VERIFY( ec1 == make_error_condition(my_err) );
 }
index 98515c8daa21b52a1dc2fd82fbf66bcfec88dec7..7c144064ad631283d2c13662b0622ccdf98e8d64 100644 (file)
@@ -47,8 +47,6 @@ namespace std
 // libstdc++/39881
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::error_condition ec2;
   ec2 = my_err;
   VERIFY( ec2 == make_error_condition(my_err) );
index ccb0def1f924725fd760d5e97d6c3c3ddabdcfbe..e5ed5c5df1b6d89a95cad382c582d943104aff8f 100644 (file)
@@ -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 ad57353f889e937f8405a6a6bc56764175aaa0a0..3a4bcdd6c030a632aff39bbc4c2b1b5a6025b2e6 100644 (file)
@@ -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 e8b0c2edd5cf235628236b13e3c045f0580da82d..6c060310451d5fddf4c62f94a6724a44ef6b8689 100644 (file)
@@ -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 4b8bfeac024ee3ab03dec9865f8f4dd7209aedc2..c2ef01eac251ec74343be9791c3fb944f997400d 100644 (file)
@@ -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 test01()
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   std::string s("lack of sunlight error");
   std::domain_error x(s);
   
index 6d79b638faec83bfcccd4783882ec56f0e86e335..dab91a7f588db0ebaf7aecb138e76318fb158a41 100644 (file)
@@ -33,7 +33,6 @@ public:
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   try
     { throw fuzzy_logic(); }
   catch(const fuzzy_logic& obj)
index 2e6468ac751e4c447d033ca1ae2a93f6af551dd1..9bbc8cf1e79a5aedba52f484e571bdc50a3b56a3 100644 (file)
@@ -38,7 +38,6 @@ void allocate_on_stack(void)
 
 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 5e050ac335f398e8dcb22e01fe4effbea4d9802a..85aca9a028644e79ff8285445b0646b5d0077acd 100644 (file)
@@ -27,7 +27,6 @@ void test01()
 {
   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 05a67a7019e0e081b5d3bf8577130ad154435100..c3b08ab63213ab06db633b4b1db62626eda2b5bc 100644 (file)
@@ -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 test01()
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   std::string s("lack of sunlight error");
   std::range_error x(s);
   
index 74346c1c396659224c3abca845ce6759a778edb6..27cf7d927d4ee1443ef6007c07303675be5ed1a2 100644 (file)
@@ -33,7 +33,6 @@ public:
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   try
     { throw fuzzy_logic(); }
   catch(const fuzzy_logic& obj)
index 47d87372c44134d44f4b370ba8660e28112cde6f..70a8b5dce82a0d697cddfb330df34d9a225c791c 100644 (file)
@@ -40,7 +40,6 @@ void allocate_on_stack(void)
 
 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 08a71f4719e39f1a8076fca2b371429732e12b25..76089a68f5c4586dd18f93b1534df3d886245a45 100644 (file)
@@ -27,7 +27,6 @@ void test01()
 {
   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 4a86e385da1db430d93ee48f7121be7baabd87d8..adbece7f88d7e130dfdbb32fb468a796dd3af613 100644 (file)
@@ -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 89455b61df8902b9f322efab42f7efe81f428bf6..6a83ef354b427b10b8804a520b38f99d3d9e2bf6 100644 (file)
@@ -28,7 +28,6 @@ using namespace std;
 // libstdc++/1972
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   string s("lack of sunlight, no water error");
 
   // 1
@@ -43,7 +42,6 @@ void test01()
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   string s("lack of sunlight error");
   system_error x(error_code(), s);
   
index c7c9d16e7cdba131587d744b3d0903568d99722a..f6865b9cef993bb333b9437b8dd035dfd11e2486 100644 (file)
@@ -32,7 +32,6 @@ public:
 
 void test03()
 {
-  bool test __attribute__((unused)) = true;
   try
     { throw fuzzy_logic(); }
   catch(const fuzzy_logic& obj)
index edb4d76460903b578b32a34ac60c9d2c763e74e0..eedac88e734769be890b9f828f26fd8c09d881c1 100644 (file)
@@ -37,7 +37,6 @@ void allocate_on_stack(void)
 
 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 fb6420e9cdb5aeff23cfe7c8c3b210e5946baa43..fbd19e3fb26df2416d9f6ebaa72b7e08c1b439cb 100644 (file)
@@ -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 f680486c178707e00feb5dea700ed80c974639c1..ba970768bcd9f4abce2e79a5a6269e253e4568f1 100644 (file)
@@ -26,7 +26,6 @@ void test01()
 {
   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 16482cb6b932651068cf9670812c27311edabb53..333a3f77a1b1b8ab558a279586fd4535e74e6a17 100644 (file)
@@ -27,7 +27,6 @@ void f1(int) { }
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace __gnu_test;
   
   OverloadedAddress* ao1 = new OverloadedAddress();
index bb037332a788cc47bc2bbea4bd5b06ca385912c7..39b2c70bf1b1d1266fefec993b433ae66705e399 100644 (file)
@@ -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 2c43ac2e6a3092e914c8d336447fbf8a7dae975f..2308048ad109630a9016374e82091a0365bb2029 100644 (file)
@@ -27,8 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   int i = 0;
   void* ptr = &i;
   auto space = sizeof(i);
index 4fc1aef1ea35d6e73f2bedfd53e489fca99e45da..6905c86bd2d1d837ad6c6c2fcfe5ddbbad126bf9 100644 (file)
@@ -44,7 +44,6 @@ void operator delete(void *v) throw()
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   std::allocator<gnu> obj;
 
   // NB: These should work for various size allocation and
index 7987e1aa4c874027949f3add27ed8691a327302f..a8384799ae0d3e9d013e26841d959dcab39a1340 100644 (file)
@@ -32,7 +32,6 @@ public:
 void test01()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   list<Bob> uniset;
   uniset.push_back(Bob());
index dd2d4925414f96c71869bb7851f7278f7aea9782..d99c7b858dfa6cc431d677ec5a1ee48fca8184e5 100644 (file)
@@ -26,7 +26,7 @@
 // libstdc++/8230
 void test02()
 {
-  bool test __attribute__((unused)) = true;
+  bool test = true;
   try 
     {
       std::allocator<int> alloc;
index ba8eddee3ca7707ced55c64055ca89a0719ff85b..ceb524cb4b6c2570e9aaf9a39c7a2d3900601b9b 100644 (file)
@@ -46,8 +46,6 @@ struct hintable_allocator
 
 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 @@ struct unhintable_allocator
 
 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 6d616f1eee88d516674159acf981607befcaf0dc..7b1adb98cbcf2105a0fdf2f95a6214f7de4126c0 100644 (file)
@@ -52,8 +52,6 @@ struct fake_allocator
 
 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 930b0b1e6ba948c264a96013f1233c6a1b2b76fa..0ce84046e8d7d040ce5b970e855bf5d1e117575c 100644 (file)
@@ -53,8 +53,6 @@ struct allocator_without_destroy
 
 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 test01()
 
 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 c274c4a76bac1fa816281197954f56663ec4f1cd..745acca355066668e81db518f43d45004805ed28 100644 (file)
@@ -42,8 +42,6 @@ struct unsized_allocator
 
 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 test01()
 
 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 test02()
 
 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 11a1a55ce80bdb82ba66920150d0540da02cd4a4..31a87a2b439773273248c19416455800f6172ade 100644 (file)
@@ -57,8 +57,8 @@ int main()
         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 @@ int main()
         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 c0cafa895da7a168591906631e3f5a27e60132f2..55a25e94de45ce3cf52e18c903083a41bc24a8d8 100644 (file)
@@ -62,7 +62,6 @@ int
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::auto_ptr<A> A_default;
   VERIFY( A_default.get() == 0 );
index 8200edbd25722ec413a88fbccddcb983bfea4091..47b24bbef177cdea11a192851e9757f460ef4d5f 100644 (file)
@@ -59,7 +59,6 @@ int
 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 3245fa75501789a54d8a2de08f8ec389d8ad3788..82c87b838cfb828b2f317565be6320dc8e362344 100644 (file)
@@ -59,7 +59,6 @@ int
 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 8455c9236217bc986c6e12459213876c222e2577..279665f1688acb504226f5b772b0e5ce4fa94817 100644 (file)
@@ -60,7 +60,6 @@ int
 test04()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   {/*lifetine scope*/
     std::auto_ptr<A> A_from_A(new A);
index a9e9032a45b1776531271b0035540188651dd56a..16e28ca90e049536e2ad888e70fe527253cb2e60 100644 (file)
@@ -68,7 +68,6 @@ private:
 int 
 test05()
 {
-  bool test __attribute__((unused)) = true;
   reset_count_struct __attribute__((unused)) reset;
 
   pimpl<A>();
index 54581207691b8b17d78834c8e5c4f5049d08e947..02545c72b32ded3408ed535814670f50e6d79ec9 100644 (file)
@@ -61,7 +61,6 @@ int
 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 32ca098cdab6d98aa13464d5f43e3e284c099c53..1e8319f29ffc331cfa4aebb17a7c54402348ff1c 100644 (file)
@@ -70,7 +70,6 @@ static void drain(std::auto_ptr<T>)
 int
 test07()
 {
-  bool test __attribute__((unused)) = true;
   reset_count_struct __attribute__((unused)) reset;
 
   drain(source<A>());
index 9f6570c528f2567bdfa06f68bfaf84cac89fbcdf..cf70f39c474c00870ea139dfdffc4cd9df87e427 100644 (file)
@@ -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 cf7aa1cc7fdfe964b7e0252e221ba5ee8165ca90..1d6d91ab766c1324a8e44342f5f3637488a5c095 100644 (file)
@@ -30,7 +30,6 @@ struct X
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::bind;
   using std::ref;
   ::X x = { true };
index e81780e2c291e42a4979e0b8e84549a5706657a1..ebf654fd26868319f00cc4f98e518e278002fab3 100644 (file)
@@ -42,8 +42,6 @@ using std::placeholders::_2;
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   auto b0 = std::bind(X());
   VERIFY( b0() == 0 );
 
@@ -59,8 +57,6 @@ void test01()
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   auto b0 = std::bind<int>(X());
   VERIFY( b0() == 0 );
 
@@ -76,8 +72,6 @@ void test02()
 
 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 test03()
 
 void test04()
 {
-  bool test __attribute__((unused)) = true;
-
   auto b0 = std::bind<int>(X(), 0, _1, _2);
   VERIFY( b0(0, 0) == 0 );
 
index a3b5c3b899f461efa0fdee26aec03fd33c148b5a..9252285bb2ad9b99c05ce7c33b31f6006175a134 100644 (file)
@@ -30,8 +30,6 @@ struct X
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const auto b0 = std::bind(X());
   VERIFY( b0() == 0 );
 
index 04425eff68f55fd411f6407743d074e6f4d41ee0..823978e3d271ec092798b0d89cd40c249888446d 100644 (file)
@@ -24,7 +24,6 @@
 // Operations on empty function<> objects
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::placeholders;
 
   int five = 5;
index 14b9ffbde71c81292c76b2241480275bc5b9b46b..0ddaa01d264cadab560c343c7a6d81093a2d9a61 100644 (file)
@@ -24,7 +24,6 @@
 // Operations on empty function<> objects
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::placeholders;
 
   int five = 5;
index 6b7fc53621d037395dc3796a2a5ffb32bf3a9371..a0c7e60d50f72babbe02501e2f606aa83d2cecf3 100644 (file)
@@ -37,7 +37,6 @@ private:
 // Operations on empty function<> objects
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::bind;
   using std::ref;
   ::X x;
index 161a2b266e77631c6446052dbe7161a4d1a116c5..d9ba387a293b1503fdaab1a4bd8f73c3b34496e0 100644 (file)
@@ -28,8 +28,6 @@ int inc(int& i) { return ++i; }
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   int counter = 0;
   std::bind(&inc, _1)(counter);
   VERIFY(counter == 1 );
@@ -47,8 +45,6 @@ struct Inc
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   int counter = 0;
   std::bind(Inc(), _1)(counter);
   VERIFY(counter == 1 );
index 12ea6071a6d2d81172047854e24afb7164a6f838..163426dd88dccacf4ccb80004d2d2bd7b4f62c95 100644 (file)
@@ -66,7 +66,6 @@ struct B : A { };
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::common_type;
   using std::is_same;
 
@@ -98,7 +97,6 @@ void test01()
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   using std::common_type;
   using std::is_same;
   
index b74ae9af8c91b38115e2113509b8575eb33c5505..3f642b9dcab592b1083b21d5cb0163c05b011512 100644 (file)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   duration<int> d0(3);
@@ -59,7 +58,6 @@ test01()
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   duration<int> d7(3);
index 015f2abe6cf8387b1cb973d3b38562234a181739..d3282eaaee1f703ea317e6b60df9cb0d36f03728 100644 (file)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   duration<int> d0(12);
index 24f7f09af878c934b97825d6986f776ec9a7f007..489125814c3682338b76f58956e9f73bd5baa6c3 100644 (file)
@@ -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 994e4f75bce666c3031defaafa22351700a29f56..e9bc53cf06e94a96e4493c13c9133b49ec29895b 100644 (file)
@@ -26,7 +26,6 @@
 // DR 2020
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
 
   constexpr duration<int> d0(12);
index 2073fb8db494367354ed2c0db5e0a5246901b466..e059c9632d08c98fe99333d5e1108b112273db31 100644 (file)
@@ -25,7 +25,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
 
   const duration<int> d0(17);
index 59d458f8426095d5e0f73a25d4428db84f68d9f0..8a44e6ba8cede54b0e616df42a0a17fe2c61e54e 100644 (file)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   duration<int> d0(12);
index fe54142affaf14e4237d65b74bee7c100ef6806d..d880ec208e5355fd58ae29b3490aa565c82b60eb 100644 (file)
@@ -106,7 +106,6 @@ typedef type_emulator<double> dbl_emulator;
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::chrono::duration;
   
   int r = 3;
index e41f09391d34bec41ead7c92320e762f5ccae224..ead01bb99b955a067e44493d74cc5d742b47fcde 100644 (file)
@@ -87,7 +87,6 @@ typedef type_emulator<double> dbl_emulator;
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   duration<int> d0(3);
index 86f99cf1f48fad856aa02217cc8fd639e3bee182..b23cc34cd816f2c1fa7176b0380248fc9b890ff8 100644 (file)
@@ -23,7 +23,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::enable_if;
 
   // Positive tests.
index b047856ccb3f55a2720c1d43e100fa75dd8239ec..7ff151a4193067b806e0213a4a7639cc94ee20b9 100644 (file)
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::enable_if;
 
   // Negative  tests.
   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 024ccb07f8910f4a494d4e5cf19a3acfcf6d7870..58c0442d600440e9be907cd1887e6e4120b59f03 100644 (file)
@@ -24,7 +24,6 @@ struct X : public std::enable_shared_from_this<X> { };
 
 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 c8f3c9bb5ea2295747673f7e8b2cd20e32572aec..42396117587a631f7e86c96d7a03fd31c2ea3eb4 100644 (file)
@@ -41,8 +41,6 @@ test01()
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   struct DefaultConstructible
   {
     DefaultConstructible(int i = 0) : value(i) { }
@@ -63,8 +61,6 @@ double f(double) { return 0; }
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   int (*fp)(int);
   std::exchange(fp, &f);
   VERIFY( fp != nullptr );
index b2b808afd7c5a8ab41840df2cf190e0254643a29..6ecf7fbfc22d90280365254784a6005e71089568 100644 (file)
@@ -45,7 +45,6 @@ public:
 
   void test() const
   {
-    bool test __attribute__((unused)) = true;
     VERIFY( data_ == 3 );
   }
 };
index f2ae8da6f4004dc3f7809bc534e98cea2f4a5e82..6b00c583f4cd3f29044fcbb047d88ead84e5d40f 100644 (file)
@@ -45,7 +45,6 @@ public:
 
   void test() const
   {
-    bool test __attribute__((unused)) = true;
     VERIFY( data_ == 3 );
   }
 };
index a02641618213a2f2dfb9da96cbcfcc81307d5d1c..3e23ccfee8a3cb34ff4fea60ddae344dabfa0be9 100644 (file)
@@ -45,7 +45,6 @@ public:
 
   void test() const
   {
-    bool test __attribute__((unused)) = true;
     VERIFY( data_ == 3 );
   }
 };
index 4d06df334135cb1795d3815734cdfb3ff0e7a8cf..a3442ec3979a9037865b3dfa121f505459d4a669 100644 (file)
@@ -24,8 +24,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Operations on empty function<> objects
 void test01()
 {
index 2fd6d3273e1f1351b7bdfcd3acd0c386356dd9d6..b5dd40e050cbc6fbe8f2846ba12188315c59cd06 100644 (file)
@@ -25,8 +25,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Put function pointers into function<> wrappers
 void test02()
 {
index 8739248134a28e203b220396d7ef2dadbab1f6c4..a4d62aa3b1fb9b352f04bafe6e0141071f5ef218 100644 (file)
@@ -25,8 +25,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Put nearly-matching function pointers into function<> wrappers
 void test03()
 {
index 0827475d59cae1e0dc94f7cd3e77bcecf1aade4d..00f471616d32f67272c1647312c7c94076b85b77 100644 (file)
@@ -25,8 +25,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Put function objects into function<> wrappers
 void test04()
 {
index b8a268081a61d1173c5d16ae35b0cc679246f848..aae172b9401ed2c6e2dca75c29634b1ae24d6625 100644 (file)
@@ -36,8 +36,6 @@ struct Foo
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   using std::function;
   using std::ref;
 
index cfaa770abb450db1fd55831872f7b8cb6cf87162..9d599dcfca26a1c702ae81d77debb9e6c2d2e84c 100644 (file)
@@ -25,8 +25,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Put member pointers into function<> wrappers
 void test05()
 {
index 1ec27f6d7108571306f41f5d560243fef32fe713..180fbff3efdb95851cc889f52ac015ff06fc3067 100644 (file)
@@ -24,8 +24,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 struct secret {};
 
 struct noncopyable_function_object_type
index ef939d7079613d402f2503dd26dc17218b22d78c..097438ca02fea62619f7f235e31685714376d7d2 100644 (file)
@@ -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 49299a47542ffd4ca43a79782f7b0456bcc49aa5..7b8bcc0107b1fbc6cb2be55f73f8f2a51b966004 100644 (file)
@@ -25,8 +25,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 // Put reference_wrappers to member pointers
 void test08()
 {
index 704476ad9733c5f823455a3719f5060bf91c2310..88c4a041b67034e32f78e9f969b97af830193b8d 100644 (file)
@@ -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 c4860eeaafced0efbc2cb467b958891f4407dd35..7caf8edff103e64d6762d601f242299501860478 100644 (file)
@@ -25,8 +25,6 @@ struct { int operator()() { return 2; } } f2;
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::function<int()> function;
 
   function fo(f1);
index f2c1bcb3add0b811145789fc83da2847d992c2e7..f88a04118c416205cb018240ac244aa2e67ef655 100644 (file)
@@ -25,8 +25,6 @@ struct { int operator()() { return 2; } } f2;
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   typedef std::function<int()> function;
 
   function fo(f1);
index 83bf0201e2ef0d2fb79d9349918b3fabc53801a7..592cec124242c3b3909371631dd000048df262c0 100644 (file)
@@ -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 8da12a064db5b7662f0cd130026d2684550ef8c7..58762aa7b62db25e069ae7a553db5b46cb8f3317 100644 (file)
@@ -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 8275523d753bf81cb8b2eba327ac554e61ea8114..7cc5b7cc543023e95d94079ae525fe56dc218df6 100644 (file)
@@ -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 fae7bde71f824c8552c85b418024f65fd4cbaa3a..56cca2d142e868238370b1afb5038feb0f4a3b8c 100644 (file)
@@ -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 e4ff66edd3d58494a18375d453886384b6ae6140..697ddec2ed64d5151136a7f880613f556ff747a3 100644 (file)
@@ -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 075f1cd4bba5e71648c1c4d0184d5c5df52d8d2a..959070abe029066ae56e3ca130642e5b7902f8e4 100644 (file)
@@ -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 e82d962678d0d2f16ceb5ab5e08311e6d99b96bb..06b8a7387ffbc2261d23f9aaf5680a3f8514b7bf 100644 (file)
@@ -26,8 +26,6 @@ template<typename T>
   void
   do_test()
   {
-    bool test __attribute__((unused)) = true;
-
     typedef T                          value_type;
     typedef std::hash<value_type>      hash_type;
     using std::size_t;
index 63b6e2bd479e64402439b6fbb976b4d909f6dfb9..014788ccc52deabb96bfb589c26754957c3218a5 100644 (file)
@@ -59,7 +59,6 @@ random_strings(unsigned int n, unsigned int len)
 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 @@ quality_test(unsigned int num_strings, unsigned int string_size)
 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 58ae045917e0660516588e7de0735b329c39a0de..f3fa280c0a8a0fbe9499f1e071a1135e78e52f66 100644 (file)
@@ -22,7 +22,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   const bool* p = &std::integral_constant<bool, true>::value;
   VERIFY( p );
 }
index 53866139d7cc246fc3f60127a4de9aae740f0792..bf9e324ac6df0c597d034adfacded713a4604fef 100644 (file)
@@ -22,7 +22,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::true_type;
   using std::false_type;
 
index eeec1ecc675385c664fa29b80535320f5ebeb275..066b7001d02731ba7ec5927f04f54791d2a9679a 100644 (file)
@@ -24,7 +24,6 @@
 // libstdc++/24808
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::is_function;
   using namespace __gnu_test;
 
index f209ca2769f13e7a99da91af4ca8f198fd5202ff..77bb69e28b75de9e598be9d8fa578fa7aeddbdd3 100644 (file)
@@ -24,7 +24,6 @@
 // libstdc++/24808
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::is_object;
   using namespace __gnu_test;
 
index 36b170ffc3e214ad8a18fb2d744891b7d4963a29..7da691901cc7e428813f961719b2f48468594b19 100644 (file)
@@ -93,8 +93,6 @@ private:
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   noexcept_move_copy nemc1;
   auto nemc2 __attribute__((unused)) = std::move_if_noexcept(nemc1);
   VERIFY( nemc1 == false );
index b12d8f95bea7a3b1c2b01dc1a1528e41a65977b4..a9a9ebf80fbc917fc0818f972f3c2a7ff7b6a9ac 100644 (file)
@@ -28,8 +28,6 @@ struct simple
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   constexpr simple s { 5 };
   constexpr auto s2  __attribute__((unused)) = std::move_if_noexcept(s);
 }
index 552eb92cd8b0d264fc2dec9b60d56fcffaae735e..8fdc4ad337222cc5049a23a9d90bc84b1b449c00 100644 (file)
@@ -32,8 +32,6 @@ struct B { A a[2]; };
 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 @@ test01()
 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 @@ test02()
 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 @@ test03()
 int
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::owner_less<std::shared_ptr<A>> less;
 
   std::shared_ptr<A> a[3];
index ddafd1a366510cb8c7566289cb7fe85aa6f7f17b..caae3eac41862a8d8ff4573fc0fac6e7ca9b4e7c 100644 (file)
@@ -45,8 +45,6 @@ template<typename T>
 // 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 1cc139823195b8e46d6facf6fa659fd5fa06ad8e..dac378eebba0a07ff321ed34ba9a381bdd6c5f54 100644 (file)
@@ -44,8 +44,6 @@ template<typename T>
 // 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 3bb61aa69fd4ac38d36491c409cbef9f3adc1978..7cfc474c9b2c11d04c523045f20301eccb865aab 100644 (file)
@@ -45,8 +45,6 @@ template<typename T>
 // 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 e40ea1c821c9d5c39a0dd4fe446c87f72ea35aa1..0e1fbcd2e8893b160cda3d260afa0361db5df775 100644 (file)
@@ -44,7 +44,6 @@ template<typename T>
 // 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 b110e26e452617a9b3cabaac8cc7c3cb32f2b3ea..1195db7eeb213ff8d589b2ed2d28ebac1f3a2ac4 100644 (file)
@@ -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 ecc8eb93e51902b721a94805d38ab87567814bc2..9c26f2785679598d3b368cbf2cead2b57e80e610 100644 (file)
@@ -26,8 +26,6 @@
 #include <utility>
 #include <testsuite_hooks.h>
 
-bool test __attribute__((unused)) = true;
-
 void
 test1()
 {
index 894e0697e7468fa1156830f649d1bf53c2da66b8..854b6dea207fcfe73ac3be4f1724aea84cf49b8f 100644 (file)
@@ -67,8 +67,6 @@ private:
 
 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 5a18f2511b51f20a751c607806e629701cf73161..024fff1825f7b03a78206ab4a4e248786ea65166 100644 (file)
@@ -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 b86296eea3782d6b98644ec527296bba517a5e98..74dcf35cab96f2a0cfeaa37134ea4f88fe1b4a11 100644 (file)
@@ -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 @@ test01()
 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 5c5412eba1df6a6c90241deba7896fd9cb70fcdb..bed70cbc6a65b4532e6dc79f0e85364e1aa24467 100644 (file)
@@ -26,8 +26,6 @@ static const std::intmax_t M = INTMAX_MAX;
 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 2c1c32b483625d5a9554cde38e40120cb21d7912..8c6cd980667ad7d7165bfdad33b50279b86ab479 100644 (file)
@@ -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 02a40d0b2234089bd6c54d2e08b828b16b982f00..9ef1c3858c793cad231d9b5f1c6a67cfcfdc8e13 100644 (file)
@@ -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 48630d310492853c9bfb35e81d514c92fddd5013..c8bf8401636580254e5b6a003766a1f309f7cf6b 100644 (file)
@@ -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 75f58a772ae1072123ac29f8c8109c502b2109db..8c5254cfecc2929ccf46fd93408bff01731faf79 100644 (file)
@@ -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 cb0b31179cc5b33cd8768300e0160c3d8e266a1a..32072fe8359afb684c9f87c569146981075e54a5 100644 (file)
@@ -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 @@ test01()
 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 @@ test02()
 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 @@ test03()
 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 6bf7bf6600ceb36d9d0d802de3eb7a5c0faecf62..8172c77a00daabe920260c365eeb88c5cdb4eaa9 100644 (file)
@@ -31,8 +31,6 @@ typedef std::ratio<INTMAX_MAX, 2> max_over_two;
 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 @@ test01()
 
 void
 test02()
-{  
-  bool test __attribute__((unused)) = true;
-  
+{
   std::ratio_subtract<one_over_max, one_over_max>::type r1;
 
   VERIFY( r1.num == 0);
index 8b8a0648e5dd20b4190bdfee31ecdfc5c67cf7a0..39ba67aa058aa1ebb104657c9454ab19ae4877d1 100644 (file)
@@ -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 @@ test01()
 
 void
 test02()
-{  
-  bool test __attribute__((unused)) = true;
-  
+{
   std::ratio_divide<
     std::ratio<INTMAX_MAX, 2>,
     std::ratio<INTMAX_MAX, 2>>::type r1;
index e5c02ca926bbe0bbbfaa4db1d7d8e6efe809f5e7..b4a1eec7efd48fb3d66a1eee5bba65b83b8542c8 100644 (file)
@@ -24,8 +24,6 @@
 
 using namespace __gnu_test;
 
-bool test __attribute__((unused)) = true;
-
 struct X
 {
   typedef int result_type;
index e101fc5a4b34b8c5b4f513e31cbebd1457772d5a..f380f99652df2c55e110b453b02f7d1c798c45c7 100644 (file)
@@ -44,8 +44,6 @@ struct Element
 
 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 test01()
 
 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 58b192f1df32a102de91851de29f3e663aba9c82..0ef5d7efacb28faf08aaf1104d3e4c130b917d12 100644 (file)
@@ -120,8 +120,6 @@ template<typename A, typename B>
   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 @@ template<typename A, typename B>
   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 @@ template<typename A, typename B>
   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 7139f207dafc32a1fa12a3806c4301d04af99a6a..7eaa33712af62572686e675d29bc5efead1ae735 100644 (file)
@@ -49,7 +49,6 @@ void
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a;
 
index d29bd36089f83d4a94aebf134cbf01cdafbc7707..105fe1103ab6b007ec83285b023ca4d342d79dfd 100644 (file)
@@ -63,7 +63,6 @@ int
 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 b0a6394ab7a4d8b669f84db4bfe1fcbae65b16b7..56d818ec10a76aad0624f9544504b4e20d578c10 100644 (file)
@@ -32,8 +32,6 @@ struct B { };
 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 b2a95c4e890d7029b43e0ce778a9bc9e64637797..cef25707da77c212724df3061aa10530e6da5646 100644 (file)
@@ -62,7 +62,6 @@ void
 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 @@ void
 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 ed97538e88767681a8bcb050ba511a06d455c69d..5d63029140bc35a2a02806bff7b79b636f9796c6 100644 (file)
@@ -62,7 +62,6 @@ void
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a;
 
index 1527e00ea5ac1fd432641a0ea9952605c3d11d56..46e3bf5a0f40d1789136c90ba854de828523ebed 100644 (file)
@@ -30,8 +30,6 @@ struct A { };
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> a;
   std::unique_ptr<A> u;
   a = u; // { dg-error "" }
index 39aba41a6633bc5e63b45281c18ef8ec916ec32e..2eaef29d5278453b80eee47697bade38b73ee5c0 100644 (file)
@@ -36,8 +36,6 @@ struct B : A
 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 @@ test01()
 int
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> A_default;
 
   std::shared_ptr<A> A_from_A(new A);
index f60b7aeed1a1ee55628f80998872a40bcbaab4fb..6c55d74967cdb692dd7aaed675a40a94372dc8d4 100644 (file)
@@ -41,8 +41,6 @@ namespace std
 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 @@ test01()
 int
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::less<std::shared_ptr<A>> less;
 
   std::shared_ptr<A> empty;
@@ -81,8 +77,6 @@ test02()
 int
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   std::less<std::shared_ptr<A>> less;
 
   A a;
index a881035d67ad66e09a87d294da18dc9a5f2ba1a0..482a5bb262efc0e49baf6eefde493300b566549e 100644 (file)
@@ -44,7 +44,7 @@ void deletefunc(A* p) { delete p; }
 
 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 test01()
 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 @@ test02()
 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 51570f1fb99ee0e0546c6e3f83081e52c883b46f..7c480b69dc540a10e1ce31a900d4394aac97b7d0 100644 (file)
@@ -41,7 +41,6 @@ long D::delete_count = 0;
 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 @@ test01()
 int
 test02()
 {
-  bool test __attribute__((unused)) = true;
   tracker_allocator_counter::reset();
 
   std::shared_ptr<A> p1(new A, deletefunc, tracker_allocator<A>());
index 3eaf07698ff6833b7acba225e088064089ea2491..7a99490bcacc92729b2d6af7df21752313249c67 100644 (file)
@@ -31,8 +31,6 @@ struct A { };
 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 2be1ad5c232a53b3a6e9fc3ebd295d5621d16662..09d181103555a0b237d2fc35911407c01805aaf0 100644 (file)
@@ -61,7 +61,6 @@ struct reset_count_struct
 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 @@ int
 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 @@ int
 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 @@ int
 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 bb53e1c072ff7df0c3cbff45ab565d080ded0a5b..262674e6082e355fab7a2664b49539a9032ff140 100644 (file)
@@ -30,8 +30,6 @@ struct A { };
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> a;
   VERIFY( a.get() == 0 );
 
index 77295bc69e14ff31818ae6d7e1e013cb431019ae..26786d601700555685788d39354b29b1e76103da 100644 (file)
@@ -68,7 +68,6 @@ struct reset_count_struct
 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 @@ int
 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 @@ int
 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 @@ int
 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 @@ int
 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 5af8c388495784f93e14151e235cef0d64ac2a83..593fc48f6c83750fc3badb3978e65d8a913b6b1c 100644 (file)
@@ -39,8 +39,6 @@ struct deleter
 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 @@ test01()
 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 @@ test02()
 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 fa4bb369b877ce6bf84c8fc597f78138d9f6c3f9..c8d11bd422a7eca114b1493cb499842265cf8e88 100644 (file)
@@ -33,8 +33,6 @@ struct B : A { };
 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 @@ test01()
 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 @@ test02()
 int
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   B * const b = new B;
   std::shared_ptr<A> p(b);
   VERIFY( p.get() == b );
index 58335c3a2996ec420bd22bc1d1e336ce5e850c66..18e66162754d7f2a7ff5bcde274992e63d81ecbf 100644 (file)
@@ -30,8 +30,6 @@ struct A { };
 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 d01f38cfa5311dad0f7194e290a3126cc17ded47..72eed477c8fa17242892f14a2a1f4e82ca2bb131 100644 (file)
@@ -35,8 +35,6 @@ struct A : std::enable_shared_from_this<A>
 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 73f9c23716d33411ee7aba14966db76b1de6235d..d773d23f7af1d7aa522054cbae925790b8eef2fb 100644 (file)
@@ -37,8 +37,6 @@ int D::count = 0;
 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 @@ test01()
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   D::count = 0;
   std::unique_ptr<A, D> up;
   {
index 49629a2610a3ebe715f64aefdf616e4f7f084713..702daeb42958f6bea422f7c161b773b58c2158d5 100644 (file)
@@ -37,8 +37,6 @@ struct D {
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   D d = D();
   std::unique_ptr<A, D&> up(new A, d);
   {
index c15caf7b54349e66efe43190e5225c0f4473883e..f29a4b766a7981361634a2855972af2aeef3357f 100644 (file)
@@ -39,8 +39,6 @@ struct D {
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   D d;
   std::unique_ptr<A, D&> p1(new A, d);
 
index 2a0ac70f59ac52bbaed56812cecd752e73440dce..5a28de6d098fb6d77a01167a6bdc5e636c4c2591 100644 (file)
@@ -30,8 +30,6 @@ struct A { };
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A> a;
   std::shared_ptr<A> p(a); // { dg-error "" }
 
index a6717984b5f05dc9f112be3c722604d06242cce8..c0cc05f5f5802d835201ae287d95d3b321a36bdf 100644 (file)
@@ -30,8 +30,6 @@ struct A { };
 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 e0f761b2adb4ee01510bb78933b95f1a0582c5fd..d7d4763048ae9b0dfdbdba10a29f73e937799b33 100644 (file)
@@ -56,7 +56,6 @@ struct reset_count_struct
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   reset_count_struct __attribute__((unused)) reset;
 
   {
@@ -74,7 +73,6 @@ test01()
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
   reset_count_struct __attribute__((unused)) reset;
 
   std::shared_ptr<A> p1;
index 9f12affd5a4c13277dfbee95488012f03d2836b9..425bd2764961531835b1d47b07a427a5ff7b3c67 100644 (file)
 
 #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 @@ struct A
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> p = std::make_shared<A>();
 }
 
index 18593161f848d41ba6ad55c9dc01a4a7b4a919ee..75302ca5fb044c954583d330a79f15f74c7e230f 100644 (file)
@@ -42,8 +42,6 @@ create_auto_ptr()
 void 
 process(std::shared_ptr<A> a)
 {
-  bool test __attribute__((unused)) = true;
-
   VERIFY( a.get() != 0 );
   VERIFY( a.use_count() == 1 );
 }
index 3a0e00b70fada97a494acd665eafef2301dee20d..79259ce32305f679972ddb9a0508227abf7b44b6 100644 (file)
@@ -51,7 +51,6 @@ struct reset_count_struct
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   reset_count_struct __attribute__((unused)) reset;
 
   {
@@ -66,7 +65,6 @@ test01()
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
   reset_count_struct __attribute__((unused)) reset;
 
   std::shared_ptr<A> p1;
index bd682dcf7d032b5885a43b84012db45b38457085..9a2ef65b93b75f1aeba29e3c1e5a4548b71d9213 100644 (file)
@@ -69,7 +69,6 @@ int
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   {
     std::shared_ptr<A> a;
@@ -88,7 +87,6 @@ int
 test02()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::shared_ptr<A> a;
   {
@@ -108,7 +106,6 @@ int
 test03()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   {
     std::shared_ptr<A> a1(new B);
index 525bc1f0389d43a1c079d2ba2229d94f441cbe82..66b3d651fdc67e559343e76647b3ea6e5061c738 100644 (file)
@@ -24,8 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   struct T { };
 
   std::shared_ptr<T>                s0(new T);
index 90090f132a0af196d4581705a5b671518e7dce45..174014074d0ee4d8afbfd6839de86a215e11cc4f 100644 (file)
@@ -27,8 +27,6 @@ using std::get_deleter;
 // libstdc++/24595
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<int> sp;
   VERIFY( !get_deleter<void(*)(int*)>(sp) );
 }
index 242e2b79b398d5c66038fb98c6a8101d9244e0b6..e6633d1a2853d01471bd9f8c943389cd440ecbea 100644 (file)
@@ -34,8 +34,6 @@ struct B {
 
 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 test01()
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<B> spB = std::make_shared<B>(99);
 
   VERIFY( spB->i == 99 );
index d30b9010343965fe0e4d7e0eb620840146504561..7e2e4db13467cf64657c627b62983d8cbd9264e2 100644 (file)
@@ -31,8 +31,6 @@ struct A { };
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> p(new A);
   std::ostringstream buf;
   buf << p;
index 35fe12dac4560918e8b38cb42c0c4f84a5064672..de26276aea28f8e7456fe2a05ab1ca8f3cae040c 100644 (file)
@@ -30,8 +30,6 @@ struct A { };
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   A * const a1 = new A;
   A * const a2 = new A;
   std::shared_ptr<A> p1(a1);
index 550e28bd7cdd2f8c26f8fb96a406d7e742da03ee..d80314ec319ea541cc29f918196f475cda0186e1 100644 (file)
@@ -37,8 +37,6 @@ long D::delete_count = 0;
 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 @@ test01()
 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 @@ test02()
 int
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   {
     std::shared_ptr<A> p1;
     p1.reset(new B, D());
index 6e754c893cae1cd19b82ea843fb938675aa27fcc..46aefceffe6f82537b1139e5540befddcc410c19 100644 (file)
@@ -41,7 +41,6 @@ long D::delete_count = 0;
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
   tracker_allocator_counter::reset();
 
   {
index e28a966c8ea27bb904216b5e755a1ad9b959b41d..0b31282ef66fdfc48543d6ae8699257d9082b962 100644 (file)
@@ -30,8 +30,6 @@ struct A { };
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::shared_ptr<A> p1(new A);
   p1.reset();     // { dg-error "" }
 
index e47cc676305bfba4d287017ca6f557d92c87a064..f84a3da8cd640c2fc4e23f2bf0608ccb06e5dbe2 100644 (file)
@@ -30,8 +30,6 @@ struct A { };
 int
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   A * const a1 = new A;
   A * const a2 = new A;
   std::shared_ptr<A> p1(a1);
index c1b8cb26de448ecf40399018d8061372eee0dd9e..935582f6f19141958984202f4baaf87038adc711 100644 (file)
@@ -30,8 +30,6 @@ struct A { };
 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 4f4a1da4d7219b903e5503b4696d3add3c4c208c..d6e52b9964a7dd2099f05ce99b1e828d8c008698 100644 (file)
@@ -30,8 +30,6 @@ struct A { };
 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 @@ test01()
 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 @@ test02()
 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 266727a9c82f3a69468b874fca37c26a45efcf5a..966614e500e919d99221249db0b476aa10fe416a 100644 (file)
@@ -34,8 +34,6 @@ struct A
 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 @@ test01()
 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 @@ test02()
 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 @@ test03()
 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 0874a00f27a8116bcff74359b1a4b6ce10634335..eb88ae0e1bb0a0cf20b38be32415fac461c67bb0 100644 (file)
@@ -37,8 +37,6 @@ struct B : A
 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 @@ test01()
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> a0;
 
   std::shared_ptr<A> a1(new A);
@@ -77,8 +73,6 @@ test02()
 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 a57cc0851398f3e2b693cb940e4b0c2a97d6b60f..a12ee3caa41fa3d851f71480ab7a3221281627dd 100644 (file)
@@ -30,8 +30,6 @@ struct A { };
 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 @@ test01()
 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 @@ test02()
 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 10f5ab31fe96983a13dcf32a241cb2f874ad690e..c022a5a11bc7e760a69830c39c8b5449dd54e8ce 100644 (file)
@@ -31,8 +31,6 @@ struct B : A { };
 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 @@ test01()
 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 @@ test02()
 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 6708496032309b82084ee2ac258743d03a4ef9ca..5014898b2b9fc8598837ab3cceecfbb13ac37d78 100644 (file)
@@ -124,7 +124,6 @@ void thread_hammer(wp_vector_t& weak_pool)
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   sp_vector_t obj_pool(POOL_SIZE);
   
   for(auto& obj : obj_pool)
index 84dfcec253ba698ecad2c6db85455bca1052f48e..eaa72c42a73e26bbae2d5c13d75f88e91d4a98d7 100644 (file)
@@ -126,7 +126,6 @@ void thread_hammer(wp_vector_t& weak_pool)
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   sp_vector_t obj_pool(POOL_SIZE);
   
   for(auto& obj : obj_pool)
index efb311ddbec00dc5c94145add576291b0b961854..610f1fa785090bcb6ef140e7392eb7a9674372ff 100644 (file)
@@ -36,8 +36,6 @@ typedef test_container<rvalstruct, forward_iterator_wrapper> container_out;
 
 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 9420bdcaef8edfaae2b45945a2b6cd982345dc73..7d7a343669cc15470e19ef0575f3aa046d9d3b7c 100644 (file)
@@ -38,8 +38,6 @@ typedef test_container<rvalstruct, forward_iterator_wrapper> container_out;
 
 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 a7002c56321de089b02d1fe0e57e86f2d41dd3f0..a9e4a9d56d006ba16605807da8fb6ba567b2449a 100644 (file)
@@ -26,8 +26,6 @@ struct junk { char j[12]; };
 
 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 59d0f7f9d93afdc6b78aa790cec78fa770062943..b358818942c1bba31c5b1ff01f088a4c239d1cc3 100644 (file)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   time_point<system_clock> t1;
index c0b6f1b8a1a726ff0b17b958696c1a1fded77353..7704b9f71e7e832667c13f93e2e1d558e72eda55 100644 (file)
@@ -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 @@ test01()
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   time_point<system_clock> t1;
index 3150fdf09890e62687a67b120e05cbafd6b018f1..87270167be8ae7e6682badd079aacbe3bfe8cb8d 100644 (file)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   time_point<system_clock> t1(seconds(1));
index ce8b3a435b5b36e91fd19f1cdc78e42a40b1df2e..f4803ca4d68e61a0d76393b34fd46b2b6402f1f1 100644 (file)
@@ -22,7 +22,6 @@
 
 int main()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std::chrono;
   
   typedef time_point<system_clock> time_type;
index 3ea01f17c14293543e54970aa658c5d65ff9ccf7..394e2166e71a1556bdc966f62002095c1d695e14 100644 (file)
@@ -29,8 +29,6 @@ template<typename T>
 // 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 4c4f6f8e9b63bb478c595e34eca56ab52d5c3577..129e01a1f801291d6bfdd1a3a4cfaccb1f7a6cdf 100644 (file)
@@ -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 f1b033b8dc0e8a888f4495cd45d6b554079dd3b4..45e677261abe26b70d55777e0350d3a4f83aaea9 100644 (file)
@@ -102,7 +102,6 @@ struct UsesWithoutTag
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::allocator_arg;
   using std::tuple;
   using std::make_tuple;
@@ -164,7 +163,6 @@ void test01()
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   using std::allocator_arg;
   using std::tuple;
   using std::make_tuple;
index 6612c7f5081faa410d4e5f0e70253db0f4e96028..9a8eb61e25fd0abfde96e1bf9bd4ef75d7e2fb58 100644 (file)
@@ -27,8 +27,6 @@ using namespace std;
 int
 main()
 {
-  bool test __attribute__((unused)) = true;
-
   tuple<> ta;
   tuple<> tb;
   ta = tb;
index fbde7dff9f7be34d7081d3c61a22d04fbed15bca..13833e74aa12373ab6559710e4cd94fbdf47ec7e 100644 (file)
@@ -32,8 +32,6 @@ struct foo
 void
 test_constructors()
 {
-  bool test __attribute__((unused)) = true;
-
   int x1=0,x2=0;
   const int &z1=x1;
 
index edfa706f83c24b8987c319e3f913b4c4b6591dc8..dd64ef5f44fc95b0ce8a84a4c1c506ae18454060 100644 (file)
@@ -28,8 +28,6 @@ using namespace std;
 int
 main()
 {
-  bool test __attribute__((unused)) = true;
-
   int x1=0,x2=0;
   const int &z1=x1;
 
index 561aa8cbebaedfbd3b030ea276e5ccbe0bfe0951..98f2faebb4f35a9779d309185a7a5a565d848d95 100644 (file)
@@ -28,8 +28,6 @@ using namespace std;
 // libstdc++/23978
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   pair<int, int> p(1, 2);
   int x = 0;
   int y = 0;
index 9ac0fda91cdfbdc06766966ee9a80608468c0708..4238b4efef7482ac50012a32f35d19aaf2be4dd3 100644 (file)
@@ -29,8 +29,6 @@ template<typename... Args1, typename... Args2>
   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 58155433da163f36c9a04b9a18828f2fb50977c0..86b5abb7e9111eb719d301b7ddd24334b7dc6e6c 100644 (file)
@@ -24,9 +24,6 @@
 
 #include <tuple>
 
-bool test __attribute__((unused)) = true;
-
-
 // make_tuple
 void
 test_make_tuple()
index 747b8d3651ae4f67aea61f1449f2023197c03788..b106741efc0ee5ed1f23a627da3b97de99ab7596 100644 (file)
@@ -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 ab855caca4cba631182dbe23a88828902c8ed496..ad7f6eff3abd5745877dad2ea752c0cacb715f41 100644 (file)
@@ -28,8 +28,6 @@ using namespace std;
 int
 main()
 {
-  bool test __attribute__((unused)) = true;
-
   int i=0;
   make_tuple(1,2,4.0);
   make_tuple(ref(i)) = tuple<int>(1);
index d1cfc62232e55f873caab2fcd945969663c0cd04..3a60f2cf8297d30a9017f06e7854e3658ebdd9ce 100644 (file)
@@ -27,8 +27,6 @@ using namespace std;
 int
 main()
 {
-  bool test __attribute__((unused)) = true; 
-
   int x1 = 0;
   int x2 = 0;
   int y1 = 0;
index 39cebfe6e0e45eefb727ac4aad890265243a0151..97c58108ec9bc9a93a12e83b4bd0fb6cd7525abc 100644 (file)
@@ -26,7 +26,6 @@
 int
 main()
 {
-  bool test __attribute__((unused)) = true; 
   using namespace std;
 
   int i;
index ef45f0b2f4ed067c6fefeccc49b6a4f734f34af2..df5e0e993d361aa0e7e233b62dfd632e9ab30611 100644 (file)
@@ -25,7 +25,6 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   VERIFY( tuple_size<const tuple<> >::value == 0 );
index f0bcf22e9bf8b72c7cee988108c294511cbce2d0..0b2b3d6e22f5a3442d51a5ef442e624820c2d39c 100644 (file)
@@ -27,8 +27,6 @@ using namespace std;
 int
 main()
 {
-  bool test __attribute__((unused)) = true;
-
   int j=1;
   const int k=2;
   tuple<int,int &,const int&> a(0,j,k);
index b1f7a048b997a5d5c9c0e9ae7d26af47393e1382..e02e9f56329b16ee211900836c5a43ee7362138f 100644 (file)
@@ -27,8 +27,6 @@ using namespace std;
 int
 main()
 {
-  bool test __attribute__((unused)) = true;
-
   int j=1;
   const int k=2;
   tuple<int,int &,const int&> a(0,j,k);
index d4b93c5439d3112afd947ebb43446b664dcf8bac..ed88361d6d0908e1795be338b2fbc05bca87784e 100644 (file)
@@ -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 a95eaf9babc7c68f02b87883904eabd6b72d54f4..6e260c412ba78a92f30b8ce59c90b392674c0050 100644 (file)
@@ -56,8 +56,6 @@ make_move_only (int i)
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::tuple<> t1, t2;
   std::swap(t1, t2);
 
@@ -66,8 +64,6 @@ void test01()
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::tuple<int> t1(1), t2(2);
   std::swap(t1, t2);
   
@@ -76,8 +72,6 @@ void test02()
 
 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 test03()
 
 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 e1106ce8dc8d74e67d7a1d1418efc90ad41c811c..14b623d2be42de6b5bdc45313d35ed2723d3cf91 100644 (file)
@@ -27,8 +27,6 @@ using namespace std;
 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 02aba25b9468c0dd1f1c8999e7b64662e43baf2f..bef65ff8e0053cb04e854ae5e64cedead94ceea0 100644 (file)
@@ -50,7 +50,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   class Abraca { };
index f2440af0eb3eb1890db281e303d54c1109a5e446..56a38a1da49f25025035fb5732dcd4bd6f96cbac 100644 (file)
@@ -24,7 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   class Abraca { };
index 4bb96626e68e6fb719a09f46bc0d636fcdf117f7..1f9f9e559379d5ad85ca903cbd9d94d90f8305cb 100644 (file)
@@ -24,7 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   class Abraca { };
index b43d71214d0b637aa18ed7cd70faca796fc49cea..db80b3d7287e17a626906cf39f82570079982ed9 100644 (file)
@@ -24,7 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   class Abraca { };
index 9c1e535314b51728c51f7a0f0eb7b369668cf3aa..935848ccbbf353cf5365670cb41d1676fee0a462 100644 (file)
@@ -29,7 +29,6 @@ struct Deleter
   Deleter&
   operator=(const Deleter&)
   {
-    bool test __attribute__((unused)) = true;
     VERIFY( true );
     return *this;
   }
@@ -37,7 +36,6 @@ struct Deleter
   Deleter&
   operator=(Deleter&&)
   {
-    bool test __attribute__((unused)) = true;
     VERIFY( false );
     return *this;
   }
index d329fa9861da27c5b949393e10882fd336bb276a..0edd5f3286ae3e44b3ee19710c9db93819da9a53 100644 (file)
@@ -28,8 +28,6 @@ struct D : public B {};
 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 c11d75708dd56a09bc857b48d6b13ad2b5512cab..5c06bc08827d14a8fed116642df77b13d6e3e6f8 100644 (file)
@@ -28,8 +28,6 @@ struct D : public B {};
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   D *d = new D[3];
   std::unique_ptr<D[]> p1(d);
   std::unique_ptr<D[]> p2;
index 35853dc50264cc6d09e1952c3c3793f87eadba23..5825f96b4449ce6c1a369fc3dcb76a337cb341e5 100644 (file)
@@ -27,8 +27,6 @@ struct A { };
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A> p(new A);
   p = nullptr;
 
@@ -38,8 +36,6 @@ test01()
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A[]> p(new A[2]);
   p = nullptr;
 
index 158893f090c848d890ab765582240b6db168d474..605f8ba28e1557664a86d7ba1061cf5f1180502a 100644 (file)
@@ -31,8 +31,6 @@ struct A { };
 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 f46ac338706e4e4b86d43ecdc357c8d47bac4c6f..4b80746d4338a42f08d0827ed94bc4e1aca75f77 100644 (file)
@@ -27,8 +27,6 @@ struct A { };
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A> p = nullptr;
 
   VERIFY( p.get() == nullptr );
@@ -37,8 +35,6 @@ test01()
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A[]> p = nullptr;
 
   VERIFY( p.get() == nullptr );
index 94859307500fc916b6607e305e4fdb17591ceb95..91135ae52603c2de4465882baecfe1417ff560cf 100644 (file)
@@ -61,7 +61,6 @@ void
 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 @@ void
 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 911ca54199c7c7cc103d4d3ae8ee13fc7080810b..5305e7723579d467d65e4c7be84491c6dea6ba39 100644 (file)
@@ -60,7 +60,6 @@ void
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::unique_ptr<A[]> A_default;
   VERIFY( A_default.get() == 0 );
index 31a1d928bcb58de10283ed521f4e1d0c13637435..2b3373edb081d3c6b25676ae06ca2f4b5d883d63 100644 (file)
@@ -30,7 +30,6 @@ void vdel(int* p) { ++count; delete[] p; }
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
   count = 0;
   {
     std::unique_ptr<int, void(*)(int*)> p(nullptr, del);
@@ -45,7 +44,6 @@ test01()
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
   count = 0;
   {
     std::unique_ptr<int[], void(*)(int*)> p(nullptr, vdel);
index cbfa289762178658da6572effe33121c3c7df908..b47261ede9e712d673c72c8ee5cb5986e190a2a2 100644 (file)
@@ -32,8 +32,6 @@ struct A
 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 45c6ab2a6c92658a064da1213c8eb7a0a0d3d613..dc7d66707117804411be9ef489faf6e2b42e0dab 100644 (file)
@@ -32,8 +32,6 @@ struct A
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   int i = 0;
   double d = 0;
   char c = 0;
index dd5570ec6c0bfde7bd2b44af6904dbeb8cfc52e0..6fc4fdc809d3275f3abd1ad4b0c25db173bd3da7 100644 (file)
@@ -24,8 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   struct T { };
 
   std::unique_ptr<T>                                 u0(new T);
index 9747a10a8a32db5f918f04ee579e2fe02614a299..1461efab523ee61a0fe7b4e7c22f575f794a1eaf 100644 (file)
@@ -36,8 +36,6 @@ int D::count = 0;
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<int, D> up;
   up.reset();
   VERIFY( D::count == 0 );
index b3a580593e3896fb2cbc82d2e68603381efa08e3..74cbc8735b7ac114756c72f76d2d420552da345b 100644 (file)
@@ -36,8 +36,6 @@ struct B : A
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A> p1;
   std::unique_ptr<A> p2;
 
@@ -49,8 +47,6 @@ test01()
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-  
   std::unique_ptr<A> p1;
   std::unique_ptr<A> p2(new A);
 
index f434b1f7b7bd7f5ba6546090e0ecf96b352c00e7..c5c4400c9df814f0337737638cc89ee6463392a8 100644 (file)
@@ -36,8 +36,6 @@ struct B : A
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::unique_ptr<A[]> p1;
   std::unique_ptr<A[]> p2;
 
@@ -49,8 +47,6 @@ test01()
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-  
   std::unique_ptr<A[]> p1;
   std::unique_ptr<A[]> p2(new A[3]);
 
index 67040d472ec8cc3eb95725c07e80f53aba29a6f6..521b34c59224256e213cec8c02e547110df31575 100644 (file)
@@ -27,8 +27,6 @@ struct A {};
 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 d5b54741b53daa4556552a0dc82afedcae57e601..9ac4589765e9428eb959753809bc3219094a25f7 100644 (file)
@@ -91,8 +91,6 @@ template<typename TestType, typename... T>
 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 8202b51bc8bbb51da9d873c6760856fe0b9d018b..46fc72f904c98a186420d72f3905e8e0f6397503 100644 (file)
@@ -38,7 +38,6 @@ struct UD { typedef MyDerivedAlloc  allocator_type; };
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::uses_allocator;
   using namespace __gnu_test;
 
index cbe3b17fd7a342b328f577418899d61519904d49..3a952221d4e5bc5f2be2fb391bf8664ba9e0e295 100644 (file)
@@ -51,16 +51,12 @@ struct AlwaysThrow
 
 void default_ctor()
 {
-  bool test [[gnu::unused]] = true;
-
   variant<monostate, string> v;
   VERIFY(holds_alternative<monostate>(v));
 }
 
 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 copy_ctor()
 
 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 move_ctor()
 
 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 arbitrary_ctor()
 
 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 copy_assign()
 
 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 move_assign()
 
 void arbitrary_assign()
 {
-  bool test [[gnu::unused]] = true;
-
   variant<int, string> v;
   v = "a";
 
@@ -127,8 +113,6 @@ void arbitrary_assign()
 
 void dtor()
 {
-  bool test [[gnu::unused]] = true;
-
   struct A {
       A(int& called) : called(called) {}
       ~A() {
@@ -150,8 +134,6 @@ void dtor()
 
 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_index_ctor()
 
 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 @@ namespace std
 
 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 uses_allocator_ctor()
 
 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 emplace()
 
 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_get()
 
 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_relational()
 
 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_swap()
 
 void test_visit()
 {
-  bool test [[gnu::unused]] = true;
-
   {
     struct Visitor
     {
@@ -383,8 +351,6 @@ void test_visit()
 
 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_hash()
 
 void test_valueless_by_exception()
 {
-  bool test [[gnu::unused]] = true;
-
   {
     AlwaysThrow a;
     bool caught = false;
index 3974ba8967a08288ea2e59bfc756d38ccb9b4d05..fd1f1625357a1499df6e3a6d1532983be5828b98 100644 (file)
@@ -30,8 +30,6 @@ struct B { };
 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 @@ test01()
 int
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::shared_ptr<A> a0;
   std::weak_ptr<A> w0(a0);
 
index 67a1727bb583cd81be97e72611bcc1c94bb141d3..6871acdda9d9f631fcb9e486ccf85feedaf21da2 100644 (file)
@@ -30,7 +30,6 @@ using __gnu_test::propagating_allocator;
 
 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 test01()
 
 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 test02()
 
 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 c70cee30dae23fb08cb917c7b11d936e0820cf20..5ab737aa90f6eab041c16787c8ed419da81dd691 100644 (file)
@@ -30,7 +30,6 @@ using __gnu_test::propagating_allocator;
 
 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 test01()
 
 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 7028678fe14d594cf3948e298f4b72300e6f20a5..a4291f9dbb91e5b9a3be7dfa601fdf039c6f916e 100644 (file)
@@ -30,7 +30,6 @@ using __gnu_test::uneq_allocator;
 
 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 test01()
 
 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 ff4b1474d8d272ebf0982b660cc7353f949ef895..9d08f9d90fa58febf67ef129920986ac8d79ec0b 100644 (file)
@@ -30,7 +30,6 @@ using __gnu_test::propagating_allocator;
 
 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 test01()
 
 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 test02()
 
 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 7d5d8b9f0e510e9384becbe16d66b332065bfa8d..fcee8ec60508f6ffbdbe1d4fc47d4ae13a722804 100644 (file)
@@ -47,7 +47,6 @@ operator!=(const propagating_allocator<C, false>&,
 
 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 test01()
 
 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 57baf3b539b56b4c3d0d4264208d9eb8fbfcef89..6bb3086bb7a43898a908405f400a6ded30ed7d48 100644 (file)
@@ -30,7 +30,6 @@ using __gnu_test::propagating_allocator;
 
 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 test01()
 
 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 test02()
 
 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 4cfb543b5667fdb9439720c7d60fb0e37795dace..7b7372a25eeda66095e421ace7214d01ac113ac2 100644 (file)
@@ -30,7 +30,6 @@ using __gnu_test::propagating_allocator;
 
 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 test01()
 
 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 4124f44d7fbc7ff2d7a55a20026e2f6735580b07..376a64abd6d8503e57fd4a231c9ca06a16a2309c 100644 (file)
@@ -30,7 +30,6 @@ using __gnu_test::uneq_allocator;
 
 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 test01()
 
 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 bb93b155cfc713b73db0216e753cae83a79fb650..a8be7777a877deff31d665b0456f85ee55e07cce 100644 (file)
@@ -30,7 +30,6 @@ using __gnu_test::propagating_allocator;
 
 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 test01()
 
 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 test02()
 
 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 d56517e7ff72e546e3de9c6b2b221ded3ce0b3e2..24c1669b528060c64628979c4214400459dd2b1f 100644 (file)
@@ -47,7 +47,6 @@ operator!=(const propagating_allocator<C, false>&,
 
 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 test01()
 
 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 d7e5eaec69c6ce329ad01ae906172a23b8369e7e..2aad99caf4c3fbf658891fca64824a8013de5f6f 100644 (file)
@@ -125,8 +125,6 @@ namespace std
 
 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 111585faf9915593b7d02f022061292e95748c3e..a22d4a3427f4ddd905341e922d4341ee18ef5f33 100644 (file)
@@ -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 78ae9e8b1a87e3bf43fd0d00fa213e6850e3ea38..7558534076839322a6903519f5b3a2ea93ec88d0 100644 (file)
@@ -32,7 +32,6 @@
 void test01()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   typedef string::size_type size_type;
 
index bc5b96cfaa3033ea17d9cdd3399b5856ec6a1a04..95d9a6744464a68ff985e9eaca0fa511c5c1d3ab 100644 (file)
@@ -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 d648d9db5df7ec15b04f663dfac473e014f4fd8f..609ea4c2ec522db9ab5024d50571c78e6bd77a0f 100644 (file)
@@ -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 e41d998c8b72f7014889c817ef7368ca862ce8b6..7542855f5f88e56c0a43d92634e8b0d963c2c04f 100644 (file)
@@ -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 c6651534ec39f93da2d7108a861c79ccc6297a9c..d249f22b7549aeef8d9ec82fded964914817235c 100644 (file)
@@ -32,7 +32,6 @@
 void test01()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   typedef wstring::size_type size_type;
 
index 7dac3d5dea544ef51af3ac219b9037b3e8765a0d..9207e5b17a6e6dfaf4cf4198d65b1e6a33719477 100644 (file)
@@ -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 1c6a880b573dfda848d6ae813e15d1afad9abdc4..fa2840010513664ab0819eb128592efdbeca68a9 100644 (file)
@@ -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 48d74b6e1e691f299786524cb920f9002ec6e25d..9d04df61c495558a42f12fb5dc8feeb8481664a2 100644 (file)
@@ -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 c836c3354b2705e62cc088ce12e42679ed83de0f..b2ae7a071a873341713df8dbc3e0bc357617d85a 100644 (file)
@@ -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 8bd7f602bfbf746c720a3bceec94d7652a4dbcaf..dfb9f21ab496299efa644ced20e5442dd4f3e3a0 100644 (file)
@@ -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 18930d964742e44f96a28568fddc6666352e4bc4..b25ebeab3812d42f123ac0c4638c40f8862d156b 100644 (file)
@@ -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 354821441193b19ef5ed4fc03c0e51753d420986..6edcd8a7deb74d451bee3b56ca3413cf2d28ecae 100644 (file)
@@ -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 8f3992c4376dfc654a8512179a6fb0cda8fb8b44..2262d219333765a5f04217bae04ae4c11f1717f7 100644 (file)
@@ -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 88e94b5f01439ceef5d5473b332e1110c8704f57..9c0932c317e4332a39cb7f274d142436b0ba4b5e 100644 (file)
@@ -36,8 +36,6 @@ string data(long len)
 
 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 181ef7e2446eebc676f70e19d9f5021b88b684ae..a7f575f217ebbef277d0d57444d6cf7124c3c4c5 100644 (file)
@@ -24,8 +24,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string_view s("foo");
   std::string s2(s);
   
index 6534f762a00fe8538c3425eed5621242bcc52e74..64475d087798e925ffe16caf372885165e326ef3 100644 (file)
@@ -30,8 +30,6 @@ construct(Args&&... args)
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   using string = std::string;
   using list = std::initializer_list<string::value_type>;
 
index 86f8f25ac3a41c1e65735c48f6264423cb2ec1f9..e3ed5e840e8236f8f81fdcaf8e1e28ac16b3ba01 100644 (file)
@@ -28,8 +28,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string a, b;
   a.push_back('1');
   b = std::move(a);
index 98d56b071c4b71eab80a1916b37de4f8662f4cce..84442ebe7a4b27828657d09047e7f4bb76532144 100644 (file)
@@ -37,8 +37,6 @@ public:
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   tstring a, b;
   a.push_back('1');
   b = std::move(a);
index 1deeb8cd2c51fe18604c4c0c1c6f17c814eca7fe..8b10a0ebae212c89e955d440b0972d92f54c8be8 100644 (file)
@@ -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 89808633c3d1daebdff46edb5d9e861fd9a4a864..1772022b22c8fb81d93eefd05d420d8243f70276 100644 (file)
@@ -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 b83896842b2d8662ef247dc467f989d97f2978d8..6d2c2edfb5be98d6fa7b7af6d02c3e57e230edeb 100644 (file)
@@ -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 9bad10d8ff63cbea9290f4b936f00e862ee8ec1b..40a481d93743008dba46aacc468b68649f021691 100644 (file)
@@ -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 6d5764774aca1ff1417311dcbb8f8ca686edfa2f..ca214739b6fb017ddc0271e51a6671d9c8ae5eab 100644 (file)
@@ -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 5c4e5b452d7bde620c4e29dc105b69fbdd7d2209..7dfd76e80575b3a66b3a00597c1716c35cfb0225 100644 (file)
@@ -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 3f677a0c1ef3daf3bcb0ad059713e070ab314741..4c37360d299b0f6bb91aa16414cd885f18066d9b 100644 (file)
@@ -42,8 +42,6 @@ wstring data(long len)
 
 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 f037e538221682cc6d426efdbaa7eae7724f5eae..33ce39ecaa465b6b018394b9729e53abae9a77bd 100644 (file)
@@ -24,8 +24,6 @@
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring_view s(L"foo");
   std::wstring s2(s);
   
index 9152ad9a8d4e6ee09f571e0ad5ea754473d4771d..146ba2d31b08165781ce659a08ff3f06d0055edd 100644 (file)
@@ -30,8 +30,6 @@ construct(Args&&... args)
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
-
   using string = std::wstring;
   using list = std::initializer_list<string::value_type>;
 
index 38e93f52099ef9b5e78cfe88619d9ba6fac820c1..2f2ca4c8f878892e1d9c97093e6d1e1e6e21e973 100644 (file)
@@ -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 3bfed12c686bfe8ff38dc87574634f8a2c2b4499..cfd39305621b410fa60321bade7768ab5f2fa4b1 100644 (file)
@@ -37,8 +37,6 @@ public:
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   twstring a, b;
   a.push_back(L'1');
   b = std::move(a);
index 515e1129bd17375078d6d563a8f3350206776ce4..0d4149487d4519c98248531035a8504120d12029 100644 (file)
@@ -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 @@ bool test01(void)
   catch(...) {
     VERIFY( false );
   }
-  return test;
 }
 
 int main()
index 9222c256683114a8c34a2d8819728787f63e7f8c..c6436161397aa6f69ba73d46d1352822c2f7be55 100644 (file)
@@ -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 @@ bool test01(void)
   VERIFY( str03[0] == 'x' );
 
   // need to also test for const begin/const end
-  return test;
 }
 
 int main()
index dbdd6da1319e3ce5945acbc738d4812638223cc9..1347607a5dcb0fd2b7b1fac03f9c74f586100c94 100644 (file)
@@ -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 @@ bool test02(void)
   std::string str13 = str12;
   *p2 = 'e';
   VERIFY( str12 != str13 );
-  return test;
 }
 
 int main()
index 8c830123296238484f129e4028103d0e3b955862..dc8f50fe5202e4c240066027a24aa3ba036b61ac 100644 (file)
@@ -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 d5a4c010dfbf5d099b583409878fa61c33d566fa..c2ea0fa77443971a22c4d0baa38c47e45e85d47d 100644 (file)
@@ -24,8 +24,6 @@
 // PR c++/58163
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::string cs;
         std::string  s;
 
index dfe7ce072996c6745d90630c5b924baed8119b0f..bedc4d366b8649b389c3c12a5c53fdf8cc43c9dd 100644 (file)
@@ -22,8 +22,6 @@
 // as per 21.3.4
 int main()
 {
-  bool test __attribute__((unused)) = true;
-  
   {
     std::string empty;
     char c = empty[0];
index 1ecd3e95917c742d48a3e804542b09378bd40ed3..8761cb22b66d54cf6e17da5a4f5dbf3e598bb9b1 100644 (file)
@@ -25,8 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str("ramifications");
   const std::string cstr("melodien");
 
index a243cf803bbd858cc239019ee7f44fd2d8e40b72..bdaef8547e0bc7b121d0ab04b0fb6078d5f16f6f 100644 (file)
@@ -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 @@ bool test01(void)
   catch(...) {
     VERIFY( false );
   }
-  return test;
 }
 
 int main()
index 8f843de45de6f56deb68a357ff3fbb48106093a8..2f93dbf641910933cc8cf33f564b2d9934d1daf5 100644 (file)
@@ -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 @@ bool test01(void)
   VERIFY( str03[0] == L'x' );
 
   // need to also test for const begin/const end
-  VERIFY(test);
-  return test;
 }
 
 int main()
index c78eed54acc6cac0c130a1f1cc879b53281b7fe2..5a1e4fdffa117dfe74a7164c5a70e8ff63cae427 100644 (file)
@@ -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 @@ bool test02(void)
   std::wstring str13 = str12;
   *p2 = L'e';
   VERIFY( str12 != str13 );
-  return test;
 }
 
 int main()
index 28b115985fc1472ac862b05dae74979c1953292f..f4a9b92eb1fecb3d770a6d9899203df2684bfffb 100644 (file)
@@ -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 cbf588a15949d65158a1522dfefc13bd19357f7c..749fd49771db6844695f28f156f8dc19dffdffd2 100644 (file)
@@ -24,8 +24,6 @@
 // PR c++/58163
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::wstring cs;
         std::wstring  s;
 
index cf3d9c3326dd21d25201f25320514361601d6e21..11b8d32c5191d64e7c2ab95a3b606d29eb2c7f88 100644 (file)
@@ -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 ba4aa09ec5d596dc407ad34568c9eb038e15bcde..d73dc952a09e22072852723fa429ba6aedc32769 100644 (file)
@@ -25,8 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str(L"ramifications");
   const std::wstring cstr(L"melodien");
 
index a36ccf410523723d334c5a84a26b4f5aa4f1f467..1295d3cf37f49b64cd9b3558b2d86cf04b551af3 100644 (file)
 
 using namespace std;
 
-int test01(void)
+void test01(void)
 {
-  bool test = true;
-
   string s1 = { 'a', 'b', 'c' };
   VERIFY(s1 == "abc");
 
@@ -60,8 +58,6 @@ int test01(void)
   i2 = i1+6;
   s1.replace(i1, i2, { 'y', 'z' });
   VERIFY(s1 == "mnyzo");
-
-  return test;
 }
 
 int main()
index 21a67facf0afa4affaa4d7b2ad8cc854a27964b1..9d49db9c507d1de84ddb0aecfad484884e3c40e2 100644 (file)
@@ -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 @@ bool test01(void)
   
   std::string hello_world;
   std::cout << hello_world;
-  return test;
 }
 
 int main()
index 1f11433e0fcad0378e8238bb3f070a07add3d149..ed2a34ea428f5703224ad5727ca6180ea5b3fb2b 100644 (file)
@@ -42,8 +42,6 @@ string prepare(string::size_type len, unsigned nchunks, char delim)
 
 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 3e2ac0a85c20fb8d82d538744c95e39decd06650..484194c2997a751abab4249f6e7c53f9305f9291 100644 (file)
@@ -42,8 +42,6 @@ string prepare(string::size_type len, unsigned nchunks)
 
 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 e5f8794ac7fe55652af7526a1b020250e04763e8..33cb0bffd5aa543d4f5960cb62fb5d152a95108d 100644 (file)
@@ -33,7 +33,6 @@
 void test01()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   ostringstream oss_01;
   const string str_01(50, 'a');
index 0a7808a5aff9e40fe72387420b10d6a77c2f2668..394d0e1a4fdd764e916525da9dcab254e5584d3a 100644 (file)
@@ -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 @@ void test04(std::size_t size)
   // 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 fad1c57f3e3d2ddf72a488d1b697032bc31d317f..3ddae09123f65ad3b418481f48c3b69222f197e8 100644 (file)
@@ -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 879f333402bc047932dc4ba0c953c24f52c81373..5121bb581643c1394f37d1b388b40cec9e93fa64 100644 (file)
@@ -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 b5eb8ea47e7e5a496d072fdfa6ee13f550faa207..6d49976dc082a5688e0701eff5cc926ea82d7a8f 100644 (file)
@@ -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 8810dbbed064eaea762fe4057d446bd97fc39eb6..eed028406cfefa4c117c515a47f0ec0cace59dc0 100644 (file)
@@ -33,7 +33,6 @@ void test08()
 {
   using namespace std;
 
-  bool test __attribute__((unused)) = true;
   istringstream istrm("enero:2001");
   int          year;
   char                 sep;
index 88ba5d4b00e66b7d5cb7737ae4313b6be5c3d348..31965716ddc5780180e424e9944c33e0040a9ae8 100644 (file)
@@ -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 ea885451e0c99dbd7e2bd8d580ed40411f4b2619..e7e2165a1bda889f5b3f386afc4d4f3c6bf413e4 100644 (file)
@@ -34,8 +34,6 @@ void test01()
   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 eff9a29bd449317154f9dc72d700b5acde36697c..cffd3976ed0c9fc81ffbaacc99915c7f7f5e215b 100644 (file)
@@ -34,8 +34,6 @@ void test01()
   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 7100818f45a3ba8a3cfd26aa926384f9f06bb28f..3529f190a5dd5a537a9b1139c78136860d65bc78 100644 (file)
@@ -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 @@ bool test01(void)
   
   std::wstring hello_world;
   std::wcout << hello_world;
-  return test;
 }
 
 int main()
index 17525d30c1f7497f9dff1cbabd7e2b3fe317bc13..6a433141ef9ab0ddc3bdc1105f21d3b06930d6ab 100644 (file)
@@ -46,8 +46,6 @@ wstring prepare(wstring::size_type len, unsigned nchunks, wchar_t delim)
 
 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 e0bcd8abb9895edd69e110ef2bad5bd8736643c4..ae1c11c27c9d70b39f2e3fa541998ab3c79a8274 100644 (file)
@@ -46,8 +46,6 @@ wstring prepare(wstring::size_type len, unsigned nchunks)
 
 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 60db7ad3500cbb693303d6739f0ceefd2e25b2f1..a6e43517accbf083e64b9d1b28828d245a9f2633 100644 (file)
@@ -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 51486b0caf06b18d3801efe8a026093e7d94d398..cbe3debdec9273fdac4935ab7992b590950da4cb 100644 (file)
@@ -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 @@ void test04(std::size_t size)
   // 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 ea0a84aeea2863a980362d81a0c77fdd061ed806..a812bb7e439265b45ed15c7c4267a6d4d811855f 100644 (file)
@@ -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 9e184f07332a9d04dd488a5bcc2b15fb0814672f..1f6dfae0b9a6b04782ca89fae2ef75b9e027aa1d 100644 (file)
@@ -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 52087b24419879b673064514a38c1212f2f0f797..12f443f72efa3130600fc36bc9b994c4d4c6160a 100644 (file)
@@ -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 f853b2fbdfd850d492ce91e500b0d397ea6dcfc2..c205c50829185dab4a09072c458995f5dd4d941f 100644 (file)
@@ -33,7 +33,6 @@ void test08()
 {
   using namespace std;
 
-  bool test __attribute__((unused)) = true;
   wistringstream istrm(L"enero:2001");
   int           year;
   wchar_t       sep;
index d08795844d2b131ad031fa892210daf3cb76a550..51e9efd2633e42ef3b23e80c4bc8c5036db032f0 100644 (file)
@@ -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 1ccb9da5fd6775f7f1573bf90466c55fc216b36e..1647dfc2ec6f6e453242bbbe78073919b81a32a8 100644 (file)
@@ -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 @@ bool test01(void)
   str05.append(str05.begin(), str05.begin() + str05.find('r')); 
   VERIFY( str05 ==  "point bolivar, texaspoint boliva" );
   VERIFY( str05 != str01 );
-  return test;
 }
 
 int main()
index b393f1e11adf339d156ce64e9c8f31331335daba..a893c9300eaf322c54cdf5082107d6d54cbaf69b 100644 (file)
@@ -27,8 +27,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
  
   string one; 
index 178670d3bcae5b52bbb7e91f3d16f04174f90693..096f3fc85eb0c627659b2ce9a22f2307db5fd982 100644 (file)
@@ -27,8 +27,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
  
   const char * source = "Kesto";
index 0df4a6d0fd5ead418830ffcec16ef8750f8a5e22..f768fde778f8b43627d7bcd15570941bcb015cf5 100644 (file)
@@ -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 @@ test03()
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str("a");
   char c = 'b';
   str.append(&c, 1);
index 0700d70f60ab819984181811d6c4acb08b23eb6c..e0d4c65321329d97f14468792ee0586b794fa2cf 100644 (file)
@@ -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 @@ bool test01(void)
   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 084d1fd694f40e0a90672bb18538f480932526b9..c2984965e044bbdb0fa2729f0db73b20eea8825f 100644 (file)
@@ -27,8 +27,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
  
   wstring one; 
index 4ecea7635a58f3a06197071566f9fbadc89b1a6e..91d2de2d8572155f07be22e9248709dad3233e54 100644 (file)
@@ -33,8 +33,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
  
   const wchar_t * source = L"Kesto";
index dc1bd648d34201ad22ade5ff17ff72814a4db6da..69f7556c7d05bad6bb3cefa9bffa05b7d9de8cc5 100644 (file)
@@ -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 @@ test03()
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str(L"a");
 
   wchar_t c = L'b';
index c2dd067ac6256f669b786bb310e1132cb6d88899..4250e59a16aa83126d39f49ab452b68f8dc8c604 100644 (file)
@@ -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 ff85419523acd31874c661e53f2e4529fdc57c2a..9cbcd132624b9c37791d96403ff715d84c6213c2 100644 (file)
@@ -27,8 +27,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
   
   string one = "Selling England by the pound";
index 33644d0dbff5bdf3e5d4b3f5d8171c965eb182e7..90ba1a45df3b1dede1235c01d2b51d5e80664880 100644 (file)
@@ -27,8 +27,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
  
   string one; 
index 201dee04eb64f0bb6716d57abd6cea2295c90077..cfa87b2834f0a30298466c9afc19cf74ab720909 100644 (file)
@@ -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 @@ test03()
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str("a");
   char c = 'b';
   str.assign(&c, 1);
index 3f942bd254400662629884013926d1f30e96a7b1..b8ebfecdcd9ed9879014b671301a81681ab9f0dd 100644 (file)
@@ -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 f5a16b492ffbf059bf0ee120b65ef26874fa1944..0fd8c070f00205fd8188a64001d2cc9e36409060 100644 (file)
@@ -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 ea852ecb882c46f72baec8c426111c5ded245ec5..e672f3c41734b4be5b0666884811a42a3826266a 100644 (file)
@@ -27,8 +27,6 @@
 void
 test02()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
   
   wstring one = L"Selling England by the pound";
index 0b1e2d71b27cc884be703f4c3b7da9ec3569df98..3f63faac409d2be5371664821a5e1713de754cfb 100644 (file)
@@ -27,8 +27,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
-
   using namespace std;
  
   wstring one; 
index 5fb7a64eef6632c306c33e148e3c43916c6e6a4d..04e8f1b5b24334d7788abd39f8479786fa539ad1 100644 (file)
@@ -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 @@ test03()
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str(L"a");
 
   wchar_t c = L'b';
index 2eb5e3da7c805a9676e98fab835a1dfac7e2bb15..322ffbbdb82904f0ca74e3af112ff42558c4822e 100644 (file)
@@ -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 43dccf3f11f32a5743057e6861b19cc0c5391e84..e63d76ef10a1ea0399061a71b23d3a627c3f0f4d 100644 (file)
@@ -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 @@ int test01(void)
   csz01 = str03.size();
   str03.insert(str03.end(), str01.begin(), str01.end()); 
   VERIFY( str03 == "baker beach, san franciscorodeo beach, marin" );
-  return test;
 }
 
 int main()
index fe829964723c91a41a8380199ac6b1496f9c6e78..86451d9ba58ca73400eff097a560101180d0daf2 100644 (file)
 //   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 @@ int test02(void)
   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 7ebbb33fced67863050724220d913016bef0b6b0..c33a9e3587af63d37306bb93d0a6b50a5ad86c27 100644 (file)
@@ -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 @@ test03()
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str("a");
   char c = 'b';
   str.insert(0, &c, 1);
index 30c0770acc9736c4284dad1fbe98325ec463bed6..982d3c31eef89378273e4eea9850f5436a0f2846 100644 (file)
@@ -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 @@ int test01(void)
   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 fc9ee9193a7de71d98c04066662da5983cf49aaf..bbb7de2b10ef5a59f68dab737e019f23453bcde7 100644 (file)
 //   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 @@ int test02(void)
   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 5d2587c8d002e3899eb1d8c5f156c1f8fa862256..1b5569869dd7676d80a30ef4a5ddfd34abd716dc 100644 (file)
@@ -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 @@ test03()
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str(L"a");
 
   wchar_t c = L'b';
index d5cd2a1c30ef6994930f6d3dc9b755bb662961f9..8930d450730aceb56b4299168d018e38327cf846 100644 (file)
@@ -23,8 +23,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::string cstr("Badger");
   std::string str = cstr;
   str.pop_back();
index 22a46c3d023977cb1aad25d4a328fc5b241ddd35..869200c534eabfec49d97631d69b84d6ed947011 100644 (file)
@@ -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 a02d1e55da9b14a9a7acce9de678c6b545e416b9..b5961f8d056c7dd7c724c50eff38f3b32461dc57 100644 (file)
@@ -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 @@ bool test01(void)
            std::find(x.rbegin(), x.rend(), 'l').base(), ar, 
            ar + sizeof(ar) / sizeof(ar[0]));
   VERIFY( x == "jeHelloo" );
-  return test;
 }
 
 int main()
index 510df8ec277de7b70b4d93f3956489e43cc434f7..e1b50c10ebb341ab49dfb418a7a75f380206d4a8 100644 (file)
@@ -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 dcdc36a44ba42d93cf9fdeb85212135cafa42309..e1c171983f80ad2e2baea9af3dc79b834617731a 100644 (file)
@@ -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 eff9660df4bd07a5728de225fb2dbf61e6ade30d..cff071df93b4aa154bcdcec85b63a0d83cd19528 100644 (file)
@@ -28,7 +28,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
   std::string str01 = "geogaddi";
   std::string str02;
 
index f751fac1f0697db377ad3251dc1a29fbf4c308ca..0a3f5e0cc4e0304dd40edbed9d5baf458606e650 100644 (file)
@@ -27,7 +27,6 @@
 void
 test05()
 {
-  bool test __attribute__((unused)) = true;
   std::string str01 = "londinium";
   std::string str02 = "cydonia";
 
index edfe617538caca2ebae335bfc1d84f1397af2ccf..75a6a4890bc5213ebbb60750689945323009dd4c 100644 (file)
@@ -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 afefa84fc5d5221ee40f06395432bbf5e4068150..3d55bb80dc2c9a4c6541ceb660685b09163f0b03 100644 (file)
@@ -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 @@ test03()
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str("a");
   char c = 'b';
   str.replace(0, 1, &c, 1);
index ea36e5102c5f4879629fea236068d03743af3da7..9ca75126603203ac05060b324c11270e9ac879b6 100644 (file)
@@ -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 @@ bool test01(void)
            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 7469951a72d107eaf6c36c0a9541c6c5a6fecc4b..6baf86303bb25ed3f966c89a45345ad1579ee49a 100644 (file)
@@ -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 ba01d1bf6f6f4f7789a890e5fc73ed589a8a4c6e..4a6033be505bb39748f05b83728941401edf69b3 100644 (file)
@@ -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 a313d1ab269cb37371fd45b7e7f74363719a241c..109c4c307c303e4ceab931f03462614fc0e30335 100644 (file)
@@ -28,7 +28,6 @@
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
   std::wstring str01 = L"geogaddi";
   std::wstring str02;
 
index 93fae0c90d15a76aae5983d6af4bf77ebe69eeb9..cf93370c42e5a4f0c1e944182518dc7331c3ce5b 100644 (file)
@@ -27,7 +27,6 @@
 void
 test05()
 {
-  bool test __attribute__((unused)) = true;
   std::wstring str01 = L"londinium";
   std::wstring str02 = L"cydonia";
 
index e12441c648c106ef49c7f0ec919c04d50e38bfc3..61e7f35d3d9cff6a0008c4380e669ea56d634dcd 100644 (file)
@@ -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 692c52ddcb235b9dd96dfc210dee8844841aea7b..018115101bb6c6bdccfa5d4cc48b99330436038a 100644 (file)
@@ -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 @@ test03()
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str(L"a");
 
   wchar_t c = L'b';
index 6c4cb9e9b801c28dd326e31c0e75ab2905295d18..af9a893aedacc7b33ad9021d1088d1c64af35541 100644 (file)
@@ -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 39b96b67998850e3fc3d684416b770f17366b2b7..7e7c1347eab51abef73865073dbb4129db71af48 100644 (file)
@@ -30,7 +30,8 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
+
   using namespace std;
 
   try
index 4108691c76190834ca754f6c69073a9b76af3711..976deaeb75a768ac301cc48f6cd781322d202f28 100644 (file)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index b039c481db85642cf7e3d18c9204d03f4d364e4c..669dfc71d3a1054aeedd8b8058a96b16a4fb7eb0 100644 (file)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index 0322fcd461f655ac8e129e51b470acfab252586e..40ddbacffa12621b5b71157f251bd2870609e48a 100644 (file)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index 05a6384a28797f1390c3b3f9cf36cca829224a97..15a4dcaddb46dc62df9f7c51c3c07c73823fccff 100644 (file)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index 579d550dae458c1f2448ccb3f8bad811dacce2f8..9060f5c538f00828da69c1c601cecdc8c5982d3c 100644 (file)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index 77b398460fcad5122861cf23a59bf2394fd7e344..d5ec6a99d444b717cf4cf08cbff53a68f21654b1 100644 (file)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index 3c1b2b722de8c37248b56661983f12ecf25fc5bc..49545a40229ab9a4a1d6283f42f1ab8ee43e397d 100644 (file)
@@ -30,7 +30,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index 4205a2a2f4faf1a556e19c50281d46168debb3ec..adca24ec2e4c1659ef327e70f2c5a12097727515 100644 (file)
@@ -28,7 +28,7 @@
 void
 test01()
 {
-  bool test __attribute__((unused)) = true;
+  bool test = true;
   using namespace std;
   
   long long ll1 = -2;
index abeb0c3e01aabe43d860e2049186f5872c3998de..90b1b2e67937c41d8932510a3af678bdd25cfe09 100644 (file)
@@ -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 bd64cc2d25074151fe11b6db2420411788f54084..81735dd186617c0fe96c2334e5fab2cef6a07d4e 100644 (file)
@@ -31,7 +31,7 @@ test01()
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index 4d602ce9a2cba56c79c89f0c388cc307295d4677..2da738c3f2281e9c0d1cb4429ade68a547cbe5b9 100644 (file)
@@ -31,7 +31,7 @@ test01()
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index 6e3ca6fe14a6d2ccf90a18eadb09581a8edf48cc..284203a47c2932e9a5fa8ae1dfa495220328158f 100644 (file)
@@ -31,7 +31,7 @@ test01()
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index fe6b5bf0b70bbcadd8ecd3e85ad7d9701f1d1e5c..f1569b81ae8dad4ce625014abd2a784b83a8ddbd 100644 (file)
@@ -31,7 +31,7 @@ test01()
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index 79bae37a5ec31ebfe731cd54b67d463a8abd11e4..82b8c8bb84658d5b30b69fffbf7066940e44a460 100644 (file)
@@ -31,7 +31,7 @@ test01()
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index 36f092285dda41af09d4220abdbc51513545d82e..c7209a4a5a6adc5dbd72f86a24473622b29b8bd7 100644 (file)
@@ -31,7 +31,7 @@ test01()
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index a7a6838005aa8cd6f25d2f7bab0a4b6285f570f8..5b76f81dc738073324274ca3d7ac84e5c9f28254 100644 (file)
@@ -31,7 +31,7 @@ test01()
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index dfa5784971aed9369dc1fef6d3c16e3cdac6e81d..dd6e92deee1d9aa0d5f9f59bda7c2ec977e4aae1 100644 (file)
@@ -31,7 +31,7 @@ test01()
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = false;
+  bool test = false;
   using namespace std;
 
   try
index cbfc1b8b9766a3df61ca224777082d6d33793258..802791c86301469cd6773e0c8a16388eb7c3e981 100644 (file)
@@ -29,7 +29,6 @@ test01()
 {
 #if _GLIBCXX_USE_C99_WCHAR
 
-  bool test __attribute__((unused)) = true;
   using namespace std;
 
   long long ll1 = -2;
index 7fe30a7ea7f470635f2fb52485f9199a3e42b296..8b7ff864fc59db3b07c00186c00adfef250855d3 100644 (file)
@@ -41,7 +41,6 @@ test_value(int result, want_value expected);
 int
 test_value(int result, want_value expected)
 {
-  bool test __attribute__((unused)) = true;
   bool pass = false;
 
   switch (expected) {
index 6ba24cb8c714e893dfd21c38b02f22fc4ce32f14..e33ab21b4154d0f06cf67d2a8cc71e424196a5c4 100644 (file)
@@ -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 08b3f0c378b25d7b0d2e5707c544bd16ecd9af67..bc34a2f7528449aa5b40267bafb0a64f9d272860 100644 (file)
@@ -25,7 +25,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::string_view str1("foobar");
   std::string str2("foobar");
 
@@ -53,8 +52,6 @@ test03()
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::string str("a");
   char c = 'a';
   int res = str.compare(0, 1, &c, 1);
index 48fe93c97b13bacece1f4a41c931ae374a09cb93..1a28ad7762676eadffea2d789cabeeaafebd07d6 100644 (file)
@@ -40,7 +40,6 @@ test_value(int result, want_value expected);
 int
 test_value(int result, want_value expected)
 {
-  bool test __attribute__((unused)) = true;
   bool pass = false;
 
   switch (expected) {
index bcdbf9c9ccbb77b16cc546cf892c76a1d371510e..7e7657cca375fe8d84e786325846873efbfb2a9a 100644 (file)
@@ -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 d79dcd59a87817e68d81aa43eb05e0897c660600..5019479ba1c5435cd74ba916294f550041477cc7 100644 (file)
@@ -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 @@ test03()
 void
 test04()
 {
-  bool test __attribute__((unused)) = true;
-
   const std::wstring str(L"a");
 
   wchar_t c = L'a';
index 6fd3d9b62cdd0e8d6a61c5289878409c44467dad..668424d0cf5bd5b3dc1d8ccaacb0ae644366bdcb 100644 (file)
@@ -22,8 +22,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::string empty;
 
   // data() for size == 0 is non-NULL.
index 97b5d4afcecba2cec2ca7615b9f90b41281d1d9b..8b98407bde68d152f4960378690f29a2afa79e30 100644 (file)
@@ -22,8 +22,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring empty;
 
   // data() for size == 0 is non-NULL.
index 4bda859de99fdc0ce0cf6874b0d8cd75e77c964e..bc37f4da1d6e67fae7ba9b12090bc10aa147efe4 100644 (file)
@@ -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 @@ bool test01(void)
   VERIFY( csz01 == csz02 );
   csz01 = str01.find('/');
   VERIFY( csz01 == npos );
-  return test;
 }
 
 int main()
index aea3462d08e74e430f5c2024d132140a64700304..85d4f3a77c3312219d846b1d3e2fdd7033dd2aef 100644 (file)
@@ -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 @@ bool test02(void)
   csz01 = str01.find_first_of('z');
   csz02 = str01.size() - 1;
   VERIFY( csz01 == csz02 );
-  return test;
 }
 
 int main()
index 7fee95b85a7ec4901e2b10329e9c65a038d6ba09..d2324c6ecec5554c8437bb25e3ecc9a66f228c8f 100644 (file)
@@ -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 @@ bool test03(void)
   VERIFY( csz01 == 0 );
   csz01 = str04.find_first_not_of('S');
   VERIFY( csz01 == npos );
-  return test;
 }
 
 int main()
index bc0e6b29c75aeb909501e1a4509ffdd41dcb8e54..52641b3af464e8fd811dc9e7f3bfb14253bbef95 100644 (file)
@@ -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 930c61a9b5f0012390eaff5f5decde830ad292d9..683c708048dc40070aaf7417ae4dd0c225ef7021 100644 (file)
@@ -30,7 +30,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::string_view str1("bar");
   std::string str2("foobar");
 
index c6788c2b48d1acabbb539c8ec2c37a31e1f6ea36..7dd9250c47dcebf459bcc6e2cd41b733ce77ea2b 100644 (file)
@@ -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 @@ bool test01(void)
   VERIFY( csz01 == csz02 );
   csz01 = str01.find(L'/');
   VERIFY( csz01 == npos );
-  return test;
 }
 
 int main()
index 0954d3ff281dc5fa89b873cd61c9db3be1cda7e4..affd19f22ff908bf129ca7fcccdd04133891bfbd 100644 (file)
@@ -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 @@ bool test02(void)
   csz01 = str01.find_first_of(L'z');
   csz02 = str01.size() - 1;
   VERIFY( csz01 == csz02 );
-  return test;
 }
 
 int main()
index 156148e4e85bc1401fe20bd1379af8abb014c65f..c0081f7a17dcc4ba04c44d109400a718b1b8e641 100644 (file)
@@ -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 @@ bool test03(void)
   VERIFY( csz01 == 0 );
   csz01 = str04.find_first_not_of(L'S');
   VERIFY( csz01 == npos );
-  return test;
 }
 
 int main()
index 08b3641e9ddcdc49996f83d4aa6ad5ec529b730f..e8c1835f1b6a3d017fe9540cb66d5acc92096658 100644 (file)
@@ -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 701cc4cca1bca94db3aee351e0ebbee0d4b7d357..77a1c967b560fa35798ee0e5658a9568d4965ca0 100644 (file)
@@ -30,7 +30,6 @@
 void
 test03()
 {
-  bool test __attribute__((unused)) = true;
   std::wstring_view str1(L"bar");
   std::wstring str2(L"foobar");
 
index 752750fcd0ee041b8af9825b2cd43629d5742769..035ce461426a747f69380095f9526750cf8f4d25 100644 (file)
@@ -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 @@ bool test01(void)
   VERIFY( csz01 == csz02 );
   csz01 = str01.rfind('/');
   VERIFY( csz01 == npos );
-  return test;
 }
 
 int main()
index 23b70510a28eff387af101ea62bedb38e44e7c26..06ca503d46cd47d115f1610ea7027b33459d328a 100644 (file)
@@ -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 @@ bool test02()
   VERIFY( pos == 1 );
   pos = z.find_last_of('X');
   VERIFY( pos == std::string::npos );
-  return test;
 }
 
 int main()
index 68b413273e6dde638beeaae0f4d86fc3540bed64..661be5a80b7e46f10671ee876afeaf2909649bed 100644 (file)
@@ -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 @@ bool test03()
   VERIFY( pos == 0 );
   pos = z.find_last_not_of("Xa");
   VERIFY( pos == 1 );
-  return test;
 }
 int main()
 {
index 06e833a2ee6f50b2bc4bc8c3f21060cdbe992667..d9c762792b06507e844cfd4ee3845a71fc0ee93c 100644 (file)
@@ -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 @@ bool test01(void)
   VERIFY( csz01 == csz02 );
   csz01 = str01.rfind(L'/');
   VERIFY( csz01 == npos );
-  return test;
 }
 
 int main()
index af384bb9476767bf9f6f42947cc4462f73866b99..e977a6d8517d86430bf860532261e1de6b089d5d 100644 (file)
@@ -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 @@ bool test02()
   VERIFY( pos == 1 );
   pos = z.find_last_of(L'X');
   VERIFY( pos == std::wstring::npos );
-  return test;
 }
 
 int main()
index 0acd72fd843c35c04ce4cad4f52b7834ee239889..33f277a42434e6d92397c3171278e51c0ecb4205 100644 (file)
@@ -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 @@ bool test03()
   VERIFY( pos == 0 );
   pos = z.find_last_not_of(L"Xa");
   VERIFY( pos == 1 );
-  return test;
 }
 int main()
 {
index ecc7296eb0ba6f4ab9a1470f764108e475c4c67f..76041208e2138ed58606d2abc4f0c9cf8ad4e86a 100644 (file)
@@ -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 @@ bool test01(void)
   catch(...) {
     VERIFY( false );
   }
-  return test;
 }
 
 int main()
index 28020dc87f85ac254213ae0bc06c20e8bcef1dbe..2e18c7d14b44ff6d3b30465b2a66fa25e5bdd027 100644 (file)
@@ -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 @@ bool test01(void)
   catch(...) {
     VERIFY( false );
   }
-  return test;
 }
 
 int main()
index d51e08cd69c6bc94336357c4f1bb62589a166026..f6aa4eef9a34242590d45d3ed5d4495a0ae20e7a 100644 (file)
@@ -25,8 +25,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::string str1;
   std::string str2;
   
index 3ba112f1764f65619df329aad0f6a6c2df715ad5..856c85c2f908737c3507ba27027533a0e125ac65 100644 (file)
@@ -114,7 +114,6 @@ template<class charT, class traits, class Allocator>
 
 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 d88aeeb6f24aa75ba9d822f0bec8f509ae292cff..4ae0b65af4a542f5a668dba3b7579106c1c693d5 100644 (file)
@@ -25,7 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::string;
 
   VERIFY( (string("abc") + string("def")
index ca3b75d98e3a3cc5ad4e08c21a5f71d787dd3d00..d37f01b7f2d2f09dd1490f0c75f6c1bb63d16a85 100644 (file)
@@ -25,7 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::string;
   using std::move;
 
index 33520ba85a7b38aa706683e9ea250227e622e4e0..d30a30804e5b6e7e4c0a69fa9bf40938b1bc9ea5 100644 (file)
@@ -24,8 +24,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::string_view str1("foo");;
   std::string str2;
   
index 064d71d432088118659edf0c396c3c5dbfc9b9a0..9841632de3ff53137e6ae58bc5c8b35152218ce9 100644 (file)
@@ -25,8 +25,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str1;
   std::wstring str2;
   
index 97877539c341d2601b2af6536499ab17ea97323b..e22aed2e989b97cf7e18571345608f8d3fc4a435 100644 (file)
@@ -114,7 +114,6 @@ template<class charT, class traits, class Allocator>
 
 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 37ac3f6ce5d1dcc53386b3b38363389c79cb68fd..362b618b44383d4d7c0e8f1889a7dc44104c07f1 100644 (file)
@@ -25,7 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::wstring;
 
   VERIFY( (wstring(L"abc") + wstring(L"def")
index 16e45ba46a72b713df6604fa834d84c14222c585..292d917fdd14e3c454971b970731f03e33e9de2f 100644 (file)
@@ -25,7 +25,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using std::wstring;
   using std::move;
 
index 235025306ca7825793be2a657850fc5ee65e2a13..619a29b94c6fc3ee352ea8544eacbd6626cd9e7f 100644 (file)
@@ -24,8 +24,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring_view str1(L"foo");;
   std::wstring str2;
   
index 74baee3e1f1e52b7a5ae0f63d360cec914a2a5b3..7e13adc5b99f803f521c041c6e83f52541d0f219 100644 (file)
@@ -126,8 +126,6 @@ namespace std
 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 0534bfb4c88fb10ea3ed6ef1b0fbfa7e1f81d35b..ba07a3e80f9faeb1effda72fb0f6f45f597e8ab5 100644 (file)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
   typedef std::string_view::size_type csize_type;
 
   // basic_string_view()
index 331dd4266257a72e804628e16691bfa234bc2a3a..275b33ab31a5466b6b3f93dd02e20b78bf010487 100644 (file)
@@ -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 604adedd817a968040db55d75b83ace2f40b05a8..6a9b96d5f0ecefc4b510a96a4d40a71ba647cec5 100644 (file)
@@ -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 ba8bb9037ef5966686664834bc6b630f2f8c008a..09865711e3b572d051f2fc112e17f6e37a4af14e 100644 (file)
@@ -27,7 +27,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
   typedef std::wstring_view::size_type csize_type;
 
   // basic_string_view()
index 7dbc60c66c20f57d139b98b36be4348ebb838016..443297244d56030fec3b4c29debe7906443ff43f 100644 (file)
@@ -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 4fed4e222d8332ac8011d3320dc45bcf1bf92b91..26550df582b9032965861ef43c33c0a78a59a4df 100644 (file)
@@ -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 1638b0e1104c33ddfd1805899173507e530c70df..714fccdd7888d52561996b7119863d954591fc9f 100644 (file)
 #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 @@ test01()
   {
     VERIFY( false );
   }
-
-  return test;
 }
 
 int
index c0f820617d99c76652688cfb8a816cecf47e1263..fad5eb798ba6a35dc828a18d8870d74b27b3d9de 100644 (file)
@@ -24,8 +24,6 @@
 int
 main()
 {
-  bool test [[gnu::unused]] = true;
-
   {
     std::string_view empty;
     VERIFY( empty.empty() );
index 308d1e07f7b98955587f834cb3f5d571bdeef0f8..4ae3dc4f8315ae372955cfecbf56834b94c3e012 100644 (file)
@@ -24,8 +24,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   std::string_view str("ramifications");
   const std::string_view cstr("melodien");
 
index 7e035fe39cf587fccdb874630419403a1da44bc4..b16c5dba9cecd1a4293eb79e35d0be6cbf684968 100644 (file)
 #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 @@ test01()
   {
     VERIFY( false );
   }
-
-  return test;
 }
 
 int
index c8896e1b27f813b5fa57050f69083db3d8563c66..7e2706c3e4362834c5313205164c4949d51ff238 100644 (file)
@@ -24,8 +24,6 @@
 int
 main()
 {
-  bool test [[gnu::unused]] = true;
-  
   {
     std::wstring_view empty;
     VERIFY( empty.empty() );
index b334061942486f6992d41d91b955183c43ec6ae6..ce814d366654617dac1e5582479b8b3a15418869 100644 (file)
@@ -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 7cef69487be7913a13e4b6369e50144daeac9649..d205506ad2681cc7cbeecb54b222e74a6c61f9a3 100644 (file)
 #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 @@ test01()
   
   std::string_view hello_world;
   std::cout << hello_world;
-
-  return test;
 }
 
 int
index 441a40398c3919e0b0b6f323906ff4699d6d2bd4..9a8ff0f5e427d8e1b04d30bccdde105ba7084242 100644 (file)
@@ -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 9a8e814bbcc8673d7170ad26d2000cc76a6c1cea..230445c44503ee9d6a7e6a6696dc14726cf1857a 100644 (file)
@@ -32,8 +32,6 @@
 void
 test09()
 {
-  bool test [[gnu::unused]] = true;
-
   std::string_view foo{"peace\0\0\0& love"};
 
   std::ostringstream oss1;
index 27a52f90c80d47aa3d2aaf46b5d0ffb63797762a..cac91562e70953595a6291c1a6ee96dce9af39ad 100644 (file)
@@ -37,8 +37,6 @@ test01()
   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 37af0bc105477b0532db26a2a96426843c59429e..a53f5de0b014c26d4caef6c603a45476389e6551 100644 (file)
 #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 @@ test01()
   
   std::wstring_view hello_world;
   std::wcout << hello_world;
-
-  return test;
 }
 
 int
index 86fe7278547aa975ebdf0bf781a9ea77bada7e13..27f952dcbe0ddf4c02843fdb4a2b06748784e2c1 100644 (file)
@@ -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 e3af23cf287aac5a9703c3d72a206089ecac60bf..01a25fec7fc0de72aa7b5346e9d367790d45516a 100644 (file)
@@ -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 5f2bd755af999fe34aebd49b42750e0b7fc0cc63..476b289cb26b703a4c5e4eb06d30b4246959c880 100644 (file)
@@ -23,8 +23,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   using std::string_view;
 
   string_view str0{"olympus mons"};
index 2f7169431c641a30a8b0f96adf613672b3a78a51..cbf7640d8f13c9cc4b661715f0ebd7d31dcba189 100644 (file)
@@ -23,8 +23,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   using std::wstring_view;
 
   wstring_view str0{L"olympus mons"};
index a6eb5c52a5d2da8ea3ec387265be5363b7561ae1..eb67a445f62e86864aa97c1213b3944ad1601fd7 100644 (file)
@@ -23,8 +23,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   using std::string_view;
 
   string_view str0{"olympus mons"};
index 3162e2bbc06b280c7ffd25cbfa02a81ee2dc4494..e8d3d3ed62c8c2a95e37cfc92acdf710d0972088 100644 (file)
@@ -23,8 +23,6 @@
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   using std::wstring_view;
 
   wstring_view str0{L"olympus mons"};
index 28e2514d016c8c3ee2e835fc49bdc8b80b0f17fe..9fdc13b441648ea92e40b3532a5f1c2b953e2e95 100644 (file)
@@ -41,7 +41,6 @@ test_value(int result, want_value expected);
 int
 test_value(int result, want_value expected)
 {
-  bool test [[gnu::unused]] = true;
   bool pass = false;
 
   switch (expected) {
index 9e22a46b00b104e4d0225c93e2f37ad26ce732b3..629f3ccca64207af9090ce2f1a39f6425b79bb0b 100644 (file)
@@ -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 8bf70ec79d737d7995c27e67492a106ba8016c48..02513723e0ddf9252ba527030804505d74014ba9 100644 (file)
@@ -40,7 +40,6 @@ test_value(int result, want_value expected);
 int
 test_value(int result, want_value expected)
 {
-  bool test [[gnu::unused]] = true;
   bool pass = false;
 
   switch (expected) {
index fc3c197ca8b8a43c979d3502ca6f4508268a5326..fbdb7d3c8852c32f69afab48b6ac59169d6590f8 100644 (file)
@@ -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 a583e13a2b1ca64c240665caddfddb70c10c05c3..955d1fb551c442994e9e6820baa17ba36dbd1df9 100644 (file)
@@ -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 @@ test01()
   csize_type len = str01.copy(buffer, sizeof(buffer), 8);
   VERIFY( 2 == len );
   VERIFY( '9' == buffer[0] );
-
-  return test;
 }
 
 int
index 94fa0d430835809676d2f95f6a8d226c46922e89..54d1667afdb54b49f70d30c22133c4f6b1384b03 100644 (file)
@@ -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 @@ test01()
   csize_type len = str01.copy(buffer, sizeof(buffer), 8);
   VERIFY( 2 == len );
   VERIFY( L'9' == buffer[0] );
-
-  return test;
 }
 
 int
index 63eba230ffa482c369f6344d75503fb7b251623c..18fc9f5fe8885f76538c40464c332a493633808f 100644 (file)
@@ -25,8 +25,6 @@
 int
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   std::string_view empty;
 
   VERIFY( empty.size() == 0 );
index 86da7df69b03a19c0dc7b05a0961ad13fd4d67da..6596db5289969d5a60cd2e81c30de607bd0e2fae 100644 (file)
@@ -25,8 +25,6 @@
 int
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   std::wstring_view empty;
 
   VERIFY( empty.size() == 0 );
index 835c78b3897d6fa6203684a18f09e04451deeeab..8a77c767dc362782b4bcdca3b82e40fe65045f1d 100644 (file)
 #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 @@ test01()
   VERIFY( csz01 == csz02 );
   csz01 = str01.find('/');
   VERIFY( csz01 == npos );
-
-  return test;
 }
 
 int
index 4417bfe7a3d3ea3d836228dec1ede595d6e03bd3..c112414ded5048052daecf444adfb5dffba5de15 100644 (file)
 #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 @@ test02()
   csz01 = str01.find_first_of('z');
   csz02 = str01.size() - 1;
   VERIFY( csz01 == csz02 );
-
-  return test;
 }
 
 int
index 4861065042c4d206b8189b8b00075d6d0f7f8b67..cf5014b08205e866b528076f54a8896d43216d4f 100644 (file)
 #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 @@ test03()
   VERIFY( csz01 == 0 );
   csz01 = str04.find_first_not_of('S');
   VERIFY( csz01 == npos );
-
-  return test;
 }
 
 int
index 6d491224808607e0ad4cf65be4965b2ded859403..9391a22b6070285ef09531e04697def17ac31122 100644 (file)
@@ -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 fb147a0a83838d45f96e34cf7e79958f543c384c..e15af9e829eac4203a12f97e3c717c01ac2b4b9d 100644 (file)
 #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 @@ test01()
   VERIFY( csz01 == csz02 );
   csz01 = str01.find(L'/');
   VERIFY( csz01 == npos );
-
-  return test;
 }
 
 int
index 0373a9c429e9b4740012c1ee4fa94a212df55c02..a533e13783f7f38a0600953849adae1a88a7ea8b 100644 (file)
 #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 @@ test02()
   csz01 = str01.find_first_of(L'z');
   csz02 = str01.size() - 1;
   VERIFY( csz01 == csz02 );
-
-  return test;
 }
 
 int
index 82357b807d1f28625d1e4e784cd0039afb5cdfa3..4faee2e3550da571386cfe5d79afc3eb3465fa13 100644 (file)
 #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 @@ test03()
   VERIFY( csz01 == 0 );
   csz01 = str04.find_first_not_of(L'S');
   VERIFY( csz01 == npos );
-
-  return test;
 }
 
 int
index 95671de5292c62a7b3eb62d7277d7956059195ef..aa9b6cc753350de158c2514431df7009b845917c 100644 (file)
@@ -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 1f886e721389b18b211248075e15e57e3584a875..f9e1bf144327b4723e0cf5748be638f680f2a503 100644 (file)
 
 // 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 @@ test01()
   VERIFY( csz01 == csz02 );
   csz01 = str01.rfind('/');
   VERIFY( csz01 == npos );
-
-  return test;
 }
 
 int
index 49232f8ba61948710c3604bca4859a73cf9eccad..3b2c30ab41b2099fc5b3e319bbe0a9164f4aafb7 100644 (file)
 
 // 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 @@ test02()
   VERIFY( pos == 1 );
   pos = z.find_last_of('X');
   VERIFY( pos == std::string_view::npos );
-
-  return test;
 }
 
 int
index ecd34001d802b5d46d33ecbe0fff8d575d88f567..471a0c802dd1b4fe463f16037ad0bdb7591892f2 100644 (file)
 
 // 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 @@ test03()
   VERIFY( pos == 0 );
   pos = z.find_last_not_of("Xa");
   VERIFY( pos == 1 );
-
-  return test;
 }
 int
 main()
index ee28bdc841713a91389195a2567955f2c0130d02..7eff92c488a3a57a70432d123570a32269f10d4a 100644 (file)
 
 // 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 @@ test01()
   VERIFY( csz01 == csz02 );
   csz01 = str01.rfind(L'/');
   VERIFY( csz01 == npos );
-
-  return test;
 }
 
 int
index 4f173ff12ae99d164e7a0998aa1a75df79160177..2acdcd302124522812181ced1c7da3f87773baeb 100644 (file)
 
 // 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 @@ test02()
   VERIFY( pos == 1 );
   pos = z.find_last_of(L'X');
   VERIFY( pos == std::wstring_view::npos );
-
-  return test;
 }
 
 int
index 0b9ea548429306e9004f3f0c1dd978c21edfee95..b2ade360b03aee6fa60d5996066b8c39b37ff679 100644 (file)
 
 // 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 @@ test03()
   VERIFY( pos == 0 );
   pos = z.find_last_not_of(L"Xa");
   VERIFY( pos == 1 );
-
-  return test;
 }
 int
 main()
index 617877f46db2f8707c0b1c53272c3823ebc2911b..d904da54dd2b8d6611d7204713a73178d6aec5c0 100644 (file)
 #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 @@ test01()
   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 08832cd9cb5b52f3f0ef2698ad3fc309d12b3afe..ab573e9c04e6e38c7259d60eea482bc3fb8576fa 100644 (file)
 #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 @@ test01()
   {
     VERIFY( false );
   }
-
-  return test;
 }
 
 int
index d8e6cb03a5bf7f2a5175a5d5dbb911bd4e77ca12..dfa656de0ddb959da7c40a6e465064ac1c6d5224 100644 (file)
 #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 @@ test01()
   {
     VERIFY( false );
   }
-
-  return test;
 }
 
 int
index 04c02e9dfbe28ec0da15fb2aef79008e64163a26..e405593306ab55488c3644e370786c23cfddbf18 100644 (file)
@@ -115,8 +115,6 @@ template<class charT, class traits, class Allocator>
 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 5e9f7e4cb7635c1dc9a7f6968a3eb90ff775eb0b..1b4e0f46f38aa35ecc297f11fb983daabc524499 100644 (file)
@@ -115,8 +115,6 @@ template<class charT, class traits, class Allocator>
 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 53462558e81b1262431d783f761f3313d0d3fd34..d36f0f33040c42f1f01277d9e10906e3867beb1a 100644 (file)
@@ -24,7 +24,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   char c = 'a';
   const char cc = 'b';
   char* c1 = &c;
index 0345f69b98ecc93ae5a14f467c1c085da6bbd901..67a00d58f561033643732eb6feaa33e4b41c2d80 100644 (file)
@@ -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 9a5f269835a5ae703cd28e318a703337cd790abb..034ec1dcd244f4d982a17157fc6903f2f6e0fece 100644 (file)
@@ -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 2c2f3b8d02944f97a2c680db372d9d908a8de1e7..a4ec0c8f88c1330008449bc1345e3c20b25dfabd 100644 (file)
@@ -20,8 +20,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   char a = '\x7f';
   char b = '\x80';
 
index 0a2d2ee1dc57324eb1d3bc1af6960bee9fe77102..4309c6460569ac332caf4667fe1d95505de309f5 100644 (file)
@@ -30,7 +30,6 @@
 void test02(void)
 {
   typedef short char_type;
-  bool test __attribute__((unused)) = true;
  
   // 21.1.1 character traits requirements
 
index b4221a4592bb6709d203537d84e1896774c0d5df..375aeffec5441471d0f8cc21e392405bbe497a6e 100644 (file)
@@ -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 de6f06c922e0a0120e3e8303bbce9e4526a1fd35..c35a812e0b85fa0bb34d967ca59563ca1f58217f 100644 (file)
@@ -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 3d8d6ef5c4ea30910e27bcf335f89f5ecfd4e325..20a8a10559a948630300995568d838433aa43512 100644 (file)
@@ -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 db8c06e7ffbd7583d627f2ae85a0ddff7797d159..83830760a4ee3dbdc25cbc75a8f9a0c39763d5a8 100644 (file)
@@ -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 48ddb397f2776bc2323b73cac587995d951fb334..3797e341fc4924f5c23220923aff324f21db739c 100644 (file)
@@ -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 93c402eebf85e6f4b03ee24d5d43fa1f9fd01a82..5c6bb871d824e1bbf2a32aed5b7254371b7fca6e 100644 (file)
@@ -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 @@ test_04()
 {
   using namespace __gnu_test;
 
-  bool test __attribute__((unused)) = true;
+  bool test = true;
   const char* name = "tmp_fifo1";
   semaphore s1, s2;
 
@@ -92,7 +89,6 @@ test_04()
   if (!(ofs.rdstate() & std::ios::failbit))
     {
       test = false;
-      VERIFY( test );
     }
 
   unlink(name);
index 0a095a3e289cf8031d6436cce2d24aeed19c24ca..106d1229d937cd71dec1bbb901b9403608bc2f67 100644 (file)
@@ -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 @@ bool test_07()
 {
   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 @@ bool test_07()
   mkfifo(name, S_IRWXU);
   
   int child = fork();
-  VERIFY( child != -1 );
+  test &= bool( child != -1 );
 
   if (child == 0)
     {
@@ -68,15 +65,15 @@ bool test_07()
   
   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 fdd1a7e9e2f8ed4ff4347e195fc7ddcd0d04ab0e..ecda598d8b79ae0416a64ecf00e8db8fbc993b85 100644 (file)
 #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 @@ bool test01()
   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 2ed9a40d3b82104088a5e687da6751b1c4aa82a5..d9e7d7d6e5346e82b9fbf8cdad144a4b7e9270bf 100644 (file)
@@ -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 @@ bool test01()
 {
   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 @@ bool test01()
   semaphore s1;
 
   int child = fork();
-  VERIFY( child != -1 );
+  test &= bool( child != -1 );
 
   if (child == 0)
     {
@@ -68,8 +65,8 @@ bool test01()
   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 b0b49b155546223453c7d61a46d16622c2624a13..6748a610673b36f43b785c292f5e778c839584fc 100644 (file)
@@ -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 @@ bool test01()
   using namespace std;
   using namespace __gnu_test;
 
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   const char* name = "tmp_fifo6";
 
@@ -50,13 +47,13 @@ bool test01()
   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 @@ bool test01()
   oss << &fbin;
   fbin.close();
 
-  VERIFY( oss.str() == "Whatever" );
+  test &= bool( oss.str() == "Whatever" );
 
   return test;
 }
index 2d6e6db6e0ebad38975a7ce52befe2c2772cdb56..6b149c5797c68f6249e55aa53b8072c2938b68a8 100644 (file)
@@ -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 @@ bool test16()
 {
   using namespace std;
   using namespace __gnu_test;
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   const char* name = "tmp_fifo1";
   
@@ -62,7 +59,7 @@ bool test16()
   
   if (0 != mkfifo(name, S_IRWXU))
     {
-      VERIFY( false );
+      test = false;
     }
   
   semaphore s1, s2;
@@ -70,13 +67,13 @@ bool test16()
   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 @@ bool test16()
       --n;
       
       UnderBuf::int_type c = fb.pub_underflow();
-      VERIFY( c != UnderBuf::traits_type::eof() );
-      
+      test &= bool( c != UnderBuf::traits_type::eof() );
+
       fb.sbumpc();
     }
 
index 131169458fa8533fb2e588ffea0dd7d9389fffb2..72b978d97cec2f55d857de5bfe8fef7a0516f56b 100644 (file)
 
 using namespace std;
 
-#ifndef _GLIBCXX_ASSERT
-#  define TEST_NUMPUT_VERBOSE 1
-#endif
-
 struct _TestCase
 {
   double val;
index a26fafa42d3d0c3cb0d9837d4181dba79d69ae06..364bc56d2faac10c19c673d1adcd0e7e986a777f 100644 (file)
 #include <string>
 #include <testsuite_hooks.h>
 
-#ifndef _GLIBCXX_ASSERT
-#  define TEST_NUMPUT_VERBOSE 1
-#endif
-
 #ifdef TEST_NUMPUT_VERBOSE
 #  include <iostream>
 #endif
index 449f2896be3a767095fb6cb7845417e043feaae3..4c9865327080c3626e64c3dfc306051349948db5 100644 (file)
 
 using namespace std;
 
-#ifndef _GLIBCXX_ASSERT
-#  define TEST_NUMPUT_VERBOSE 1
-#endif
-
 struct _TestCase
 {
   double val;
index f9608daab77e646eda872ba0fe93982878be519b..f016c04df881d4a02393bece98def3665f05423e 100644 (file)
 #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 @@ bool test07()
 {
   using namespace std;
   using namespace __gnu_test;
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   const char* name = "tmp_fifo4";
 
@@ -52,13 +48,13 @@ bool test07()
   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 @@ bool test07()
   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 e2d91bcb86bd1804a5a2fac8d644a73f0b33a95d..12da7c9940cebf966c6faee9a0adeb95e715ccdf 100644 (file)
@@ -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 @@ bool test01()
   using namespace std;
   using namespace __gnu_test;
 
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   const char* name = "tmp_fifo5";
 
@@ -52,12 +49,12 @@ bool test01()
   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 @@ bool test01()
       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 f1954297d2fbfaa834110639ccc2e206f62386a5..3e63fe011445b02207c0255d957e53389ef6e687 100644 (file)
@@ -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 @@ bool test07()
 {
   using namespace std;
   using namespace __gnu_test;
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   const char* name = "tmp_fifo4";
 
@@ -52,7 +49,7 @@ bool test07()
   semaphore s1;
 
   int child = fork();
-  VERIFY( child != -1 );
+  test &= bool( child != -1 );
 
   if (child == 0)
     {
@@ -69,8 +66,8 @@ bool test07()
   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 01da01acc510b5a3b18b8df12102f3d3830b0546..b2e595706d5697c0c63a8f41e1e36b34860325c7 100644 (file)
@@ -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 @@ bool test01()
   using namespace std;
   using namespace __gnu_test;
 
-  bool test __attribute__((unused)) = true;
+  bool test = true;
 
   const char* name = "tmp_fifo5";
 
@@ -52,7 +49,7 @@ bool test01()
   semaphore s1, s2;
 
   int child = fork();
-  VERIFY( child != -1 );
+  test &= bool( child != -1 );
 
   if (child == 0)
     {
@@ -66,25 +63,25 @@ bool test01()
       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 1780eaff5c197da4c7a74704dac60f27958d9af0..bdb80a06a36c307452bc4a6c18d71394d2049d21 100644 (file)
@@ -236,7 +236,7 @@ proc libstdc++_init { testfile } {
 
     # 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 c6f020c34dbca880c541132c4ab255c8870e279b..e4c4866eba403e7056a9858a8d79437c98150515 100644 (file)
 
 // 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
 #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>