Commit 2437d31d by Paolo Carlini Committed by Paolo Carlini

container_access.cc: Remove 'test' variables.

2016-10-13  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/24_iterators/container_access.cc: Remove 'test' variables.
	* testsuite/24_iterators/istream_iterator/2.cc: Likewise.
	* testsuite/24_iterators/istreambuf_iterator/2.cc: Likewise.
	* testsuite/24_iterators/istreambuf_iterator/2627.cc: Likewise.
	* testsuite/24_iterators/operations/next.cc: Likewise.
	* testsuite/24_iterators/operations/prev.cc: Likewise.
	* testsuite/24_iterators/ostreambuf_iterator/2.cc: Likewise.
	* testsuite/24_iterators/random_access_iterator/26020.cc: Likewise.
	* testsuite/24_iterators/range_access_cpp14.cc: Likewise.
	* testsuite/24_iterators/reverse_iterator/11729.cc: Likewise.
	* testsuite/24_iterators/reverse_iterator/3.cc: Likewise.
	* testsuite/25_algorithms/adjacent_find/vectorbool.cc: Likewise.
	* testsuite/25_algorithms/all_of/1.cc: Likewise.
	* testsuite/25_algorithms/any_of/1.cc: Likewise.
	* testsuite/25_algorithms/binary_search/2.cc: Likewise.
	* testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
	* testsuite/25_algorithms/clamp/1.cc: Likewise.
	* testsuite/25_algorithms/clamp/2.cc: Likewise.
	* testsuite/25_algorithms/copy/1.cc: Likewise.
	* testsuite/25_algorithms/copy/2.cc: Likewise.
	* testsuite/25_algorithms/copy/3.cc: Likewise.
	* testsuite/25_algorithms/copy/34595.cc: Likewise.
	* testsuite/25_algorithms/copy/4.cc: Likewise.
	* testsuite/25_algorithms/copy/deque_iterators/1.cc: Likewise.
	* testsuite/25_algorithms/copy/move_iterators/1.cc: Likewise.
	* testsuite/25_algorithms/copy/streambuf_iterators/char/1.cc: Likewise.
	* testsuite/25_algorithms/copy/streambuf_iterators/char/2.cc: Likewise.
	* testsuite/25_algorithms/copy/streambuf_iterators/char/3.cc: Likewise.
	* testsuite/25_algorithms/copy/streambuf_iterators/char/4.cc: Likewise.
	* testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/1.cc:
	Likewise.
	* testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/2.cc:
	Likewise.
	* testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/3.cc:
	Likewise.
	* testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/4.cc:
	Likewise.
	* testsuite/25_algorithms/copy_backward/deque_iterators/1.cc: Likewise.
	* testsuite/25_algorithms/copy_backward/move_iterators/1.cc: Likewise.
	* testsuite/25_algorithms/copy_n/1.cc: Likewise.
	* testsuite/25_algorithms/copy_n/2.cc: Likewise.
	* testsuite/25_algorithms/copy_n/3.cc: Likewise.
	* testsuite/25_algorithms/copy_n/4.cc: Likewise.
	* testsuite/25_algorithms/copy_n/50119.cc: Likewise.
	* testsuite/25_algorithms/copy_n/move_iterators/1.cc: Likewise.
	* testsuite/25_algorithms/equal_range/2.cc: Likewise.
	* testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
	* testsuite/25_algorithms/fill/1.cc: Likewise.
	* testsuite/25_algorithms/fill/2.cc: Likewise.
	* testsuite/25_algorithms/fill/3.cc: Likewise.
	* testsuite/25_algorithms/fill/4.cc: Likewise.
	* testsuite/25_algorithms/fill_n/1.cc: Likewise.
	* testsuite/25_algorithms/find/39546.cc: Likewise.
	* testsuite/25_algorithms/find/istreambuf_iterators/char/1.cc: Likewise.
	* testsuite/25_algorithms/find/istreambuf_iterators/char/2.cc: Likewise.
	* testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/1.cc:
	Likewise.
	* testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/2.cc:
	Likewise.
	* testsuite/25_algorithms/find_if/1.cc: Likewise.
	* testsuite/25_algorithms/find_if_not/1.cc: Likewise.
	* testsuite/25_algorithms/for_each/1.cc: Likewise.
	* testsuite/25_algorithms/heap/1.cc: Likewise.
	* testsuite/25_algorithms/heap/moveable.cc: Likewise.
	* testsuite/25_algorithms/heap/moveable2.cc: Likewise.
	* testsuite/25_algorithms/heap/vectorbool.cc: Likewise.
	* testsuite/25_algorithms/includes/1.cc: Likewise.
	* testsuite/25_algorithms/inplace_merge/1.cc: Likewise.
	* testsuite/25_algorithms/inplace_merge/49559.cc: Likewise.
	* testsuite/25_algorithms/inplace_merge/moveable.cc: Likewise.
	* testsuite/25_algorithms/inplace_merge/moveable2.cc: Likewise.
	* testsuite/25_algorithms/is_heap/1.cc: Likewise.
	* testsuite/25_algorithms/is_heap_until/1.cc: Likewise.
	* testsuite/25_algorithms/is_partitioned/1.cc: Likewise.
	* testsuite/25_algorithms/is_permutation/1.cc: Likewise.
	* testsuite/25_algorithms/is_permutation/2.cc: Likewise.
	* testsuite/25_algorithms/is_permutation/vectorbool.cc: Likewise.
	* testsuite/25_algorithms/is_sorted/1.cc: Likewise.
	* testsuite/25_algorithms/is_sorted_until/1.cc: Likewise.
	* testsuite/25_algorithms/iter_swap/20577.cc: Likewise.
	* testsuite/25_algorithms/lower_bound/2.cc: Likewise.
	* testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
	* testsuite/25_algorithms/make_heap/complexity.cc: Likewise.
	* testsuite/25_algorithms/max/1.cc: Likewise.
	* testsuite/25_algorithms/max/2.cc: Likewise.
	* testsuite/25_algorithms/max/3.cc: Likewise.
	* testsuite/25_algorithms/max/37547.cc: Likewise.
	* testsuite/25_algorithms/max/4.cc: Likewise.
	* testsuite/25_algorithms/min/1.cc: Likewise.
	* testsuite/25_algorithms/min/2.cc: Likewise.
	* testsuite/25_algorithms/min/3.cc: Likewise.
	* testsuite/25_algorithms/min/37547.cc: Likewise.
	* testsuite/25_algorithms/min/4.cc: Likewise.
	* testsuite/25_algorithms/minmax/1.cc: Likewise.
	* testsuite/25_algorithms/minmax/2.cc: Likewise.
	* testsuite/25_algorithms/minmax/3.cc: Likewise.
	* testsuite/25_algorithms/minmax/37547.cc: Likewise.
	* testsuite/25_algorithms/minmax_element/1.cc: Likewise.
	* testsuite/25_algorithms/move/1.cc: Likewise.
	* testsuite/25_algorithms/move/deque_iterators/1.cc: Likewise.
	* testsuite/25_algorithms/move_backward/1.cc: Likewise.
	* testsuite/25_algorithms/move_backward/deque_iterators/1.cc: Likewise.
	* testsuite/25_algorithms/next_permutation/moveable.cc: Likewise.
	* testsuite/25_algorithms/none_of/1.cc: Likewise.
	* testsuite/25_algorithms/nth_element/1.cc: Likewise.
	* testsuite/25_algorithms/nth_element/2.cc: Likewise.
	* testsuite/25_algorithms/nth_element/3.cc: Likewise.
	* testsuite/25_algorithms/nth_element/moveable.cc: Likewise.
	* testsuite/25_algorithms/nth_element/random_test.cc: Likewise.
	* testsuite/25_algorithms/partial_sort/2.cc: Likewise.
	* testsuite/25_algorithms/partial_sort/check_compare_by_value.cc:
	Likewise.
	* testsuite/25_algorithms/partial_sort/moveable.cc: Likewise.
	* testsuite/25_algorithms/partial_sort/random_test.cc: Likewise.
	* testsuite/25_algorithms/partial_sort_copy/2.cc: Likewise.
	* testsuite/25_algorithms/partial_sort_copy/random_test.cc: Likewise.
	* testsuite/25_algorithms/partition/1.cc: Likewise.
	* testsuite/25_algorithms/partition/moveable.cc: Likewise.
	* testsuite/25_algorithms/partition_copy/1.cc: Likewise.
	* testsuite/25_algorithms/partition_point/1.cc: Likewise.
	* testsuite/25_algorithms/pop_heap/complexity.cc: Likewise.
	* testsuite/25_algorithms/prev_permutation/moveable.cc: Likewise.
	* testsuite/25_algorithms/push_heap/complexity.cc: Likewise.
	* testsuite/25_algorithms/random_shuffle/1.cc: Likewise.
	* testsuite/25_algorithms/random_shuffle/moveable.cc: Likewise.
	* testsuite/25_algorithms/rotate/1.cc: Likewise.
	* testsuite/25_algorithms/rotate/moveable.cc: Likewise.
	* testsuite/25_algorithms/rotate/moveable2.cc: Likewise.
	* testsuite/25_algorithms/rotate/rotate.cc: Likewise.
	* testsuite/25_algorithms/search/1.cc: Likewise.
	* testsuite/25_algorithms/search_n/58358.cc: Likewise.
	* testsuite/25_algorithms/shuffle/1.cc: Likewise.
	* testsuite/25_algorithms/sort/1.cc: Likewise.
	* testsuite/25_algorithms/sort/check_compare_by_value.cc: Likewise.
	* testsuite/25_algorithms/sort/moveable.cc: Likewise.
	* testsuite/25_algorithms/sort/random_test.cc: Likewise.
	* testsuite/25_algorithms/sort/vectorbool.cc: Likewise.
	* testsuite/25_algorithms/sort_heap/check_compare_by_value.cc: Likewise.
	* testsuite/25_algorithms/sort_heap/complexity.cc: Likewise.
	* testsuite/25_algorithms/stable_partition/1.cc: Likewise.
	* testsuite/25_algorithms/stable_partition/mem_check.cc: Likewise.
	* testsuite/25_algorithms/stable_partition/moveable.cc: Likewise.
	* testsuite/25_algorithms/stable_sort/2.cc: Likewise.
	* testsuite/25_algorithms/stable_sort/3.cc: Likewise.
	* testsuite/25_algorithms/stable_sort/49559.cc: Likewise.
	* testsuite/25_algorithms/stable_sort/check_compare_by_value.cc:
	Likewise.
	* testsuite/25_algorithms/stable_sort/mem_check.cc: Likewise.
	* testsuite/25_algorithms/stable_sort/moveable.cc: Likewise.
	* testsuite/25_algorithms/stable_sort/moveable2.cc: Likewise.
	* testsuite/25_algorithms/swap_ranges/1.cc: Likewise.
	* testsuite/25_algorithms/unique/11480.cc: Likewise.
	* testsuite/25_algorithms/unique/2.cc: Likewise.
	* testsuite/25_algorithms/unique/moveable.cc: Likewise.
	* testsuite/25_algorithms/unique_copy/1.cc: Likewise.
	* testsuite/25_algorithms/unique_copy/2.cc: Likewise.
	* testsuite/25_algorithms/unique_copy/26133.cc: Likewise.
	* testsuite/25_algorithms/upper_bound/2.cc: Likewise.
	* testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_match/awk/cstring_01.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_match/basic/empty_range.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/basic/string_01.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/basic/
	string_range_00_03.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_match/basic/
	string_range_01_03.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_match/basic/
	string_range_02_03.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/char/53622.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/char/57173.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/char/58576.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/char/68863.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/char/anymatcher.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/char/backref.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/char/empty_range.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/char/emptygroup.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/char/hex.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/char/quoted_char.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/char/ungreedy.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/63199.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/
	anymatcher.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/cjk_match.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/hex.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/extended/cstring_plus.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/extended/
	cstring_questionmark.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_match/extended/
	cstring_range.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_match/extended/string_any.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_match/extended/
	string_range_00_03.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_match/extended/
	string_range_01_03.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_match/extended/
	string_range_02_03.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_match/extended/
	wstring_locale.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_replace/char/basic_replace.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_replace/char/dr2213.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_search/61720.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_search/basic/string_01.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_search/ecma/assertion.cc:
	Likewise.
	* testsuite/28_regex/algorithms/regex_search/ecma/flags.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_search/ecma/greedy.cc: Likewise.
	* testsuite/28_regex/algorithms/regex_search/ecma/string_01.cc:
	Likewise.
	* testsuite/28_regex/basic_regex/assign/char/cstring.cc: Likewise.
	* testsuite/28_regex/basic_regex/assign/char/cstring_op.cc: Likewise.
	* testsuite/28_regex/basic_regex/assign/char/moveable.cc: Likewise.
	* testsuite/28_regex/basic_regex/assign/char/pstring.cc: Likewise.
	* testsuite/28_regex/basic_regex/assign/char/range.cc: Likewise.
	* testsuite/28_regex/basic_regex/assign/char/string.cc: Likewise.
	* testsuite/28_regex/basic_regex/assign/char/string_op.cc: Likewise.
	* testsuite/28_regex/basic_regex/assign/wchar_t/cstring.cc: Likewise.
	* testsuite/28_regex/basic_regex/assign/wchar_t/cstring_op.cc: Likewise.
	* testsuite/28_regex/basic_regex/assign/wchar_t/pstring.cc: Likewise.
	* testsuite/28_regex/basic_regex/assign/wchar_t/range.cc: Likewise.
	* testsuite/28_regex/basic_regex/assign/wchar_t/string.cc: Likewise.
	* testsuite/28_regex/basic_regex/assign/wchar_t/string_op.cc: Likewise.
	* testsuite/28_regex/basic_regex/ctors/basic/pstring_wchar_t.cc:
	Likewise.
	* testsuite/28_regex/basic_regex/ctors/basic/string_range_01_02_03.cc:
	Likewise.
	* testsuite/28_regex/basic_regex/ctors/extended/cstring.cc: Likewise.
	* testsuite/28_regex/basic_regex/ctors/extended/
	string_range_01_02_03.cc: Likewise.
	* testsuite/28_regex/basic_regex/ctors/move_char.cc: Likewise.
	* testsuite/28_regex/basic_regex/ctors/string_wchar_t.cc: Likewise.
	* testsuite/28_regex/basic_regex/ctors/wchar_t/cstring.cc: Likewise.
	* testsuite/28_regex/basic_regex/ctors/wchar_t/default.cc: Likewise.
	* testsuite/28_regex/basic_regex/ctors/wchar_t/range.cc: Likewise.
	* testsuite/28_regex/basic_regex/imbue/string.cc: Likewise.
	* testsuite/28_regex/constants/error_type.cc: Likewise.
	* testsuite/28_regex/constants/match_flag_type.cc: Likewise.
	* testsuite/28_regex/init-list.cc: Likewise.
	* testsuite/28_regex/iterators/regex_iterator/char/64140.cc: Likewise.
	* testsuite/28_regex/iterators/regex_iterator/char/string_01.cc:
	Likewise.
	* testsuite/28_regex/iterators/regex_iterator/char/
	string_position_01.cc
	* testsuite/28_regex/iterators/regex_iterator/ctors/char/default.cc:
	Likewise.
	* testsuite/28_regex/iterators/regex_iterator/ctors/wchar_t/
	default.cc: Likewise.
	* testsuite/28_regex/iterators/regex_iterator/typedefs.cc: Likewise.
	* testsuite/28_regex/iterators/regex_iterator/wchar_t/string_01.cc:
	Likewise.
	* testsuite/28_regex/iterators/regex_iterator/wchar_t/string_02.cc:
	Likewise.
	* testsuite/28_regex/iterators/regex_token_iterator/64303.cc: Likewise.
	* testsuite/28_regex/iterators/regex_token_iterator/char/string_01.cc:
	Likewise.
	* testsuite/28_regex/iterators/regex_token_iterator/ctors/char/
	default.cc: Likewise.
	* testsuite/28_regex/iterators/regex_token_iterator/ctors/wchar_t/
	default.cc: Likewise.
	* testsuite/28_regex/iterators/regex_token_iterator/typedefs.cc:
	Likewise.
	* testsuite/28_regex/iterators/regex_token_iterator/wchar_t/
	string_01.cc: Likewise.
	* testsuite/28_regex/iterators/regex_token_iterator/wchar_t/
	wstring_02.cc: Likewise.
	* testsuite/28_regex/match_results/ctors/char/default.cc: Likewise.
	* testsuite/28_regex/match_results/ctors/wchar_t/default.cc: Likewise.
	* testsuite/28_regex/match_results/format.cc: Likewise.
	* testsuite/28_regex/match_results/out_of_range_submatches.cc: Likewise.
	* testsuite/28_regex/match_results/swap.cc: Likewise.
	* testsuite/28_regex/match_results/typedefs.cc: Likewise.
	* testsuite/28_regex/regex_error/regex_error.cc: Likewise.
	* testsuite/28_regex/regression.cc: Likewise.
	* testsuite/28_regex/sub_match/cast_char.cc: Likewise.
	* testsuite/28_regex/sub_match/cast_wchar_t.cc: Likewise.
	* testsuite/28_regex/sub_match/embedded_zeros_cmp.cc: Likewise.
	* testsuite/28_regex/sub_match/length.cc: Likewise.
	* testsuite/28_regex/traits/char/ctor.cc: Likewise.
	* testsuite/28_regex/traits/char/isctype.cc: Likewise.
	* testsuite/28_regex/traits/char/length.cc: Likewise.
	* testsuite/28_regex/traits/char/lookup_classname.cc: Likewise.
	* testsuite/28_regex/traits/char/lookup_collatename.cc: Likewise.
	* testsuite/28_regex/traits/char/transform.cc: Likewise.
	* testsuite/28_regex/traits/char/transform_primary.cc: Likewise.
	* testsuite/28_regex/traits/char/translate.cc: Likewise.
	* testsuite/28_regex/traits/char/translate_nocase.cc: Likewise.
	* testsuite/28_regex/traits/char/user_defined.cc: Likewise.
	* testsuite/28_regex/traits/char/value.cc: Likewise.
	* testsuite/28_regex/traits/wchar_t/ctor.cc: Likewise.
	* testsuite/28_regex/traits/wchar_t/isctype.cc: Likewise.
	* testsuite/28_regex/traits/wchar_t/length.cc: Likewise.
	* testsuite/28_regex/traits/wchar_t/lookup_classname.cc: Likewise.
	* testsuite/28_regex/traits/wchar_t/lookup_collatename.cc: Likewise.
	* testsuite/28_regex/traits/wchar_t/transform.cc: Likewise.
	* testsuite/28_regex/traits/wchar_t/transform_primary.cc: Likewise.
	* testsuite/28_regex/traits/wchar_t/translate.cc: Likewise.
	* testsuite/28_regex/traits/wchar_t/translate_nocase.cc: Likewise.
	* testsuite/28_regex/traits/wchar_t/user_defined.cc: Likewise.
	* testsuite/28_regex/traits/wchar_t/value.cc: Likewise.
	* testsuite/29_atomics/atomic/60658.cc: Likewise.
	* testsuite/29_atomics/atomic/operators/51811.cc: Likewise.
	* testsuite/29_atomics/atomic_flag/clear/1.cc: Likewise.
	* testsuite/backward/11460.cc: Likewise.
	* testsuite/backward/hash_map/1.cc: Likewise.
	* testsuite/backward/hash_map/25896.cc: Likewise.
	* testsuite/backward/hash_set/1.cc: Likewise.
	* testsuite/backward/hash_set/25896.cc: Likewise.
	* testsuite/decimal/binary-arith.cc: Likewise.
	* testsuite/decimal/comparison.cc: Likewise.
	* testsuite/decimal/compound-assignment-memfunc.cc: Likewise.
	* testsuite/decimal/compound-assignment.cc: Likewise.
	* testsuite/decimal/conversion-from-float.cc: Likewise.
	* testsuite/decimal/conversion-from-integral.cc: Likewise.
	* testsuite/decimal/conversion-to-generic-float.cc: Likewise.
	* testsuite/decimal/conversion-to-integral.cc: Likewise.
	* testsuite/decimal/ctor.cc: Likewise.
	* testsuite/decimal/incdec-memfunc.cc: Likewise.
	* testsuite/decimal/incdec.cc: Likewise.
	* testsuite/decimal/make-decimal.cc: Likewise.
	* testsuite/decimal/pr54036-1.cc: Likewise.
	* testsuite/decimal/pr54036-2.cc: Likewise.
	* testsuite/decimal/pr54036-3.cc: Likewise.
	* testsuite/decimal/unary-arith.cc: Likewise.
	* testsuite/special_functions/01_assoc_laguerre/check_nan.cc: Likewise.
	* testsuite/special_functions/01_assoc_laguerre/check_value.cc:
	Likewise.
	* testsuite/special_functions/02_assoc_legendre/check_nan.cc: Likewise.
	* testsuite/special_functions/02_assoc_legendre/check_value.cc:
	Likewise.
	* testsuite/special_functions/03_beta/check_nan.cc: Likewise.
	* testsuite/special_functions/03_beta/check_value.cc: Likewise.
	* testsuite/special_functions/04_comp_ellint_1/check_nan.cc: Likewise.
	* testsuite/special_functions/04_comp_ellint_1/check_value.cc: Likewise.
	* testsuite/special_functions/05_comp_ellint_2/check_nan.cc: Likewise.
	* testsuite/special_functions/05_comp_ellint_2/check_value.cc: Likewise.
	* testsuite/special_functions/06_comp_ellint_3/check_nan.cc: Likewise.
	* testsuite/special_functions/06_comp_ellint_3/check_value.cc: Likewise.
	* testsuite/special_functions/07_cyl_bessel_i/check_nan.cc: Likewise.
	* testsuite/special_functions/07_cyl_bessel_i/check_value.cc: Likewise.
	* testsuite/special_functions/07_cyl_bessel_i/pr56216.cc: Likewise.
	* testsuite/special_functions/08_cyl_bessel_j/check_nan.cc: Likewise.
	* testsuite/special_functions/08_cyl_bessel_j/check_value.cc: Likewise.
	* testsuite/special_functions/09_cyl_bessel_k/check_nan.cc: Likewise.
	* testsuite/special_functions/09_cyl_bessel_k/check_value.cc: Likewise.
	* testsuite/special_functions/10_cyl_neumann/check_nan.cc: Likewise.
	* testsuite/special_functions/10_cyl_neumann/check_value.cc: Likewise.
	* testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise.
	* testsuite/special_functions/11_ellint_1/check_value.cc: Likewise.
	* testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise.
	* testsuite/special_functions/12_ellint_2/check_value.cc: Likewise.
	* testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise.
	* testsuite/special_functions/13_ellint_3/check_value.cc: Likewise.
	* testsuite/special_functions/14_expint/check_nan.cc: Likewise.
	* testsuite/special_functions/14_expint/check_value.cc: Likewise.
	* testsuite/special_functions/15_hermite/check_nan.cc: Likewise.
	* testsuite/special_functions/15_hermite/check_value.cc: Likewise.
	* testsuite/special_functions/16_laguerre/check_nan.cc: Likewise.
	* testsuite/special_functions/16_laguerre/check_value.cc: Likewise.
	* testsuite/special_functions/17_legendre/check_nan.cc: Likewise.
	* testsuite/special_functions/17_legendre/check_value.cc: Likewise.
	* testsuite/special_functions/18_riemann_zeta/check_nan.cc: Likewise.
	* testsuite/special_functions/18_riemann_zeta/check_value.cc: Likewise.
	* testsuite/special_functions/19_sph_bessel/check_nan.cc: Likewise.
	* testsuite/special_functions/19_sph_bessel/check_value.cc: Likewise.
	* testsuite/special_functions/20_sph_legendre/check_nan.cc: Likewise.
	* testsuite/special_functions/20_sph_legendre/check_value.cc: Likewise.
	* testsuite/special_functions/21_sph_neumann/check_nan.cc: Likewise.
	* testsuite/special_functions/21_sph_neumann/check_value.cc: Likewise.
	* testsuite/tr2/bases/value.cc: Likewise.
	* testsuite/tr2/direct_bases/value.cc: Likewise.
	* testsuite/util/debug/checks.h: Likewise.
	* testsuite/util/debug/unordered_checks.h: Likewise.
	* testsuite/util/testsuite_allocator.h: Likewise.
	* testsuite/util/testsuite_api.h: Likewise.
	* testsuite/util/testsuite_common_types.h: Likewise.
	* testsuite/util/testsuite_random.h: Likewise.
	* testsuite/util/testsuite_rvalref.h: Likewise.

From-SVN: r241138
parent 14a2c9aa
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#include <vector> #include <vector>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
bool test __attribute__((unused)) = true;
void void
test01() test01()
{ {
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
void test02() void test02()
{ {
using namespace std; using namespace std;
bool test __attribute__((unused)) = true;
string st("R.Rorty"); string st("R.Rorty");
......
...@@ -23,12 +23,11 @@ ...@@ -23,12 +23,11 @@
#include <iterator> #include <iterator>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
bool test02(void) void test02(void)
{ {
typedef std::istreambuf_iterator<char> cistreambuf_iter; typedef std::istreambuf_iterator<char> cistreambuf_iter;
typedef cistreambuf_iter::streambuf_type cstreambuf_type; typedef cistreambuf_iter::streambuf_type cstreambuf_type;
bool test __attribute__((unused)) = true;
const char slit01[] = "playa hermosa, liberia, guanacaste"; const char slit01[] = "playa hermosa, liberia, guanacaste";
std::string str01(slit01); std::string str01(slit01);
std::istringstream istrs00(str01); std::istringstream istrs00(str01);
...@@ -106,7 +105,6 @@ bool test02(void) ...@@ -106,7 +105,6 @@ bool test02(void)
c = *++istrb_it28; c = *++istrb_it28;
VERIFY( c == slit01[++i] ); VERIFY( c == slit01[++i] );
} }
return test;
} }
int main() int main()
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
// libstdc++/2627 // libstdc++/2627
void test03() void test03()
{ {
bool test __attribute__((unused)) = true;
const std::string s("free the vieques"); const std::string s("free the vieques");
// 1 // 1
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
std::vector<int> c(3); std::vector<int> c(3);
std::vector<int>::iterator i = c.begin(), j; std::vector<int>::iterator i = c.begin(), j;
...@@ -37,7 +36,6 @@ void test01() ...@@ -37,7 +36,6 @@ void test01()
void test02() void test02()
{ {
bool test __attribute__((unused)) = true;
std::list<int> c(3); std::list<int> c(3);
std::list<int>::iterator i = c.begin(), j; std::list<int>::iterator i = c.begin(), j;
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
std::vector<int> c(3); std::vector<int> c(3);
std::vector<int>::iterator i = c.end(), j; std::vector<int>::iterator i = c.end(), j;
...@@ -37,7 +36,6 @@ void test01() ...@@ -37,7 +36,6 @@ void test01()
void test02() void test02()
{ {
bool test __attribute__((unused)) = true;
std::list<int> c(3); std::list<int> c(3);
std::list<int>::iterator i = c.end(), j; std::list<int>::iterator i = c.end(), j;
......
...@@ -23,11 +23,10 @@ ...@@ -23,11 +23,10 @@
#include <iterator> #include <iterator>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
bool test02(void) void test02(void)
{ {
typedef std::ostreambuf_iterator<char> costreambuf_iter; typedef std::ostreambuf_iterator<char> costreambuf_iter;
typedef costreambuf_iter::streambuf_type cstreambuf_type; typedef costreambuf_iter::streambuf_type cstreambuf_type;
bool test __attribute__((unused)) = true;
const char slit01[] = "playa hermosa, liberia, guanacaste"; const char slit01[] = "playa hermosa, liberia, guanacaste";
const char slit02[] = "bodega bay, lost coast, california"; const char slit02[] = "bodega bay, lost coast, california";
std::string str01(slit01); std::string str01(slit01);
...@@ -81,7 +80,6 @@ bool test02(void) ...@@ -81,7 +80,6 @@ bool test02(void)
tmp = ostrs00.str(); tmp = ostrs00.str();
VERIFY ( tmp != str01 ); VERIFY ( tmp != str01 );
VERIFY ( tmp != str02 ); VERIFY ( tmp != str02 );
return test;
} }
int main() int main()
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
void test01() void test01()
{ {
using namespace std; using namespace std;
bool test __attribute__((unused)) = true;
list<int> ll; list<int> ll;
ll.push_back(1); ll.push_back(1);
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
#include <vector> #include <vector>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
bool test __attribute__((unused)) = true;
void void
test01() test01()
{ {
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
// libstdc++/11729 // libstdc++/11729
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
typedef std::vector<int> Vec; typedef std::vector<int> Vec;
typedef Vec::reverse_iterator reverse_iterator; typedef Vec::reverse_iterator reverse_iterator;
typedef Vec::const_reverse_iterator const_reverse_iterator; typedef Vec::const_reverse_iterator const_reverse_iterator;
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
// libstdc++/10783 // libstdc++/10783
void test03() void test03()
{ {
bool test __attribute__((unused)) = true;
typedef std::vector<int> V; typedef std::vector<int> V;
VERIFY( sizeof(V::iterator) == sizeof(V::reverse_iterator) ); VERIFY( sizeof(V::iterator) == sizeof(V::reverse_iterator) );
} }
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
void void
test01() test01()
{ {
bool test __attribute__((unused)) = true;
std::vector<bool> v; std::vector<bool> v;
v.push_back(true); v.push_back(true);
v.push_back(false); v.push_back(false);
......
...@@ -36,8 +36,6 @@ predicate(const int& i) ...@@ -36,8 +36,6 @@ predicate(const int& i)
void void
test1() test1()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array); Container con(array, array);
VERIFY( std::all_of(con.begin(), con.end(), predicate) ); VERIFY( std::all_of(con.begin(), con.end(), predicate) );
} }
...@@ -45,8 +43,6 @@ test1() ...@@ -45,8 +43,6 @@ test1()
void void
test2() test2()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array + 1); Container con(array, array + 1);
VERIFY( std::all_of(con.begin(), con.end(), predicate) ); VERIFY( std::all_of(con.begin(), con.end(), predicate) );
} }
...@@ -54,8 +50,6 @@ test2() ...@@ -54,8 +50,6 @@ test2()
void void
test3() test3()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array + 6); Container con(array, array + 6);
VERIFY( !std::all_of(con.begin(), con.end(), predicate) ); VERIFY( !std::all_of(con.begin(), con.end(), predicate) );
} }
......
...@@ -36,8 +36,6 @@ predicate(const int& i) ...@@ -36,8 +36,6 @@ predicate(const int& i)
void void
test1() test1()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array); Container con(array, array);
VERIFY( !std::any_of(con.begin(), con.end(), predicate) ); VERIFY( !std::any_of(con.begin(), con.end(), predicate) );
} }
...@@ -45,8 +43,6 @@ test1() ...@@ -45,8 +43,6 @@ test1()
void void
test2() test2()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array + 1); Container con(array, array + 1);
VERIFY( !std::any_of(con.begin(), con.end(), predicate) ); VERIFY( !std::any_of(con.begin(), con.end(), predicate) );
} }
...@@ -54,8 +50,6 @@ test2() ...@@ -54,8 +50,6 @@ test2()
void void
test3() test3()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array + 6); Container con(array, array + 6);
VERIFY( std::any_of(con.begin(), con.end(), predicate) ); VERIFY( std::any_of(con.begin(), con.end(), predicate) );
} }
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include <algorithm> #include <algorithm>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 3, 3, 5, 8}; const int A[] = {1, 2, 3, 3, 3, 5, 8};
const int C[] = {8, 5, 3, 3, 3, 2, 1}; const int C[] = {8, 5, 3, 3, 3, 2, 1};
const int N = sizeof(A) / sizeof(int); const int N = sizeof(A) / sizeof(int);
......
...@@ -39,8 +39,6 @@ struct X ...@@ -39,8 +39,6 @@ struct X
void void
test01() test01()
{ {
bool test __attribute((unused)) = true;
// Test with range that is partitioned, but not sorted. // Test with range that is partitioned, but not sorted.
X seq[] = { 1, 3, 5, 7, 1, 6, 4 }; X seq[] = { 1, 3, 5, 7, 1, 6, 4 };
test_container<X, forward_iterator_wrapper> c(seq); test_container<X, forward_iterator_wrapper> c(seq);
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
const int x = std::clamp(1, 2, 4); const int x = std::clamp(1, 2, 4);
const int y = std::clamp(3, 2, 4); const int y = std::clamp(3, 2, 4);
const int z = std::clamp(5, 2, 4); const int z = std::clamp(5, 2, 4);
......
...@@ -29,8 +29,6 @@ const T A<T>::a = T(3); ...@@ -29,8 +29,6 @@ const T A<T>::a = T(3);
void test02() void test02()
{ {
bool test __attribute__((unused)) = true;
VERIFY( 3 == std::clamp(A<int>::a, 2, 4) ); VERIFY( 3 == std::clamp(A<int>::a, 2, 4) );
VERIFY( 2 == std::clamp(A<int>::a, 1, 2) ); VERIFY( 2 == std::clamp(A<int>::a, 1, 2) );
VERIFY( 4 == std::clamp(A<int>::a, 4, 6) ); VERIFY( 4 == std::clamp(A<int>::a, 4, 6) );
......
...@@ -25,7 +25,6 @@ void ...@@ -25,7 +25,6 @@ void
test01() test01()
{ {
using namespace std; using namespace std;
bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17}; const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int); const int N = sizeof(A) / sizeof(int);
......
...@@ -25,7 +25,6 @@ void ...@@ -25,7 +25,6 @@ void
test01() test01()
{ {
using namespace std; using namespace std;
bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17}; const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int); const int N = sizeof(A) / sizeof(int);
......
...@@ -26,7 +26,6 @@ void ...@@ -26,7 +26,6 @@ void
test01() test01()
{ {
using namespace std; using namespace std;
bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17}; const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int); const int N = sizeof(A) / sizeof(int);
......
...@@ -38,8 +38,6 @@ public: ...@@ -38,8 +38,6 @@ public:
// libstdc++/34595 // libstdc++/34595
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
int t[10] = {0,}; int t[10] = {0,};
Counting_output_iterator cnt; Counting_output_iterator cnt;
std::size_t res = std::copy(t+0, t+5, cnt).current_counter(); std::size_t res = std::copy(t+0, t+5, cnt).current_counter();
......
...@@ -26,7 +26,6 @@ void ...@@ -26,7 +26,6 @@ void
test01() test01()
{ {
using namespace std; using namespace std;
bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17}; const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int); const int N = sizeof(A) / sizeof(int);
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
deque<long> data(200); deque<long> data(200);
......
...@@ -36,8 +36,6 @@ typedef test_container<rvalstruct, output_iterator_wrapper> container_out; ...@@ -36,8 +36,6 @@ typedef test_container<rvalstruct, output_iterator_wrapper> container_out;
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
const int size = sizeof(inarray) / sizeof(int); const int size = sizeof(inarray) / sizeof(int);
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
// In the occasion of libstdc++/25482 // In the occasion of libstdc++/25482
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
typedef istreambuf_iterator<char> in_iterator_type; typedef istreambuf_iterator<char> in_iterator_type;
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
// In the occasion of libstdc++/25482 // In the occasion of libstdc++/25482
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
typedef istreambuf_iterator<char> in_iterator_type; typedef istreambuf_iterator<char> in_iterator_type;
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
// In the occasion of libstdc++/25482 // In the occasion of libstdc++/25482
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
typedef ostreambuf_iterator<char> out_iterator_type; typedef ostreambuf_iterator<char> out_iterator_type;
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
// In the occasion of libstdc++/25482 // In the occasion of libstdc++/25482
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
typedef istreambuf_iterator<char> in_iterator_type; typedef istreambuf_iterator<char> in_iterator_type;
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
// In the occasion of libstdc++/25482 // In the occasion of libstdc++/25482
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
typedef istreambuf_iterator<wchar_t> in_iterator_type; typedef istreambuf_iterator<wchar_t> in_iterator_type;
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
// In the occasion of libstdc++/25482 // In the occasion of libstdc++/25482
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
typedef istreambuf_iterator<wchar_t> in_iterator_type; typedef istreambuf_iterator<wchar_t> in_iterator_type;
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
// In the occasion of libstdc++/25482 // In the occasion of libstdc++/25482
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
typedef ostreambuf_iterator<wchar_t> out_iterator_type; typedef ostreambuf_iterator<wchar_t> out_iterator_type;
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
// In the occasion of libstdc++/25482 // In the occasion of libstdc++/25482
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
typedef istreambuf_iterator<wchar_t> in_iterator_type; typedef istreambuf_iterator<wchar_t> in_iterator_type;
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
deque<long> data(200); deque<long> data(200);
......
...@@ -37,8 +37,6 @@ typedef test_container<rvalstruct, ...@@ -37,8 +37,6 @@ typedef test_container<rvalstruct,
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
const int size = sizeof(inarray) / sizeof(int); const int size = sizeof(inarray) / sizeof(int);
......
...@@ -27,7 +27,6 @@ void ...@@ -27,7 +27,6 @@ void
test01() test01()
{ {
using namespace std; using namespace std;
bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17}; const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int); const int N = sizeof(A) / sizeof(int);
......
...@@ -27,7 +27,6 @@ void ...@@ -27,7 +27,6 @@ void
test01() test01()
{ {
using namespace std; using namespace std;
bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17}; const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int); const int N = sizeof(A) / sizeof(int);
......
...@@ -28,7 +28,6 @@ void ...@@ -28,7 +28,6 @@ void
test01() test01()
{ {
using namespace std; using namespace std;
bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17}; const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int); const int N = sizeof(A) / sizeof(int);
......
...@@ -28,7 +28,6 @@ void ...@@ -28,7 +28,6 @@ void
test01() test01()
{ {
using namespace std; using namespace std;
bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17}; const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int); const int N = sizeof(A) / sizeof(int);
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
void test01() void test01()
{ {
using namespace std; using namespace std;
bool test __attribute__((unused)) = true;
vector<int> v; vector<int> v;
istringstream s("1 2 3 4 5"); istringstream s("1 2 3 4 5");
......
...@@ -38,8 +38,6 @@ typedef test_container<rvalstruct, output_iterator_wrapper> container_out; ...@@ -38,8 +38,6 @@ typedef test_container<rvalstruct, output_iterator_wrapper> container_out;
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
const int size = sizeof(inarray) / sizeof(int); const int size = sizeof(inarray) / sizeof(int);
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include <algorithm> #include <algorithm>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 3, 3, 5, 8}; const int A[] = {1, 2, 3, 3, 3, 5, 8};
const int C[] = {8, 5, 3, 3, 3, 2, 1}; const int C[] = {8, 5, 3, 3, 3, 2, 1};
const int N = sizeof(A) / sizeof(int); const int N = sizeof(A) / sizeof(int);
......
...@@ -39,8 +39,6 @@ struct X ...@@ -39,8 +39,6 @@ struct X
void void
test01() test01()
{ {
bool test __attribute((unused)) = true;
// Test with range that is partitioned, but not sorted. // Test with range that is partitioned, but not sorted.
X seq[] = { 1, 3, 5, 7, 1, 6, 4, 2 }; X seq[] = { 1, 3, 5, 7, 1, 6, 4, 2 };
test_container<X, forward_iterator_wrapper> c(seq); test_container<X, forward_iterator_wrapper> c(seq);
......
...@@ -39,7 +39,6 @@ public: ...@@ -39,7 +39,6 @@ public:
// fill // fill
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
const int val = 1; const int val = 1;
......
...@@ -39,7 +39,6 @@ public: ...@@ -39,7 +39,6 @@ public:
// fill_n // fill_n
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
const int val = 3; const int val = 3;
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
char ca[1] = { '\0' }; char ca[1] = { '\0' };
signed char sc = 1; signed char sc = 1;
......
...@@ -27,7 +27,6 @@ void ...@@ -27,7 +27,6 @@ void
test01() test01()
{ {
using namespace std; using namespace std;
bool test __attribute__((unused)) = true;
const int A1[] = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3}; const int A1[] = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3};
const int N1 = sizeof(A1) / sizeof(int); const int N1 = sizeof(A1) / sizeof(int);
......
...@@ -27,7 +27,6 @@ void ...@@ -27,7 +27,6 @@ void
test01() test01()
{ {
using namespace std; using namespace std;
bool test __attribute__((unused)) = true;
const int A1[] = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3}; const int A1[] = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3};
const int N1 = sizeof(A1) / sizeof(int); const int N1 = sizeof(A1) / sizeof(int);
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
void void
test01() test01()
{ {
bool test __attribute__((unused)) = true;
std::vector<std::string> dict; std::vector<std::string> dict;
dict.push_back("one"); dict.push_back("one");
dict.push_back("two"); dict.push_back("two");
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
// In the occasion of libstdc++/25482 // In the occasion of libstdc++/25482
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
typedef istreambuf_iterator<char> in_iterator_type; typedef istreambuf_iterator<char> in_iterator_type;
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
// In the occasion of libstdc++/25482 // In the occasion of libstdc++/25482
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
typedef istreambuf_iterator<char> in_iterator_type; typedef istreambuf_iterator<char> in_iterator_type;
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
// In the occasion of libstdc++/25482 // In the occasion of libstdc++/25482
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
typedef istreambuf_iterator<wchar_t> in_iterator_type; typedef istreambuf_iterator<wchar_t> in_iterator_type;
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
// In the occasion of libstdc++/25482 // In the occasion of libstdc++/25482
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
typedef istreambuf_iterator<wchar_t> in_iterator_type; typedef istreambuf_iterator<wchar_t> in_iterator_type;
......
...@@ -34,8 +34,6 @@ predicate(const int& i) ...@@ -34,8 +34,6 @@ predicate(const int& i)
void void
test1() test1()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array); Container con(array, array);
VERIFY( std::find_if(con.begin(), con.end(), VERIFY( std::find_if(con.begin(), con.end(),
predicate).ptr == array ); predicate).ptr == array );
...@@ -44,8 +42,6 @@ test1() ...@@ -44,8 +42,6 @@ test1()
void void
test2() test2()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array + 1); Container con(array, array + 1);
VERIFY( std::find_if(con.begin(), con.end(), VERIFY( std::find_if(con.begin(), con.end(),
predicate).ptr == array + 1 ); predicate).ptr == array + 1 );
...@@ -54,8 +50,6 @@ test2() ...@@ -54,8 +50,6 @@ test2()
void void
test3() test3()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array + 6); Container con(array, array + 6);
VERIFY( std::find_if(con.begin(), con.end(), VERIFY( std::find_if(con.begin(), con.end(),
predicate).ptr == array + 3 ); predicate).ptr == array + 3 );
......
...@@ -36,8 +36,6 @@ predicate(const int& i) ...@@ -36,8 +36,6 @@ predicate(const int& i)
void void
test1() test1()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array); Container con(array, array);
VERIFY( std::find_if_not(con.begin(), con.end(), VERIFY( std::find_if_not(con.begin(), con.end(),
predicate).ptr == array ); predicate).ptr == array );
...@@ -46,8 +44,6 @@ test1() ...@@ -46,8 +44,6 @@ test1()
void void
test2() test2()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array + 1); Container con(array, array + 1);
VERIFY( std::find_if_not(con.begin(), con.end(), VERIFY( std::find_if_not(con.begin(), con.end(),
predicate).ptr == array + 1 ); predicate).ptr == array + 1 );
...@@ -56,8 +52,6 @@ test2() ...@@ -56,8 +52,6 @@ test2()
void void
test3() test3()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array + 6); Container con(array, array + 6);
VERIFY( std::find_if_not(con.begin(), con.end(), VERIFY( std::find_if_not(con.begin(), con.end(),
predicate).ptr == array + 3 ); predicate).ptr == array + 3 );
......
...@@ -45,7 +45,6 @@ private: ...@@ -45,7 +45,6 @@ private:
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using __gnu_test::test_container; using __gnu_test::test_container;
using __gnu_test::input_iterator_wrapper; using __gnu_test::input_iterator_wrapper;
......
...@@ -53,8 +53,6 @@ int Gt::_M_count = 0; ...@@ -53,8 +53,6 @@ int Gt::_M_count = 0;
void void
test01() test01()
{ {
bool test __attribute__((unused)) = true;
// sort array s1 using push_heap/pop_heap // sort array s1 using push_heap/pop_heap
int s1[N]; int s1[N];
std::copy(A, A + N, s1); std::copy(A, A + N, s1);
...@@ -83,8 +81,6 @@ test01() ...@@ -83,8 +81,6 @@ test01()
void void
test02() test02()
{ {
bool test __attribute__((unused)) = true;
Gt gt; Gt gt;
#ifndef _GLIBCXX_DEBUG #ifndef _GLIBCXX_DEBUG
......
...@@ -41,8 +41,6 @@ typedef test_container<int, random_access_iterator_wrapper> container_ref; ...@@ -41,8 +41,6 @@ typedef test_container<int, random_access_iterator_wrapper> container_ref;
void void
check_make(int* array, int length) check_make(int* array, int length)
{ {
bool test __attribute__((unused)) = true;
rvalstruct makeheap[9]; rvalstruct makeheap[9];
int makeheap_ref[9]; int makeheap_ref[9];
std::copy(array, array + length, makeheap); std::copy(array, array + length, makeheap);
...@@ -61,8 +59,6 @@ check_make(int* array, int length) ...@@ -61,8 +59,6 @@ check_make(int* array, int length)
void void
check_pop(int* array, int length) check_pop(int* array, int length)
{ {
bool test __attribute__((unused)) = true;
rvalstruct popheap[9]; rvalstruct popheap[9];
int popheap_ref[9]; int popheap_ref[9];
std::copy(array, array + length, popheap); std::copy(array, array + length, popheap);
...@@ -81,8 +77,6 @@ check_pop(int* array, int length) ...@@ -81,8 +77,6 @@ check_pop(int* array, int length)
void void
check_sort(int* array, int length) check_sort(int* array, int length)
{ {
bool test __attribute__((unused)) = true;
rvalstruct sortheap[9]; rvalstruct sortheap[9];
int sortheap_ref[9]; int sortheap_ref[9];
std::copy(array, array + length, sortheap); std::copy(array, array + length, sortheap);
...@@ -101,8 +95,6 @@ check_sort(int* array, int length) ...@@ -101,8 +95,6 @@ check_sort(int* array, int length)
void void
check_push(int* array, int pushval, int length) check_push(int* array, int pushval, int length)
{ {
bool test __attribute__((unused)) = true;
rvalstruct pushheap[10]; rvalstruct pushheap[10];
int pushheap_ref[10]; int pushheap_ref[10];
std::copy(array, array + length, pushheap); std::copy(array, array + length, pushheap);
......
...@@ -47,8 +47,6 @@ bool are_ordered_int(const int& lhs, const int& rhs) ...@@ -47,8 +47,6 @@ bool are_ordered_int(const int& lhs, const int& rhs)
void void
check_make(int* array, int length) check_make(int* array, int length)
{ {
bool test __attribute__((unused)) = true;
rvalstruct makeheap[9]; rvalstruct makeheap[9];
int makeheap_ref[9]; int makeheap_ref[9];
std::copy(array, array + length, makeheap); std::copy(array, array + length, makeheap);
...@@ -67,8 +65,6 @@ check_make(int* array, int length) ...@@ -67,8 +65,6 @@ check_make(int* array, int length)
void void
check_pop(int* array, int length) check_pop(int* array, int length)
{ {
bool test __attribute__((unused)) = true;
rvalstruct popheap[9]; rvalstruct popheap[9];
int popheap_ref[9]; int popheap_ref[9];
std::copy(array, array + length, popheap); std::copy(array, array + length, popheap);
...@@ -87,8 +83,6 @@ check_pop(int* array, int length) ...@@ -87,8 +83,6 @@ check_pop(int* array, int length)
void void
check_sort(int* array, int length) check_sort(int* array, int length)
{ {
bool test __attribute__((unused)) = true;
rvalstruct sortheap[9]; rvalstruct sortheap[9];
int sortheap_ref[9]; int sortheap_ref[9];
std::copy(array, array + length, sortheap); std::copy(array, array + length, sortheap);
...@@ -107,8 +101,6 @@ check_sort(int* array, int length) ...@@ -107,8 +101,6 @@ check_sort(int* array, int length)
void void
check_push(int* array, int pushval, int length) check_push(int* array, int pushval, int length)
{ {
bool test __attribute__((unused)) = true;
rvalstruct pushheap[10]; rvalstruct pushheap[10];
int pushheap_ref[10]; int pushheap_ref[10];
std::copy(array, array + length, pushheap); std::copy(array, array + length, pushheap);
......
...@@ -55,8 +55,6 @@ int Gt::_S_count = 0; ...@@ -55,8 +55,6 @@ int Gt::_S_count = 0;
void void
test01() test01()
{ {
bool test __attribute__((unused)) = true;
// sort array s1 using push_heap/pop_heap // sort array s1 using push_heap/pop_heap
std::vector<bool> s1; std::vector<bool> s1;
std::copy(A, A + N, std::back_inserter(s1)); std::copy(A, A + N, std::back_inserter(s1));
...@@ -85,8 +83,6 @@ test01() ...@@ -85,8 +83,6 @@ test01()
void void
test02() test02()
{ {
bool test __attribute__((unused)) = true;
Gt gt; Gt gt;
#ifndef _GLIBCXX_DEBUG #ifndef _GLIBCXX_DEBUG
......
...@@ -30,7 +30,6 @@ typedef test_container<int, input_iterator_wrapper> Container; ...@@ -30,7 +30,6 @@ typedef test_container<int, input_iterator_wrapper> Container;
void void
test1() test1()
{ {
bool test __attribute__((unused)) = true;
int array[] = {0}; int array[] = {0};
Container con1(array, array); Container con1(array, array);
Container con2(array, array); Container con2(array, array);
...@@ -40,7 +39,6 @@ test1() ...@@ -40,7 +39,6 @@ test1()
void void
test2() test2()
{ {
bool test __attribute__((unused)) = true;
int array[] = {0, 1}; int array[] = {0, 1};
Container con1(array, array); Container con1(array, array);
Container con2(array, array + 2); Container con2(array, array + 2);
...@@ -50,7 +48,6 @@ test2() ...@@ -50,7 +48,6 @@ test2()
void void
test3() test3()
{ {
bool test __attribute__((unused)) = true;
int array[] = {0, 1}; int array[] = {0, 1};
Container con1(array, array + 2); Container con1(array, array + 2);
Container con2(array, array); Container con2(array, array);
...@@ -60,7 +57,6 @@ test3() ...@@ -60,7 +57,6 @@ test3()
void void
test4() test4()
{ {
bool test __attribute__((unused)) = true;
int array1[] = {1, 2, 3, 4, 6, 8, 9}; int array1[] = {1, 2, 3, 4, 6, 8, 9};
int array2[] = {2, 4, 6, 8}; int array2[] = {2, 4, 6, 8};
Container con1(array1, array1 + 7); Container con1(array1, array1 + 7);
...@@ -71,7 +67,6 @@ test4() ...@@ -71,7 +67,6 @@ test4()
void void
test5() test5()
{ {
bool test __attribute__((unused)) = true;
int array1[] = {1, 2, 3, 5}; int array1[] = {1, 2, 3, 5};
int array2[] = {2, 4, 6, 8}; int array2[] = {2, 4, 6, 8};
Container con1(array1, array1 + 4); Container con1(array1, array1 + 4);
......
...@@ -42,8 +42,6 @@ test1() ...@@ -42,8 +42,6 @@ test1()
void void
test2() test2()
{ {
bool test __attribute__((unused)) = true;
int array[] = { 0, 2, 4, 1, 3, 5 }; int array[] = { 0, 2, 4, 1, 3, 5 };
container con(array, array + 6); container con(array, array + 6);
inplace_merge(con.begin(), con.it(3), con.end()); inplace_merge(con.begin(), con.it(3), con.end());
...@@ -65,8 +63,6 @@ struct S ...@@ -65,8 +63,6 @@ struct S
void void
test3() test3()
{ {
bool test __attribute__((unused)) = true;
S s[8]; S s[8];
s[0].a = 0; s[0].a = 0;
s[1].a = 1; s[1].a = 1;
......
...@@ -43,8 +43,6 @@ bool are_ordered(const rvalstruct& lhs, const rvalstruct& rhs) ...@@ -43,8 +43,6 @@ bool are_ordered(const rvalstruct& lhs, const rvalstruct& rhs)
// libstdc++/49559 // libstdc++/49559
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
rvalstruct s1[6]; rvalstruct s1[6];
std::copy(A, A + N, s1); std::copy(A, A + N, s1);
Container con1(s1, s1 + N); Container con1(s1, s1 + N);
......
...@@ -33,8 +33,6 @@ typedef test_container<rvalstruct, bidirectional_iterator_wrapper> container; ...@@ -33,8 +33,6 @@ typedef test_container<rvalstruct, bidirectional_iterator_wrapper> container;
void void
test01() test01()
{ {
bool test __attribute__((unused)) = true;
int array1[]={0,2,4,1,3,5}; int array1[]={0,2,4,1,3,5};
rvalstruct rv_array1[6]; rvalstruct rv_array1[6];
std::copy(array1, array1 + 6, rv_array1); std::copy(array1, array1 + 6, rv_array1);
......
...@@ -37,8 +37,6 @@ are_ordered(const rvalstruct& lhs, const rvalstruct& rhs) ...@@ -37,8 +37,6 @@ are_ordered(const rvalstruct& lhs, const rvalstruct& rhs)
void void
test01() test01()
{ {
bool test __attribute__((unused)) = true;
int array1[]={0,2,4,1,3,5}; int array1[]={0,2,4,1,3,5};
rvalstruct rv_array1[6]; rvalstruct rv_array1[6];
std::copy(array1, array1 + 6, rv_array1); std::copy(array1, array1 + 6, rv_array1);
......
...@@ -32,8 +32,6 @@ const int N = sizeof(A) / sizeof(int); ...@@ -32,8 +32,6 @@ const int N = sizeof(A) / sizeof(int);
void void
test01() test01()
{ {
bool test __attribute__((unused)) = true;
for (int i = 0; i <= N; ++i) for (int i = 0; i <= N; ++i)
{ {
VERIFY( std::is_heap(A, A + i) ); VERIFY( std::is_heap(A, A + i) );
......
...@@ -32,8 +32,6 @@ const int N = sizeof(A) / sizeof(int); ...@@ -32,8 +32,6 @@ const int N = sizeof(A) / sizeof(int);
void void
test01() test01()
{ {
bool test __attribute__((unused)) = true;
for (int i = 0; i <= N; ++i) for (int i = 0; i <= N; ++i)
{ {
VERIFY( A + i == std::is_heap_until(A, A + i) ); VERIFY( A + i == std::is_heap_until(A, A + i) );
......
...@@ -36,8 +36,6 @@ predicate(const int& i) ...@@ -36,8 +36,6 @@ predicate(const int& i)
void void
test1() test1()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array); Container con(array, array);
VERIFY( std::is_partitioned(con.begin(), con.end(), predicate) ); VERIFY( std::is_partitioned(con.begin(), con.end(), predicate) );
} }
...@@ -45,8 +43,6 @@ test1() ...@@ -45,8 +43,6 @@ test1()
void void
test2() test2()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array + 1); Container con(array, array + 1);
VERIFY( std::is_partitioned(con.begin(), con.end(), predicate) ); VERIFY( std::is_partitioned(con.begin(), con.end(), predicate) );
} }
...@@ -54,8 +50,6 @@ test2() ...@@ -54,8 +50,6 @@ test2()
void void
test3() test3()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array + 8); Container con(array, array + 8);
VERIFY( !std::is_partitioned(con.begin(), con.end(), predicate) ); VERIFY( !std::is_partitioned(con.begin(), con.end(), predicate) );
} }
...@@ -63,8 +57,6 @@ test3() ...@@ -63,8 +57,6 @@ test3()
void void
test4() test4()
{ {
bool test __attribute__((unused)) = true;
Container con(array + 2, array + 7); Container con(array + 2, array + 7);
VERIFY( std::is_partitioned(con.begin(), con.end(), predicate) ); VERIFY( std::is_partitioned(con.begin(), con.end(), predicate) );
} }
......
...@@ -37,8 +37,6 @@ const int arr0[] = { 11, 22, 33, 44, 55 }; ...@@ -37,8 +37,6 @@ const int arr0[] = { 11, 22, 33, 44, 55 };
void void
do_test(int arr1[5], bool np = true) do_test(int arr1[5], bool np = true)
{ {
bool test __attribute__((unused)) = true;
do do
VERIFY( std::is_permutation(arr1, arr1 + 5, arr0) == np ); VERIFY( std::is_permutation(arr1, arr1 + 5, arr0) == np );
while (std::next_permutation(arr1, arr1 + 5)); while (std::next_permutation(arr1, arr1 + 5));
...@@ -48,8 +46,6 @@ template<typename Predicate> ...@@ -48,8 +46,6 @@ template<typename Predicate>
void void
do_test(int arr1[5], Predicate pred, bool np = true) do_test(int arr1[5], Predicate pred, bool np = true)
{ {
bool test __attribute__((unused)) = true;
do do
VERIFY( std::is_permutation(arr1, arr1 + 5, arr0, pred) == np ); VERIFY( std::is_permutation(arr1, arr1 + 5, arr0, pred) == np );
while (std::next_permutation(arr1, arr1 + 5)); while (std::next_permutation(arr1, arr1 + 5));
......
...@@ -35,8 +35,6 @@ const int arr0[] = { 11, 22, 33, 44, 55 }; ...@@ -35,8 +35,6 @@ const int arr0[] = { 11, 22, 33, 44, 55 };
void void
do_test(int arr1[5], bool np = true, unsigned N = 5) do_test(int arr1[5], bool np = true, unsigned N = 5)
{ {
bool test __attribute__((unused)) = true;
do do
VERIFY( std::is_permutation(arr1, arr1 + 5, arr0, arr0 + N) == np ); VERIFY( std::is_permutation(arr1, arr1 + 5, arr0, arr0 + N) == np );
while (std::next_permutation(arr1, arr1 + 5)); while (std::next_permutation(arr1, arr1 + 5));
...@@ -46,8 +44,6 @@ template<typename Predicate> ...@@ -46,8 +44,6 @@ template<typename Predicate>
void void
do_test(int arr1[5], Predicate pred, bool np = true, unsigned N = 5) do_test(int arr1[5], Predicate pred, bool np = true, unsigned N = 5)
{ {
bool test __attribute__((unused)) = true;
do do
VERIFY( std::is_permutation(arr1, arr1 + 5, arr0, arr0 + N, pred) == np ); VERIFY( std::is_permutation(arr1, arr1 + 5, arr0, arr0 + N, pred) == np );
while (std::next_permutation(arr1, arr1 + 5)); while (std::next_permutation(arr1, arr1 + 5));
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
std::vector<bool> v1 = { true, false, true, false, true }; std::vector<bool> v1 = { true, false, true, false, true };
std::vector<bool> v2 = { false, true, false, true, true }; std::vector<bool> v2 = { false, true, false, true, true };
VERIFY( std::is_permutation(v1.begin(), v1.end(), v2.begin()) ); VERIFY( std::is_permutation(v1.begin(), v1.end(), v2.begin()) );
...@@ -35,8 +33,6 @@ void test01() ...@@ -35,8 +33,6 @@ void test01()
void test02() void test02()
{ {
bool test __attribute__((unused)) = true;
std::vector<bool> v1 = { true, false, true, false, true }; std::vector<bool> v1 = { true, false, true, false, true };
std::vector<bool> v2 = { false, true, false, true, true }; std::vector<bool> v2 = { false, true, false, true, true };
VERIFY( std::is_permutation(v1.begin(), v1.end(), v2.begin(), v2.end()) ); VERIFY( std::is_permutation(v1.begin(), v1.end(), v2.begin(), v2.end()) );
......
...@@ -32,8 +32,6 @@ const int N = sizeof(A) / sizeof(int); ...@@ -32,8 +32,6 @@ const int N = sizeof(A) / sizeof(int);
void void
test01() test01()
{ {
bool test __attribute__((unused)) = true;
for (int i = 0; i <= N; ++i) for (int i = 0; i <= N; ++i)
{ {
VERIFY( std::is_sorted(A, A + i) ); VERIFY( std::is_sorted(A, A + i) );
......
...@@ -32,8 +32,6 @@ const int N = sizeof(A) / sizeof(int); ...@@ -32,8 +32,6 @@ const int N = sizeof(A) / sizeof(int);
void void
test01() test01()
{ {
bool test __attribute__((unused)) = true;
for (int i = 0; i <= N; ++i) for (int i = 0; i <= N; ++i)
{ {
VERIFY( A + i == std::is_sorted_until(A, A + i) ); VERIFY( A + i == std::is_sorted_until(A, A + i) );
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
void void
test1() test1()
{ {
bool test __attribute__((unused)) = true;
std::vector<bool> v; std::vector<bool> v;
v.push_back(true); v.push_back(true);
v.push_back(false); v.push_back(false);
...@@ -34,8 +32,6 @@ test1() ...@@ -34,8 +32,6 @@ test1()
void void
test2() test2()
{ {
bool test __attribute__((unused)) = true;
std::vector<int> v; std::vector<int> v;
v.push_back(1); v.push_back(1);
v.push_back(2); v.push_back(2);
...@@ -52,8 +48,6 @@ void swap(X&, X&) ...@@ -52,8 +48,6 @@ void swap(X&, X&)
void void
test3() test3()
{ {
bool test __attribute__((unused)) = true;
int_swap_count = 0; int_swap_count = 0;
X i, j; X i, j;
std::iter_swap(&i, &j); std::iter_swap(&i, &j);
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include <algorithm> #include <algorithm>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 3, 3, 5, 8}; const int A[] = {1, 2, 3, 3, 3, 5, 8};
const int C[] = {8, 5, 3, 3, 3, 2, 1}; const int C[] = {8, 5, 3, 3, 3, 2, 1};
const int N = sizeof(A) / sizeof(int); const int N = sizeof(A) / sizeof(int);
......
...@@ -39,8 +39,6 @@ struct X ...@@ -39,8 +39,6 @@ struct X
void void
test01() test01()
{ {
bool test __attribute((unused)) = true;
// Test with range that is partitioned, but not sorted. // Test with range that is partitioned, but not sorted.
X seq[] = { 1, 3, 5, 7, 1, 6, 4, 2 }; X seq[] = { 1, 3, 5, 7, 1, 6, 4, 2 };
test_container<X, forward_iterator_wrapper> c(seq); test_container<X, forward_iterator_wrapper> c(seq);
...@@ -71,8 +69,6 @@ struct Y ...@@ -71,8 +69,6 @@ struct Y
void void
test02() test02()
{ {
bool test __attribute((unused)) = true;
// Test that Debug Mode checks don't fire (libstdc++/71545) // Test that Debug Mode checks don't fire (libstdc++/71545)
Y seq[] = { -0.1, 1.2, 5.0, 5.2, 5.1, 5.9, 5.5, 6.0 }; Y seq[] = { -0.1, 1.2, 5.0, 5.2, 5.1, 5.9, 5.5, 6.0 };
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using __gnu_test::counter_type; using __gnu_test::counter_type;
const std::size_t nb_values = 1000; const std::size_t nb_values = 1000;
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
const int x = std::max(1, 2); const int x = std::max(1, 2);
const int y = std::max(4, 3); const int y = std::max(4, 3);
VERIFY( x == 2 ); VERIFY( x == 2 );
......
...@@ -29,8 +29,6 @@ const T A<T>::a = T(3); ...@@ -29,8 +29,6 @@ const T A<T>::a = T(3);
void test02() void test02()
{ {
bool test __attribute__((unused)) = true;
VERIFY( 3 == std::max(A<int>::a, 2) ); VERIFY( 3 == std::max(A<int>::a, 2) );
VERIFY( 4 == std::max(A<int>::a, 4) ); VERIFY( 4 == std::max(A<int>::a, 4) );
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
const int& x = std::max({1, 3, 2}); const int& x = std::max({1, 3, 2});
const int& y = std::max({4, 3, 2}); const int& y = std::max({4, 3, 2});
const int& z = std::max({3, 2, 4}); const int& z = std::max({3, 2, 4});
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
// libstdc++/37547 // libstdc++/37547
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
std::vector<int> v{1,2,3,4,5}; std::vector<int> v{1,2,3,4,5};
auto p = std::max({v}); auto p = std::max({v});
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
const int& z = std::max({1, 2, 3, 4, 5, 6, 7}); const int& z = std::max({1, 2, 3, 4, 5, 6, 7});
const double& w = std::max({2.0, 1.0, 3.2, 4.5, 5.0, 6.0, 7.0}); const double& w = std::max({2.0, 1.0, 3.2, 4.5, 5.0, 6.0, 7.0});
const int& y = std::max({2, 3, 1, 4, 5, 6, 7}); const int& y = std::max({2, 3, 1, 4, 5, 6, 7});
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
const int z = std::min(1, 2); const int z = std::min(1, 2);
const int w = std::min(4, 3); const int w = std::min(4, 3);
VERIFY( z == 1 ); VERIFY( z == 1 );
......
...@@ -29,8 +29,6 @@ const T A<T>::a = T(3); ...@@ -29,8 +29,6 @@ const T A<T>::a = T(3);
void test02() void test02()
{ {
bool test __attribute__((unused)) = true;
VERIFY( 2 == std::min(A<int>::a, 2) ); VERIFY( 2 == std::min(A<int>::a, 2) );
VERIFY( 3 == std::min(A<int>::a, 4) ); VERIFY( 3 == std::min(A<int>::a, 4) );
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
const int& z = std::min({1, 3, 2}); const int& z = std::min({1, 3, 2});
const int& w = std::min({4, 3, 5}); const int& w = std::min({4, 3, 5});
const int& y = std::min({4, 3, 2}); const int& y = std::min({4, 3, 2});
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
// libstdc++/37547 // libstdc++/37547
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
std::vector<int> v{1,2,3,4,5}; std::vector<int> v{1,2,3,4,5};
auto p = std::min({v}); auto p = std::min({v});
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
const int& z = std::min({1, 2, 3, 4, 5, 6, 7}); const int& z = std::min({1, 2, 3, 4, 5, 6, 7});
const double& w = std::min({2.0, 1.0, 3.2, 4.5, 5.0, 6.0, 7.0}); const double& w = std::min({2.0, 1.0, 3.2, 4.5, 5.0, 6.0, 7.0});
const int& y = std::min({2, 3, 1, 4, 5, 6, 7}); const int& y = std::min({2, 3, 1, 4, 5, 6, 7});
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
std::pair<const int, const int> z = std::minmax(1, 2); std::pair<const int, const int> z = std::minmax(1, 2);
std::pair<const int, const int> w = std::minmax(4, 3); std::pair<const int, const int> w = std::minmax(4, 3);
VERIFY( z.first == 1 ); VERIFY( z.first == 1 );
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
std::pair<int, int> z = std::minmax({1, 2, 3}); std::pair<int, int> z = std::minmax({1, 2, 3});
std::pair<int, int> w = std::minmax({4, 3, 5, 4}); std::pair<int, int> w = std::minmax({4, 3, 5, 4});
std::pair<int, int> y = std::minmax({4, 5, 3, 7, 3}); std::pair<int, int> y = std::minmax({4, 5, 3, 7, 3});
......
...@@ -39,8 +39,6 @@ int compare_counter::count = 0; ...@@ -39,8 +39,6 @@ int compare_counter::count = 0;
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
std::minmax({1, 2, 3, 4, 5, 6, 7, 8}, compare_counter()); std::minmax({1, 2, 3, 4, 5, 6, 7, 8}, compare_counter());
// If N is the number of arguments in the minmax function call, // If N is the number of arguments in the minmax function call,
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
// libstdc++/37547 // libstdc++/37547
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
std::vector<int> v{1,2,3,4,5}; std::vector<int> v{1,2,3,4,5};
auto p = std::minmax({v}); auto p = std::minmax({v});
......
...@@ -31,8 +31,6 @@ typedef std::pair<forward_iterator_wrapper<int>, forward_iterator_wrapper<int> > ...@@ -31,8 +31,6 @@ typedef std::pair<forward_iterator_wrapper<int>, forward_iterator_wrapper<int> >
void void
test1() test1()
{ {
bool test __attribute__((unused)) = true;
int array[] = {0}; int array[] = {0};
Container con(array, array); Container con(array, array);
pair_type p1 = minmax_element(con.begin(), con.end()); pair_type p1 = minmax_element(con.begin(), con.end());
...@@ -43,8 +41,6 @@ test1() ...@@ -43,8 +41,6 @@ test1()
void void
test2() test2()
{ {
bool test __attribute__((unused)) = true;
int array[] = {0}; int array[] = {0};
Container con(array, array + 1); Container con(array, array + 1);
pair_type p1 = minmax_element(con.begin(), con.end()); pair_type p1 = minmax_element(con.begin(), con.end());
...@@ -55,8 +51,6 @@ test2() ...@@ -55,8 +51,6 @@ test2()
void void
test3() test3()
{ {
bool test __attribute__((unused)) = true;
int array[] = {0, 3}; int array[] = {0, 3};
Container con(array, array + 2); Container con(array, array + 2);
pair_type p1 = minmax_element(con.begin(), con.end()); pair_type p1 = minmax_element(con.begin(), con.end());
...@@ -67,8 +61,6 @@ test3() ...@@ -67,8 +61,6 @@ test3()
void void
test4() test4()
{ {
bool test __attribute__((unused)) = true;
int array[] = {3, 0}; int array[] = {3, 0};
Container con(array, array + 2); Container con(array, array + 2);
pair_type p1 = minmax_element(con.begin(), con.end()); pair_type p1 = minmax_element(con.begin(), con.end());
...@@ -79,8 +71,6 @@ test4() ...@@ -79,8 +71,6 @@ test4()
void void
test5() test5()
{ {
bool test __attribute__((unused)) = true;
int array[] = {3, 3}; int array[] = {3, 3};
Container con(array, array + 2); Container con(array, array + 2);
pair_type p1 = minmax_element(con.begin(), con.end()); pair_type p1 = minmax_element(con.begin(), con.end());
...@@ -91,8 +81,6 @@ test5() ...@@ -91,8 +81,6 @@ test5()
void void
test6() test6()
{ {
bool test __attribute__((unused)) = true;
int array[] = {6, 3, 0, 2, 6, 4, 0}; int array[] = {6, 3, 0, 2, 6, 4, 0};
Container con(array, array + 7); Container con(array, array + 7);
pair_type p1 = minmax_element(con.begin(), con.end()); pair_type p1 = minmax_element(con.begin(), con.end());
...@@ -103,8 +91,6 @@ test6() ...@@ -103,8 +91,6 @@ test6()
void void
test7() test7()
{ {
bool test __attribute__((unused)) = true;
int array[] = {4, 4, 4, 6, 6, 6, 1, 1, 0, 0, 0, 2, 2}; int array[] = {4, 4, 4, 6, 6, 6, 1, 1, 0, 0, 0, 2, 2};
Container con(array, array + 13); Container con(array, array + 13);
pair_type p1 = minmax_element(con.begin(), con.end()); pair_type p1 = minmax_element(con.begin(), con.end());
...@@ -115,8 +101,6 @@ test7() ...@@ -115,8 +101,6 @@ test7()
void void
test8() test8()
{ {
bool test __attribute__((unused)) = true;
int array[] = {1, 7, 5, 5, 10, 1, 0, 0, 8, 4, 4, 0, 10, 10, 10, 1}; int array[] = {1, 7, 5, 5, 10, 1, 0, 0, 8, 4, 4, 0, 10, 10, 10, 1};
Container con(array, array + 16); Container con(array, array + 16);
pair_type p1 = minmax_element(con.begin(), con.end()); pair_type p1 = minmax_element(con.begin(), con.end());
......
...@@ -35,8 +35,6 @@ typedef test_container<rvalstruct, output_iterator_wrapper> container_out; ...@@ -35,8 +35,6 @@ typedef test_container<rvalstruct, output_iterator_wrapper> container_out;
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
const int size = sizeof(inarray) / sizeof(int); const int size = sizeof(inarray) / sizeof(int);
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
deque<long> data(200); deque<long> data(200);
......
...@@ -36,8 +36,6 @@ typedef test_container<rvalstruct, ...@@ -36,8 +36,6 @@ typedef test_container<rvalstruct,
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
const int size = sizeof(inarray) / sizeof(int); const int size = sizeof(inarray) / sizeof(int);
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
void test01() void test01()
{ {
bool test __attribute__((unused)) = true;
using namespace std; using namespace std;
deque<long> data(200); deque<long> data(200);
......
...@@ -34,8 +34,6 @@ typedef test_container<rvalstruct, bidirectional_iterator_wrapper> Container; ...@@ -34,8 +34,6 @@ typedef test_container<rvalstruct, bidirectional_iterator_wrapper> Container;
void void
test1() test1()
{ {
bool test __attribute__((unused)) = true;
// Note: The standard is unclear on what should happen in this case. // Note: The standard is unclear on what should happen in this case.
// This seems the only really sensible behaviour, and what is done. // This seems the only really sensible behaviour, and what is done.
rvalstruct array[] = {0}; rvalstruct array[] = {0};
...@@ -46,8 +44,6 @@ test1() ...@@ -46,8 +44,6 @@ test1()
void void
test2() test2()
{ {
bool test __attribute__((unused)) = true;
rvalstruct array[] = {0}; rvalstruct array[] = {0};
Container con(array, array + 1); Container con(array, array + 1);
VERIFY( !next_permutation(con.begin(), con.end()) ); VERIFY( !next_permutation(con.begin(), con.end()) );
...@@ -56,8 +52,6 @@ test2() ...@@ -56,8 +52,6 @@ test2()
void void
test3() test3()
{ {
bool test __attribute__((unused)) = true;
rvalstruct array[] = {0, 3}; rvalstruct array[] = {0, 3};
Container con(array, array + 2); Container con(array, array + 2);
VERIFY( next_permutation(con.begin(), con.end()) ); VERIFY( next_permutation(con.begin(), con.end()) );
...@@ -69,8 +63,6 @@ test3() ...@@ -69,8 +63,6 @@ test3()
void void
test4() test4()
{ {
bool test __attribute__((unused)) = true;
int array[6] = {0, 1, 2, 3, 4, 5}; int array[6] = {0, 1, 2, 3, 4, 5};
for(int i = 0 ; i < 719; ++i) for(int i = 0 ; i < 719; ++i)
{ {
...@@ -98,8 +90,6 @@ are_ordered(const rvalstruct& lhs, const rvalstruct& rhs) ...@@ -98,8 +90,6 @@ are_ordered(const rvalstruct& lhs, const rvalstruct& rhs)
void void
test5() test5()
{ {
bool test __attribute__((unused)) = true;
int array[6] = {0, 1, 2, 3, 4, 5}; int array[6] = {0, 1, 2, 3, 4, 5};
for(int i = 0 ; i < 719; ++i) for(int i = 0 ; i < 719; ++i)
{ {
......
...@@ -36,8 +36,6 @@ predicate(const int& i) ...@@ -36,8 +36,6 @@ predicate(const int& i)
void void
test1() test1()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array); Container con(array, array);
VERIFY( std::none_of(con.begin(), con.end(), predicate) ); VERIFY( std::none_of(con.begin(), con.end(), predicate) );
} }
...@@ -45,8 +43,6 @@ test1() ...@@ -45,8 +43,6 @@ test1()
void void
test2() test2()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array + 1); Container con(array, array + 1);
VERIFY( std::none_of(con.begin(), con.end(), predicate) ); VERIFY( std::none_of(con.begin(), con.end(), predicate) );
} }
...@@ -54,8 +50,6 @@ test2() ...@@ -54,8 +50,6 @@ test2()
void void
test3() test3()
{ {
bool test __attribute__((unused)) = true;
Container con(array, array + 6); Container con(array, array + 6);
VERIFY( !std::none_of(con.begin(), con.end(), predicate) ); VERIFY( !std::none_of(con.begin(), con.end(), predicate) );
} }
......
...@@ -48,7 +48,6 @@ test2() ...@@ -48,7 +48,6 @@ test2()
void void
test3() test3()
{ {
bool test __attribute__((unused)) = true;
int array[] = {6, 5, 4, 3, 2, 1, 0}; int array[] = {6, 5, 4, 3, 2, 1, 0};
Container con(array, array + 7); Container con(array, array + 7);
nth_element(con.begin(), con.it(3), con.end()); nth_element(con.begin(), con.it(3), con.end());
...@@ -61,7 +60,6 @@ test3() ...@@ -61,7 +60,6 @@ test3()
void void
test4() test4()
{ {
bool test __attribute__((unused)) = true;
int array[] = {0, 6, 1, 5, 2, 4, 3}; int array[] = {0, 6, 1, 5, 2, 4, 3};
Container con(array,array + 7); Container con(array,array + 7);
nth_element(con.begin(), con.it(3), con.end()); nth_element(con.begin(), con.it(3), con.end());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment