From 1558d39e1cb361736d5b9515a135f4c13a578b04 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 14 Oct 2016 13:50:24 +0000 Subject: [PATCH] 1.cc: Remove 'test' variables. 2016-10-14 Paolo Carlini * testsuite/26_numerics/accumulate/1.cc: Remove 'test' variables. * testsuite/26_numerics/adjacent_difference/1.cc: Likewise. * testsuite/26_numerics/complex/13450.cc: Likewise. * testsuite/26_numerics/complex/50880.cc: Likewise. * testsuite/26_numerics/complex/c99.cc: Likewise. * testsuite/26_numerics/complex/cons/48760.cc: Likewise. * testsuite/26_numerics/complex/cons/48760_c++0x.cc: Likewise. * testsuite/26_numerics/complex/dr781_dr1137.cc: Likewise. * testsuite/26_numerics/complex/dr844.cc: Likewise. * testsuite/26_numerics/complex/inserters_extractors/char/1.cc: Likewise. * testsuite/26_numerics/complex/inserters_extractors/wchar_t/1.cc: Likewise. * testsuite/26_numerics/complex/value_operations/1.cc: Likewise. * testsuite/26_numerics/complex/value_operations/dr387.cc: Likewise. * testsuite/26_numerics/headers/cmath/19322.cc: Likewise. * testsuite/26_numerics/headers/cmath/ c99_classification_macros_c++11.c: Likewise.c * testsuite/26_numerics/headers/cmath/ c99_classification_macros_c++98.cc: Likewise. * testsuite/26_numerics/headers/cmath/c_math.cc: Likewise. * testsuite/26_numerics/headers/cmath/dr550.cc: Likewise. * testsuite/26_numerics/headers/cmath/hypot.cc: Likewise. * testsuite/26_numerics/headers/cmath/powi.cc: Likewise. * testsuite/26_numerics/headers/cstdlib/13943.cc: Likewise. * testsuite/26_numerics/inner_product/1.cc: Likewise. * testsuite/26_numerics/iota/1.cc: Likewise. * testsuite/26_numerics/partial_sum/1.cc: Likewise. * testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc: Likewise. * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc: Likewise. * testsuite/26_numerics/random/bernoulli_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/bernoulli_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/binomial_distribution/cons/default.cc: Likewise. * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc: Likewise. * testsuite/26_numerics/random/binomial_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/binomial_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/cauchy_distribution/cons/default.cc: Likewise. * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc: Likewise. * testsuite/26_numerics/random/cauchy_distribution/operators/equal.cc: Likewise. * testsuite/26_numerics/random/cauchy_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/chi_squared_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/chi_squared_distribution/cons/ parms.cc: Likewise. * testsuite/26_numerics/random/chi_squared_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/chi_squared_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/default_random_engine.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/cons/55215.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/operators/equal.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/operators/ serialize.cc: Likewise. * testsuite/26_numerics/random/discrete_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/discrete_distribution/cons/ initlist.cc: Likewise. * testsuite/26_numerics/random/discrete_distribution/cons/ num_xbound_fun.cc: Likewise. * testsuite/26_numerics/random/discrete_distribution/cons/range.cc: Likewise. * testsuite/26_numerics/random/discrete_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/discrete_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/exponential_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/exponential_distribution/cons/ parms.cc: Likewise. * testsuite/26_numerics/random/exponential_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/exponential_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/extreme_value_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/extreme_value_distribution/cons/ parms.cc: Likewise. * testsuite/26_numerics/random/extreme_value_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/extreme_value_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc: Likewise. * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc: Likewise. * testsuite/26_numerics/random/fisher_f_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/fisher_f_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/gamma_distribution/cons/default.cc: Likewise. * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc: Likewise. * testsuite/26_numerics/random/gamma_distribution/operators/equal.cc: Likewise. * testsuite/26_numerics/random/gamma_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/geometric_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc: Likewise. * testsuite/26_numerics/random/geometric_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/geometric_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/cons/55215.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/operators/ serialize.cc: Likewise. * testsuite/26_numerics/random/knuth_b.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/cons/ 55215.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/cons/ default.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/operators/ 51795.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/operators/ serialize.cc: Likewise. * testsuite/26_numerics/random/lognormal_distribution/cons/default.cc: Likewise. * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc: Likewise. * testsuite/26_numerics/random/lognormal_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/lognormal_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/cons/55215.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/cons/ default.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/operators/ serialize.cc: Likewise. * testsuite/26_numerics/random/minstd_rand.cc: Likewise. * testsuite/26_numerics/random/minstd_rand0.cc: Likewise. * testsuite/26_numerics/random/mt19937.cc: Likewise. * testsuite/26_numerics/random/mt19937_64.cc: Likewise. * testsuite/26_numerics/random/negative_binomial_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/negative_binomial_distribution/cons/ parms.cc: Likewise. * testsuite/26_numerics/random/negative_binomial_distribution/ operators/equal.cc: Likewise. * testsuite/26_numerics/random/negative_binomial_distribution/ operators/inequal.cc: Likewise. * testsuite/26_numerics/random/normal_distribution/cons/default.cc: Likewise. * testsuite/26_numerics/random/normal_distribution/cons/parms.cc: Likewise. * testsuite/26_numerics/random/normal_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/normal_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/piecewise_constant_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/piecewise_constant_distribution/cons/ initlist_fun.cc: Likewise. * testsuite/26_numerics/random/piecewise_constant_distribution/cons/ num_xbound_fun.cc: Likewise. * testsuite/26_numerics/random/piecewise_constant_distribution/cons/ range.cc: Likewise. * testsuite/26_numerics/random/piecewise_constant_distribution/ operators/equal.cc: Likewise. * testsuite/26_numerics/random/piecewise_constant_distribution/ operators/inequal.cc: Likewise. * testsuite/26_numerics/random/piecewise_linear_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/piecewise_linear_distribution/cons/ initlist_fun.cc: Likewise. * testsuite/26_numerics/random/piecewise_linear_distribution/cons/ num_xbound_fun.cc: Likewise. * testsuite/26_numerics/random/piecewise_linear_distribution/cons/ range.cc: Likewise. * testsuite/26_numerics/random/piecewise_linear_distribution/ operators/equal.cc: Likewise. * testsuite/26_numerics/random/piecewise_linear_distribution/ operators/inequal.cc: Likewise. * testsuite/26_numerics/random/poisson_distribution/cons/default.cc: Likewise. * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc: Likewise. * testsuite/26_numerics/random/poisson_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/poisson_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/random_device/cons/default.cc: Likewise. * testsuite/26_numerics/random/random_device/cons/token.cc: Likewise. * testsuite/26_numerics/random/ranlux24.cc: Likewise. * testsuite/26_numerics/random/ranlux24_base.cc: Likewise. * testsuite/26_numerics/random/ranlux48.cc: Likewise. * testsuite/26_numerics/random/ranlux48_base.cc: Likewise. * testsuite/26_numerics/random/seed_seq/cons/initlist.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/cons/55215.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/operators/ serialize.cc: Likewise. * testsuite/26_numerics/random/student_t_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/student_t_distribution/cons/ parms.cc: Likewise. * testsuite/26_numerics/random/student_t_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/student_t_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/cons/ 55215.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/cons/ default.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/operators/ serialize.cc: Likewise. * testsuite/26_numerics/random/uniform_int_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/uniform_int_distribution/cons/ parms.cc: Likewise. * testsuite/26_numerics/random/uniform_int_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/uniform_int_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/uniform_real_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/uniform_real_distribution/cons/ parms.cc: Likewise. * testsuite/26_numerics/random/uniform_real_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/uniform_real_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/random/weibull_distribution/cons/default.cc: Likewise. * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc: Likewise. * testsuite/26_numerics/random/weibull_distribution/operators/ equal.cc: Likewise. * testsuite/26_numerics/random/weibull_distribution/operators/ inequal.cc: Likewise. * testsuite/26_numerics/slice/1.cc: Likewise. * testsuite/26_numerics/slice_array/array_assignment.cc: Likewise. * testsuite/26_numerics/valarray/27867.cc: Likewise. * testsuite/26_numerics/valarray/28277.cc: Likewise. * testsuite/26_numerics/valarray/30416.cc: Likewise. * testsuite/26_numerics/valarray/dr543.cc: Likewise. * testsuite/26_numerics/valarray/dr630-1.cc: Likewise. * testsuite/26_numerics/valarray/dr630-2.cc: Likewise. * testsuite/26_numerics/valarray/dr630-3.C: Likewise. * testsuite/26_numerics/valarray/init-list.cc: Likewise. * testsuite/26_numerics/valarray/moveable.cc: Likewise. * testsuite/26_numerics/valarray/operators.cc: Likewise. * testsuite/26_numerics/valarray/swap.cc: Likewise. * testsuite/experimental/deque/erasure.cc: Likewise. * testsuite/experimental/filesystem/iterators/directory_iterator.cc: Likewise. * testsuite/experimental/filesystem/iterators/ recursive_directory_iterator.cc: Likewise. * testsuite/experimental/filesystem/operations/absolute.cc: Likewise. * testsuite/experimental/filesystem/operations/canonical.cc: Likewise. * testsuite/experimental/filesystem/operations/copy.cc: Likewise. * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise. * testsuite/experimental/filesystem/operations/create_directories.cc: Likewise. * testsuite/experimental/filesystem/operations/create_directory.cc: Likewise. * testsuite/experimental/filesystem/operations/current_path.cc: Likewise. * testsuite/experimental/filesystem/operations/exists.cc: Likewise. * testsuite/experimental/filesystem/operations/file_size.cc: Likewise. * testsuite/experimental/filesystem/operations/last_write_time.cc: Likewise. * testsuite/experimental/filesystem/operations/permissions.cc: Likewise. * testsuite/experimental/filesystem/operations/status.cc: Likewise. * testsuite/experimental/filesystem/operations/temp_directory_path.cc: Likewise. * testsuite/experimental/filesystem/path/native/string.cc: Likewise. * testsuite/experimental/forward_list/erasure.cc: Likewise. * testsuite/experimental/list/erasure.cc: Likewise. * testsuite/experimental/map/erasure.cc: Likewise. * testsuite/experimental/memory/shared_ptr/assign/assign.cc: Likewise. * testsuite/experimental/memory/shared_ptr/comparison/comparison.cc: Likewise. * testsuite/experimental/memory/shared_ptr/cons/alias_ctor.cc: Likewise. * testsuite/experimental/memory/shared_ptr/cons/alloc_ctor.cc: Likewise. * testsuite/experimental/memory/shared_ptr/cons/copy_ctor.cc: Likewise. * testsuite/experimental/memory/shared_ptr/cons/default_ctor.cc: Likewise. * testsuite/experimental/memory/shared_ptr/cons/move_ctor.cc: Likewise. * testsuite/experimental/memory/shared_ptr/cons/pointer_ctor.cc: Likewise. * testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc: Likewise. * testsuite/experimental/memory/shared_ptr/cons/weak_ptr_ctor.cc: Likewise. * testsuite/experimental/memory/shared_ptr/dest/dest.cc: Likewise. * testsuite/experimental/memory/shared_ptr/modifiers/reset.cc: Likewise. * testsuite/experimental/memory/shared_ptr/modifiers/swap.cc: Likewise. * testsuite/experimental/memory/shared_ptr/observers/bool_conv.cc: Likewise. * testsuite/experimental/memory/shared_ptr/observers/operators.cc: Likewise. * testsuite/experimental/memory/shared_ptr/observers/owner_before.cc: Likewise. * testsuite/experimental/memory/shared_ptr/observers/use_count.cc: Likewise. * testsuite/experimental/memory_resource/1.cc: Likewise. * testsuite/experimental/memory_resource/null_memory_resource.cc: Likewise. * testsuite/experimental/memory_resource/resource_adaptor.cc: Likewise. * testsuite/experimental/set/erasure.cc: Likewise. * testsuite/experimental/string/erasure.cc: Likewise. * testsuite/experimental/string_view/capacity/1.cc: Likewise. * testsuite/experimental/string_view/cons/char/1.cc: Likewise. * testsuite/experimental/string_view/cons/char/2.cc: Likewise. * testsuite/experimental/string_view/cons/char/3.cc: Likewise. * testsuite/experimental/string_view/cons/wchar_t/1.cc: Likewise. * testsuite/experimental/string_view/cons/wchar_t/2.cc: Likewise. * testsuite/experimental/string_view/cons/wchar_t/3.cc: Likewise. * testsuite/experimental/string_view/element_access/char/1.cc: Likewise. * testsuite/experimental/string_view/element_access/char/empty.cc: Likewise. * testsuite/experimental/string_view/element_access/char/ front_back.cc: Likewise. * testsuite/experimental/string_view/element_access/wchar_t/1.cc: Likewise. * testsuite/experimental/string_view/element_access/wchar_t/empty.cc: Likewise. * testsuite/experimental/string_view/element_access/wchar_t/ front_back.cc: Likewise. * testsuite/experimental/string_view/inserters/char/1.cc: Likewise. * testsuite/experimental/string_view/inserters/char/2.cc: Likewise. * testsuite/experimental/string_view/inserters/char/3.cc: Likewise. * testsuite/experimental/string_view/inserters/pod/10081-out.cc: Likewise. * testsuite/experimental/string_view/inserters/wchar_t/1.cc: Likewise. * testsuite/experimental/string_view/inserters/wchar_t/2.cc: Likewise. * testsuite/experimental/string_view/inserters/wchar_t/3.cc: Likewise. * testsuite/experimental/string_view/modifiers/remove_prefix/char/ 1.cc: Likewise. * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/ 1.cc: Likewise. * testsuite/experimental/string_view/modifiers/remove_suffix/char/ 1.cc: Likewise. * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/ 1.cc: Likewise. * testsuite/experimental/string_view/operations/compare/char/1.cc: Likewise. * testsuite/experimental/string_view/operations/compare/char/ 13650.cc: Likewise. * testsuite/experimental/string_view/operations/compare/wchar_t/ 1.cc: Likewise. * testsuite/experimental/string_view/operations/compare/wchar_t/ 13650.cc: Likewise. * testsuite/experimental/string_view/operations/copy/char/1.cc: Likewise. * testsuite/experimental/string_view/operations/copy/wchar_t/1.cc: Likewise. * testsuite/experimental/string_view/operations/data/char/1.cc: Likewise. * testsuite/experimental/string_view/operations/data/wchar_t/1.cc: Likewise. * testsuite/experimental/string_view/operations/find/char/1.cc: Likewise. * testsuite/experimental/string_view/operations/find/char/2.cc: Likewise. * testsuite/experimental/string_view/operations/find/char/3.cc: Likewise. * testsuite/experimental/string_view/operations/find/char/4.cc: Likewise. * testsuite/experimental/string_view/operations/find/wchar_t/1.cc: Likewise. * testsuite/experimental/string_view/operations/find/wchar_t/2.cc: Likewise. * testsuite/experimental/string_view/operations/find/wchar_t/3.cc: Likewise. * testsuite/experimental/string_view/operations/find/wchar_t/4.cc: Likewise. * testsuite/experimental/string_view/operations/rfind/char/1.cc: Likewise. * testsuite/experimental/string_view/operations/rfind/char/2.cc: Likewise. * testsuite/experimental/string_view/operations/rfind/char/3.cc: Likewise. * testsuite/experimental/string_view/operations/rfind/wchar_t/1.cc: Likewise. * testsuite/experimental/string_view/operations/rfind/wchar_t/2.cc: Likewise. * testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc: Likewise. * testsuite/experimental/string_view/operations/substr/char/1.cc: Likewise. * testsuite/experimental/string_view/operations/substr/wchar_t/1.cc: Likewise. * testsuite/experimental/string_view/operations/to_string/1.cc: Likewise. * testsuite/experimental/string_view/operators/char/2.cc: Likewise. * testsuite/experimental/string_view/operators/wchar_t/2.cc: Likewise. * testsuite/experimental/unordered_map/erasure.cc: Likewise. * testsuite/experimental/unordered_set/erasure.cc: Likewise. * testsuite/experimental/vector/erasure.cc: Likewise. * testsuite/ext/array_allocator/1.cc: Likewise. * testsuite/ext/array_allocator/2.cc: Likewise. * testsuite/ext/array_allocator/3.cc: Likewise. * testsuite/ext/array_allocator/variadic_construct.cc: Likewise. * testsuite/ext/bitmap_allocator/variadic_construct.cc: Likewise. * testsuite/ext/codecvt/1.cc: Likewise. * testsuite/ext/codecvt/char-1.cc: Likewise. * testsuite/ext/codecvt/char-2.cc: Likewise. * testsuite/ext/codecvt/wchar_t.cc: Likewise. * testsuite/ext/enc_filebuf/char/13189.cc: Likewise. * testsuite/ext/enc_filebuf/char/13598.cc: Likewise. * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise. * testsuite/ext/ext_pointer/1.cc: Likewise. * testsuite/ext/ext_pointer/1_neg.cc: Likewise. * testsuite/ext/malloc_allocator/variadic_construct.cc: Likewise. * testsuite/ext/mt_allocator/check_allocate_big_per_type.cc: Likewise. * testsuite/ext/mt_allocator/tune-1.cc: Likewise. * testsuite/ext/mt_allocator/tune-2.cc: Likewise. * testsuite/ext/mt_allocator/tune-3.cc: Likewise. * testsuite/ext/mt_allocator/tune-4.cc: Likewise. * testsuite/ext/mt_allocator/variadic_construct.cc: Likewise. * testsuite/ext/new_allocator/variadic_construct.cc: Likewise. * testsuite/ext/pod_char_traits.cc: Likewise. * testsuite/ext/pool_allocator/variadic_construct.cc: Likewise. * testsuite/ext/random/arcsine_distribution/cons/default.cc: Likewise. * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise. * testsuite/ext/random/arcsine_distribution/operators/equal.cc: Likewise. * testsuite/ext/random/arcsine_distribution/operators/inequal.cc: Likewise. * testsuite/ext/random/arcsine_distribution/operators/serialize.cc: Likewise. * testsuite/ext/random/beta_distribution/cons/default.cc: Likewise. * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise. * testsuite/ext/random/beta_distribution/operators/equal.cc: Likewise. * testsuite/ext/random/beta_distribution/operators/inequal.cc: Likewise. * testsuite/ext/random/hoyt_distribution/cons/default.cc: Likewise. * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise. * testsuite/ext/random/hoyt_distribution/operators/equal.cc: Likewise. * testsuite/ext/random/hoyt_distribution/operators/inequal.cc: Likewise. * testsuite/ext/random/hoyt_distribution/operators/serialize.cc: Likewise. * testsuite/ext/random/hypergeometric_distribution/cons/default.cc: Likewise. * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc: Likewise. * testsuite/ext/random/hypergeometric_distribution/operators/ equal.cc: Likewise. * testsuite/ext/random/hypergeometric_distribution/operators/ inequal.cc: Likewise. * testsuite/ext/random/hypergeometric_distribution/operators/ serialize.cc: Likewise. * testsuite/ext/random/k_distribution/cons/default.cc: Likewise. * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise. * testsuite/ext/random/k_distribution/operators/equal.cc: Likewise. * testsuite/ext/random/k_distribution/operators/inequal.cc: Likewise. * testsuite/ext/random/k_distribution/operators/serialize.cc: Likewise. * testsuite/ext/random/logistic_distribution/cons/default.cc: Likewise. * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise. * testsuite/ext/random/logistic_distribution/operators/equal.cc: Likewise. * testsuite/ext/random/logistic_distribution/operators/inequal.cc: Likewise. * testsuite/ext/random/logistic_distribution/operators/serialize.cc: Likewise. * testsuite/ext/random/nakagami_distribution/cons/default.cc: Likewise. * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise. * testsuite/ext/random/nakagami_distribution/operators/equal.cc: Likewise. * testsuite/ext/random/nakagami_distribution/operators/inequal.cc: Likewise. * testsuite/ext/random/nakagami_distribution/operators/serialize.cc: Likewise. * testsuite/ext/random/normal_mv_distribution/cons/default.cc: Likewise. * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise. * testsuite/ext/random/normal_mv_distribution/operators/equal.cc: Likewise. * testsuite/ext/random/normal_mv_distribution/operators/inequal.cc: Likewise. * testsuite/ext/random/pareto_distribution/cons/default.cc: Likewise. * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise. * testsuite/ext/random/pareto_distribution/operators/equal.cc: Likewise. * testsuite/ext/random/pareto_distribution/operators/inequal.cc: Likewise. * testsuite/ext/random/pareto_distribution/operators/serialize.cc: Likewise. * testsuite/ext/random/rice_distribution/cons/default.cc: Likewise. * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise. * testsuite/ext/random/rice_distribution/operators/equal.cc: Likewise. * testsuite/ext/random/rice_distribution/operators/inequal.cc: Likewise. * testsuite/ext/random/rice_distribution/operators/serialize.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/ default.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/ equal.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/ inequal.cc: Likewise. * testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/ serialize.cc: Likewise. * testsuite/ext/random/triangular_distribution/cons/default.cc: Likewise. * testsuite/ext/random/triangular_distribution/cons/parms.cc: Likewise. * testsuite/ext/random/triangular_distribution/operators/equal.cc: Likewise. * testsuite/ext/random/triangular_distribution/operators/inequal.cc: Likewise. * testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc: Likewise. * testsuite/ext/random/uniform_on_sphere_distribution/operators/ equal.cc: Likewise. * testsuite/ext/random/uniform_on_sphere_distribution/operators/ generate.cc: Likewise. * testsuite/ext/random/uniform_on_sphere_distribution/operators/ inequal.cc: Likewise. * testsuite/ext/random/uniform_on_sphere_distribution/operators/ serialize.cc: Likewise. * testsuite/ext/random/von_mises_distribution/cons/default.cc: Likewise. * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise. * testsuite/ext/random/von_mises_distribution/operators/equal.cc: Likewise. * testsuite/ext/random/von_mises_distribution/operators/inequal.cc: Likewise. * testsuite/ext/rope/2.cc: Likewise. * testsuite/ext/rope/3.cc: Likewise. * testsuite/ext/rope/4.cc: Likewise. * testsuite/ext/rope/pthread7-rope.cc: Likewise. * testsuite/ext/special_functions/conf_hyperg/check_nan.cc: Likewise. * testsuite/ext/special_functions/conf_hyperg/check_value.cc: Likewise. * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise. * testsuite/ext/special_functions/hyperg/check_value.cc: Likewise. * testsuite/ext/stdio_filebuf/char/10063-1.cc: Likewise. * testsuite/ext/stdio_filebuf/char/10063-2.cc: Likewise. * testsuite/ext/stdio_filebuf/char/10063-3.cc: Likewise. * testsuite/ext/stdio_filebuf/char/2.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/char/1.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: Likewise. * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: Likewise. * testsuite/ext/throw_allocator/variadic_construct.cc: Likewise. * testsuite/ext/type_traits/add_unsigned.cc: Likewise. * testsuite/ext/type_traits/remove_unsigned.cc: Likewise. * testsuite/ext/vstring/capacity/29134.cc: Likewise. * testsuite/ext/vstring/capacity/shrink_to_fit.cc: Likewise. * testsuite/ext/vstring/cons/58415-1.cc: Likewise. * testsuite/ext/vstring/cons/moveable.cc: Likewise. * testsuite/ext/vstring/element_access/char/58163.cc: Likewise. * testsuite/ext/vstring/element_access/char/front_back.cc: Likewise. * testsuite/ext/vstring/element_access/wchar_t/58163.cc: Likewise. * testsuite/ext/vstring/element_access/wchar_t/front_back.cc: Likewise. * testsuite/ext/vstring/hash/char/1.cc: Likewise. * testsuite/ext/vstring/hash/wchar_t/1.cc: Likewise. * testsuite/ext/vstring/init-list.cc: Likewise. * testsuite/ext/vstring/inserters_extractors/char/28277.cc: Likewise. * testsuite/ext/vstring/inserters_extractors/wchar_t/28277.cc: Likewise. * testsuite/ext/vstring/modifiers/assign/move_assign.cc: Likewise. * testsuite/ext/vstring/modifiers/pop_back/char/1.cc: Likewise. * testsuite/ext/vstring/modifiers/pop_back/wchar_t/1.cc: Likewise. * testsuite/ext/vstring/operators/1.cc: Likewise. * testsuite/ext/vstring/operators/2.cc: Likewise. From-SVN: r241164 --- libstdc++-v3/ChangeLog | 600 ++++++++++++++++++ .../testsuite/26_numerics/accumulate/1.cc | 4 - .../26_numerics/adjacent_difference/1.cc | 2 - .../testsuite/26_numerics/complex/13450.cc | 1 - .../testsuite/26_numerics/complex/50880.cc | 2 - .../testsuite/26_numerics/complex/c99.cc | 2 - .../26_numerics/complex/cons/48760.cc | 2 - .../26_numerics/complex/cons/48760_c++0x.cc | 2 - .../26_numerics/complex/dr781_dr1137.cc | 1 - .../testsuite/26_numerics/complex/dr844.cc | 1 - .../complex/inserters_extractors/char/1.cc | 5 - .../complex/inserters_extractors/wchar_t/1.cc | 5 - .../26_numerics/complex/value_operations/1.cc | 1 - .../complex/value_operations/dr387.cc | 2 - .../26_numerics/headers/cmath/19322.cc | 2 - .../cmath/c99_classification_macros_c++11.cc | 2 - .../cmath/c99_classification_macros_c++98.cc | 2 - .../26_numerics/headers/cmath/c_math.cc | 3 +- .../26_numerics/headers/cmath/dr550.cc | 1 - .../26_numerics/headers/cmath/hypot.cc | 1 - .../26_numerics/headers/cmath/powi.cc | 1 - .../26_numerics/headers/cstdlib/13943.cc | 1 - .../testsuite/26_numerics/inner_product/1.cc | 4 - libstdc++-v3/testsuite/26_numerics/iota/1.cc | 2 - .../testsuite/26_numerics/partial_sum/1.cc | 2 - .../bernoulli_distribution/cons/default.cc | 2 - .../bernoulli_distribution/cons/parms.cc | 2 - .../bernoulli_distribution/operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../binomial_distribution/cons/default.cc | 2 - .../binomial_distribution/cons/parms.cc | 2 - .../binomial_distribution/operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../cauchy_distribution/cons/default.cc | 2 - .../random/cauchy_distribution/cons/parms.cc | 2 - .../cauchy_distribution/operators/equal.cc | 2 - .../cauchy_distribution/operators/inequal.cc | 2 - .../chi_squared_distribution/cons/default.cc | 2 - .../chi_squared_distribution/cons/parms.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../random/default_random_engine.cc | 2 - .../random/discard_block_engine/cons/55215.cc | 2 - .../discard_block_engine/operators/equal.cc | 2 - .../discard_block_engine/operators/inequal.cc | 2 - .../operators/serialize.cc | 2 - .../discrete_distribution/cons/default.cc | 2 - .../discrete_distribution/cons/initlist.cc | 2 - .../cons/num_xbound_fun.cc | 2 - .../discrete_distribution/cons/range.cc | 2 - .../discrete_distribution/operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../exponential_distribution/cons/default.cc | 2 - .../exponential_distribution/cons/parms.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../cons/default.cc | 2 - .../extreme_value_distribution/cons/parms.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../fisher_f_distribution/cons/default.cc | 2 - .../fisher_f_distribution/cons/parms.cc | 2 - .../fisher_f_distribution/operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../random/gamma_distribution/cons/default.cc | 2 - .../random/gamma_distribution/cons/parms.cc | 2 - .../gamma_distribution/operators/equal.cc | 2 - .../gamma_distribution/operators/inequal.cc | 2 - .../geometric_distribution/cons/default.cc | 2 - .../geometric_distribution/cons/parms.cc | 2 - .../geometric_distribution/operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../independent_bits_engine/cons/55215.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../operators/serialize.cc | 2 - .../testsuite/26_numerics/random/knuth_b.cc | 2 - .../linear_congruential_engine/cons/55215.cc | 2 - .../cons/default.cc | 2 - .../operators/51795.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../operators/serialize.cc | 2 - .../lognormal_distribution/cons/default.cc | 2 - .../lognormal_distribution/cons/parms.cc | 2 - .../lognormal_distribution/operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../mersenne_twister_engine/cons/55215.cc | 2 - .../mersenne_twister_engine/cons/default.cc | 1 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../operators/serialize.cc | 2 - .../26_numerics/random/minstd_rand.cc | 2 - .../26_numerics/random/minstd_rand0.cc | 2 - .../testsuite/26_numerics/random/mt19937.cc | 2 - .../26_numerics/random/mt19937_64.cc | 2 - .../cons/default.cc | 2 - .../cons/parms.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../normal_distribution/cons/default.cc | 2 - .../random/normal_distribution/cons/parms.cc | 2 - .../normal_distribution/operators/equal.cc | 2 - .../normal_distribution/operators/inequal.cc | 2 - .../cons/default.cc | 2 - .../cons/initlist_fun.cc | 2 - .../cons/num_xbound_fun.cc | 2 - .../cons/range.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../cons/default.cc | 2 - .../cons/initlist_fun.cc | 2 - .../cons/num_xbound_fun.cc | 2 - .../cons/range.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../poisson_distribution/cons/default.cc | 2 - .../random/poisson_distribution/cons/parms.cc | 2 - .../poisson_distribution/operators/equal.cc | 2 - .../poisson_distribution/operators/inequal.cc | 2 - .../random/random_device/cons/default.cc | 2 - .../random/random_device/cons/token.cc | 2 - .../testsuite/26_numerics/random/ranlux24.cc | 2 - .../26_numerics/random/ranlux24_base.cc | 2 - .../testsuite/26_numerics/random/ranlux48.cc | 2 - .../26_numerics/random/ranlux48_base.cc | 2 - .../random/seed_seq/cons/initlist.cc | 2 - .../random/shuffle_order_engine/cons/55215.cc | 2 - .../shuffle_order_engine/operators/equal.cc | 2 - .../shuffle_order_engine/operators/inequal.cc | 2 - .../operators/serialize.cc | 2 - .../student_t_distribution/cons/default.cc | 2 - .../student_t_distribution/cons/parms.cc | 2 - .../student_t_distribution/operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../subtract_with_carry_engine/cons/55215.cc | 2 - .../cons/default.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../operators/serialize.cc | 2 - .../uniform_int_distribution/cons/default.cc | 2 - .../uniform_int_distribution/cons/parms.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../uniform_real_distribution/cons/default.cc | 2 - .../uniform_real_distribution/cons/parms.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../weibull_distribution/cons/default.cc | 2 - .../random/weibull_distribution/cons/parms.cc | 2 - .../weibull_distribution/operators/equal.cc | 2 - .../weibull_distribution/operators/inequal.cc | 2 - libstdc++-v3/testsuite/26_numerics/slice/1.cc | 1 - .../slice_array/array_assignment.cc | 1 - .../testsuite/26_numerics/valarray/27867.cc | 2 - .../testsuite/26_numerics/valarray/28277.cc | 2 - .../testsuite/26_numerics/valarray/30416.cc | 1 - .../testsuite/26_numerics/valarray/dr543.cc | 2 - .../testsuite/26_numerics/valarray/dr630-1.cc | 1 - .../testsuite/26_numerics/valarray/dr630-2.cc | 1 - .../testsuite/26_numerics/valarray/dr630-3.C | 2 - .../26_numerics/valarray/init-list.cc | 6 +- .../26_numerics/valarray/moveable.cc | 2 - .../26_numerics/valarray/operators.cc | 2 - .../testsuite/26_numerics/valarray/swap.cc | 2 - .../testsuite/experimental/deque/erasure.cc | 4 - .../iterators/directory_iterator.cc | 9 - .../iterators/recursive_directory_iterator.cc | 9 - .../filesystem/operations/absolute.cc | 4 - .../filesystem/operations/canonical.cc | 4 - .../filesystem/operations/copy.cc | 10 - .../filesystem/operations/copy_file.cc | 1 - .../operations/create_directories.cc | 1 - .../filesystem/operations/create_directory.cc | 1 - .../filesystem/operations/current_path.cc | 4 - .../filesystem/operations/exists.cc | 6 - .../filesystem/operations/file_size.cc | 4 - .../filesystem/operations/last_write_time.cc | 1 - .../filesystem/operations/permissions.cc | 1 - .../filesystem/operations/status.cc | 4 - .../operations/temp_directory_path.cc | 4 - .../filesystem/path/native/string.cc | 4 - .../experimental/forward_list/erasure.cc | 4 - .../testsuite/experimental/list/erasure.cc | 4 - .../testsuite/experimental/map/erasure.cc | 4 - .../memory/shared_ptr/assign/assign.cc | 3 - .../shared_ptr/comparison/comparison.cc | 4 - .../memory/shared_ptr/cons/alias_ctor.cc | 6 +- .../memory/shared_ptr/cons/alloc_ctor.cc | 1 - .../memory/shared_ptr/cons/copy_ctor.cc | 6 - .../memory/shared_ptr/cons/default_ctor.cc | 2 - .../memory/shared_ptr/cons/move_ctor.cc | 5 - .../memory/shared_ptr/cons/pointer_ctor.cc | 6 - .../memory/shared_ptr/cons/unique_ptr_ctor.cc | 2 - .../memory/shared_ptr/cons/weak_ptr_ctor.cc | 2 - .../memory/shared_ptr/dest/dest.cc | 3 - .../memory/shared_ptr/modifiers/reset.cc | 6 - .../memory/shared_ptr/modifiers/swap.cc | 2 - .../memory/shared_ptr/observers/bool_conv.cc | 6 - .../memory/shared_ptr/observers/operators.cc | 6 - .../shared_ptr/observers/owner_before.cc | 6 - .../memory/shared_ptr/observers/use_count.cc | 6 - .../experimental/memory_resource/1.cc | 8 - .../memory_resource/null_memory_resource.cc | 2 - .../memory_resource/resource_adaptor.cc | 1 - .../testsuite/experimental/set/erasure.cc | 4 - .../testsuite/experimental/string/erasure.cc | 4 - .../experimental/string_view/capacity/1.cc | 2 - .../experimental/string_view/cons/char/1.cc | 1 - .../experimental/string_view/cons/char/2.cc | 1 - .../experimental/string_view/cons/char/3.cc | 3 - .../string_view/cons/wchar_t/1.cc | 1 - .../string_view/cons/wchar_t/2.cc | 1 - .../string_view/cons/wchar_t/3.cc | 3 - .../string_view/element_access/char/1.cc | 6 +- .../string_view/element_access/char/empty.cc | 2 - .../element_access/char/front_back.cc | 2 - .../string_view/element_access/wchar_t/1.cc | 6 +- .../element_access/wchar_t/empty.cc | 2 - .../element_access/wchar_t/front_back.cc | 2 - .../string_view/inserters/char/1.cc | 6 +- .../string_view/inserters/char/2.cc | 6 +- .../string_view/inserters/char/3.cc | 2 - .../string_view/inserters/pod/10081-out.cc | 2 - .../string_view/inserters/wchar_t/1.cc | 6 +- .../string_view/inserters/wchar_t/2.cc | 10 +- .../string_view/inserters/wchar_t/3.cc | 2 - .../modifiers/remove_prefix/char/1.cc | 2 - .../modifiers/remove_prefix/wchar_t/1.cc | 2 - .../modifiers/remove_suffix/char/1.cc | 2 - .../modifiers/remove_suffix/wchar_t/1.cc | 2 - .../string_view/operations/compare/char/1.cc | 1 - .../operations/compare/char/13650.cc | 1 - .../operations/compare/wchar_t/1.cc | 1 - .../operations/compare/wchar_t/13650.cc | 1 - .../string_view/operations/copy/char/1.cc | 6 +- .../string_view/operations/copy/wchar_t/1.cc | 6 +- .../string_view/operations/data/char/1.cc | 2 - .../string_view/operations/data/wchar_t/1.cc | 2 - .../string_view/operations/find/char/1.cc | 6 +- .../string_view/operations/find/char/2.cc | 6 +- .../string_view/operations/find/char/3.cc | 6 +- .../string_view/operations/find/char/4.cc | 2 - .../string_view/operations/find/wchar_t/1.cc | 6 +- .../string_view/operations/find/wchar_t/2.cc | 6 +- .../string_view/operations/find/wchar_t/3.cc | 6 +- .../string_view/operations/find/wchar_t/4.cc | 2 - .../string_view/operations/rfind/char/1.cc | 6 +- .../string_view/operations/rfind/char/2.cc | 6 +- .../string_view/operations/rfind/char/3.cc | 7 +- .../string_view/operations/rfind/wchar_t/1.cc | 6 +- .../string_view/operations/rfind/wchar_t/2.cc | 6 +- .../string_view/operations/rfind/wchar_t/3.cc | 7 +- .../string_view/operations/substr/char/1.cc | 6 +- .../operations/substr/wchar_t/1.cc | 6 +- .../string_view/operations/to_string/1.cc | 6 +- .../string_view/operators/char/2.cc | 2 - .../string_view/operators/wchar_t/2.cc | 2 - .../experimental/unordered_map/erasure.cc | 4 - .../experimental/unordered_set/erasure.cc | 4 - .../testsuite/experimental/vector/erasure.cc | 4 - .../testsuite/ext/array_allocator/1.cc | 2 - .../testsuite/ext/array_allocator/2.cc | 2 - .../testsuite/ext/array_allocator/3.cc | 2 - .../ext/array_allocator/variadic_construct.cc | 1 - .../bitmap_allocator/variadic_construct.cc | 1 - libstdc++-v3/testsuite/ext/codecvt/1.cc | 1 - libstdc++-v3/testsuite/ext/codecvt/char-1.cc | 1 - libstdc++-v3/testsuite/ext/codecvt/char-2.cc | 1 - libstdc++-v3/testsuite/ext/codecvt/wchar_t.cc | 1 - .../testsuite/ext/enc_filebuf/char/13189.cc | 1 - .../testsuite/ext/enc_filebuf/char/13598.cc | 1 - .../ext/enc_filebuf/wchar_t/13189.cc | 1 - libstdc++-v3/testsuite/ext/ext_pointer/1.cc | 8 - .../testsuite/ext/ext_pointer/1_neg.cc | 2 - .../malloc_allocator/variadic_construct.cc | 1 - .../check_allocate_big_per_type.cc | 2 - .../testsuite/ext/mt_allocator/tune-1.cc | 2 - .../testsuite/ext/mt_allocator/tune-2.cc | 2 - .../testsuite/ext/mt_allocator/tune-3.cc | 2 - .../testsuite/ext/mt_allocator/tune-4.cc | 2 - .../ext/mt_allocator/variadic_construct.cc | 1 - .../ext/new_allocator/variadic_construct.cc | 1 - libstdc++-v3/testsuite/ext/pod_char_traits.cc | 2 +- .../ext/pool_allocator/variadic_construct.cc | 1 - .../arcsine_distribution/cons/default.cc | 2 - .../random/arcsine_distribution/cons/parms.cc | 2 - .../arcsine_distribution/operators/equal.cc | 2 - .../arcsine_distribution/operators/inequal.cc | 2 - .../operators/serialize.cc | 2 - .../random/beta_distribution/cons/default.cc | 2 - .../random/beta_distribution/cons/parms.cc | 2 - .../beta_distribution/operators/equal.cc | 2 - .../beta_distribution/operators/inequal.cc | 2 - .../random/hoyt_distribution/cons/default.cc | 2 - .../random/hoyt_distribution/cons/parms.cc | 2 - .../hoyt_distribution/operators/equal.cc | 2 - .../hoyt_distribution/operators/inequal.cc | 2 - .../hoyt_distribution/operators/serialize.cc | 2 - .../cons/default.cc | 2 - .../hypergeometric_distribution/cons/parms.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../operators/serialize.cc | 2 - .../ext/random/k_distribution/cons/default.cc | 2 - .../ext/random/k_distribution/cons/parms.cc | 2 - .../random/k_distribution/operators/equal.cc | 2 - .../k_distribution/operators/inequal.cc | 2 - .../k_distribution/operators/serialize.cc | 2 - .../logistic_distribution/cons/default.cc | 2 - .../logistic_distribution/cons/parms.cc | 2 - .../logistic_distribution/operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../operators/serialize.cc | 2 - .../nakagami_distribution/cons/default.cc | 2 - .../nakagami_distribution/cons/parms.cc | 2 - .../nakagami_distribution/operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../operators/serialize.cc | 2 - .../normal_mv_distribution/cons/default.cc | 2 - .../normal_mv_distribution/cons/parms.cc | 2 - .../normal_mv_distribution/operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../pareto_distribution/cons/default.cc | 2 - .../random/pareto_distribution/cons/parms.cc | 2 - .../pareto_distribution/operators/equal.cc | 2 - .../pareto_distribution/operators/inequal.cc | 2 - .../operators/serialize.cc | 2 - .../random/rice_distribution/cons/default.cc | 2 - .../random/rice_distribution/cons/parms.cc | 2 - .../rice_distribution/operators/equal.cc | 2 - .../rice_distribution/operators/inequal.cc | 2 - .../rice_distribution/operators/serialize.cc | 2 - .../cons/default.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../operators/serialize.cc | 2 - .../triangular_distribution/cons/default.cc | 2 - .../triangular_distribution/cons/parms.cc | 2 - .../operators/equal.cc | 2 - .../operators/inequal.cc | 2 - .../cons/default.cc | 3 - .../operators/equal.cc | 2 - .../operators/generate.cc | 1 - .../operators/inequal.cc | 2 - .../operators/serialize.cc | 2 - .../von_mises_distribution/cons/default.cc | 2 - .../von_mises_distribution/cons/parms.cc | 2 - .../von_mises_distribution/operators/equal.cc | 2 - .../operators/inequal.cc | 2 - libstdc++-v3/testsuite/ext/rope/2.cc | 1 - libstdc++-v3/testsuite/ext/rope/3.cc | 1 - libstdc++-v3/testsuite/ext/rope/4.cc | 2 - .../testsuite/ext/rope/pthread7-rope.cc | 3 - .../conf_hyperg/check_nan.cc | 3 - .../conf_hyperg/check_value.cc | 1 - .../ext/special_functions/hyperg/check_nan.cc | 4 - .../special_functions/hyperg/check_value.cc | 1 - .../ext/stdio_filebuf/char/10063-1.cc | 1 - .../ext/stdio_filebuf/char/10063-2.cc | 1 - .../ext/stdio_filebuf/char/10063-3.cc | 1 - .../testsuite/ext/stdio_filebuf/char/2.cc | 1 - .../ext/stdio_sync_filebuf/char/1.cc | 1 - .../ext/stdio_sync_filebuf/char/12048-1.cc | 1 - .../ext/stdio_sync_filebuf/char/12048-2.cc | 1 - .../ext/stdio_sync_filebuf/char/12048-3.cc | 1 - .../ext/stdio_sync_filebuf/char/12048-4.cc | 1 - .../ext/stdio_sync_filebuf/wchar_t/1.cc | 1 - .../ext/stdio_sync_filebuf/wchar_t/12077.cc | 1 - .../ext/stdio_sync_filebuf/wchar_t/12948-1.cc | 1 - .../ext/stdio_sync_filebuf/wchar_t/12948-2.cc | 1 - .../ext/stdio_sync_filebuf/wchar_t/12948-3.cc | 1 - .../ext/stdio_sync_filebuf/wchar_t/12948-4.cc | 1 - .../ext/throw_allocator/variadic_construct.cc | 1 - .../testsuite/ext/type_traits/add_unsigned.cc | 1 - .../ext/type_traits/remove_unsigned.cc | 1 - .../testsuite/ext/vstring/capacity/29134.cc | 2 - .../ext/vstring/capacity/shrink_to_fit.cc | 2 - .../testsuite/ext/vstring/cons/58415-1.cc | 2 - .../testsuite/ext/vstring/cons/moveable.cc | 4 - .../ext/vstring/element_access/char/58163.cc | 2 - .../vstring/element_access/char/front_back.cc | 1 - .../vstring/element_access/wchar_t/58163.cc | 2 - .../element_access/wchar_t/front_back.cc | 1 - .../testsuite/ext/vstring/hash/char/1.cc | 2 - .../testsuite/ext/vstring/hash/wchar_t/1.cc | 2 - .../testsuite/ext/vstring/init-list.cc | 6 +- .../inserters_extractors/char/28277.cc | 1 - .../inserters_extractors/wchar_t/28277.cc | 1 - .../vstring/modifiers/assign/move_assign.cc | 4 - .../ext/vstring/modifiers/pop_back/char/1.cc | 6 +- .../vstring/modifiers/pop_back/wchar_t/1.cc | 6 +- .../testsuite/ext/vstring/operators/1.cc | 1 - .../testsuite/ext/vstring/operators/2.cc | 1 - 394 files changed, 636 insertions(+), 924 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a401ee0b84a..a87971f9fe8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,603 @@ +2016-10-14 Paolo Carlini + + * testsuite/26_numerics/accumulate/1.cc: Remove 'test' variables. + * testsuite/26_numerics/adjacent_difference/1.cc: Likewise. + * testsuite/26_numerics/complex/13450.cc: Likewise. + * testsuite/26_numerics/complex/50880.cc: Likewise. + * testsuite/26_numerics/complex/c99.cc: Likewise. + * testsuite/26_numerics/complex/cons/48760.cc: Likewise. + * testsuite/26_numerics/complex/cons/48760_c++0x.cc: Likewise. + * testsuite/26_numerics/complex/dr781_dr1137.cc: Likewise. + * testsuite/26_numerics/complex/dr844.cc: Likewise. + * testsuite/26_numerics/complex/inserters_extractors/char/1.cc: + Likewise. + * testsuite/26_numerics/complex/inserters_extractors/wchar_t/1.cc: + Likewise. + * testsuite/26_numerics/complex/value_operations/1.cc: Likewise. + * testsuite/26_numerics/complex/value_operations/dr387.cc: Likewise. + * testsuite/26_numerics/headers/cmath/19322.cc: Likewise. + * testsuite/26_numerics/headers/cmath/ + c99_classification_macros_c++11.c: Likewise.c + * testsuite/26_numerics/headers/cmath/ + c99_classification_macros_c++98.cc: Likewise. + * testsuite/26_numerics/headers/cmath/c_math.cc: Likewise. + * testsuite/26_numerics/headers/cmath/dr550.cc: Likewise. + * testsuite/26_numerics/headers/cmath/hypot.cc: Likewise. + * testsuite/26_numerics/headers/cmath/powi.cc: Likewise. + * testsuite/26_numerics/headers/cstdlib/13943.cc: Likewise. + * testsuite/26_numerics/inner_product/1.cc: Likewise. + * testsuite/26_numerics/iota/1.cc: Likewise. + * testsuite/26_numerics/partial_sum/1.cc: Likewise. + * testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc: + Likewise. + * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc: + Likewise. + * testsuite/26_numerics/random/bernoulli_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/bernoulli_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/binomial_distribution/cons/default.cc: + Likewise. + * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc: + Likewise. + * testsuite/26_numerics/random/binomial_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/binomial_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/cauchy_distribution/cons/default.cc: + Likewise. + * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc: + Likewise. + * testsuite/26_numerics/random/cauchy_distribution/operators/equal.cc: + Likewise. + * testsuite/26_numerics/random/cauchy_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/chi_squared_distribution/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/chi_squared_distribution/cons/ + parms.cc: Likewise. + * testsuite/26_numerics/random/chi_squared_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/chi_squared_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/default_random_engine.cc: Likewise. + * testsuite/26_numerics/random/discard_block_engine/cons/55215.cc: + Likewise. + * testsuite/26_numerics/random/discard_block_engine/operators/equal.cc: + Likewise. + * testsuite/26_numerics/random/discard_block_engine/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/discard_block_engine/operators/ + serialize.cc: Likewise. + * testsuite/26_numerics/random/discrete_distribution/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/discrete_distribution/cons/ + initlist.cc: Likewise. + * testsuite/26_numerics/random/discrete_distribution/cons/ + num_xbound_fun.cc: Likewise. + * testsuite/26_numerics/random/discrete_distribution/cons/range.cc: + Likewise. + * testsuite/26_numerics/random/discrete_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/discrete_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/exponential_distribution/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/exponential_distribution/cons/ + parms.cc: Likewise. + * testsuite/26_numerics/random/exponential_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/exponential_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/extreme_value_distribution/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/extreme_value_distribution/cons/ + parms.cc: Likewise. + * testsuite/26_numerics/random/extreme_value_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/extreme_value_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc: + Likewise. + * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc: + Likewise. + * testsuite/26_numerics/random/fisher_f_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/fisher_f_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/gamma_distribution/cons/default.cc: + Likewise. + * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc: + Likewise. + * testsuite/26_numerics/random/gamma_distribution/operators/equal.cc: + Likewise. + * testsuite/26_numerics/random/gamma_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/geometric_distribution/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc: + Likewise. + * testsuite/26_numerics/random/geometric_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/geometric_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/independent_bits_engine/cons/55215.cc: + Likewise. + * testsuite/26_numerics/random/independent_bits_engine/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/independent_bits_engine/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/independent_bits_engine/operators/ + serialize.cc: Likewise. + * testsuite/26_numerics/random/knuth_b.cc: Likewise. + * testsuite/26_numerics/random/linear_congruential_engine/cons/ + 55215.cc: Likewise. + * testsuite/26_numerics/random/linear_congruential_engine/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/linear_congruential_engine/operators/ + 51795.cc: Likewise. + * testsuite/26_numerics/random/linear_congruential_engine/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/linear_congruential_engine/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/linear_congruential_engine/operators/ + serialize.cc: Likewise. + * testsuite/26_numerics/random/lognormal_distribution/cons/default.cc: + Likewise. + * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc: + Likewise. + * testsuite/26_numerics/random/lognormal_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/lognormal_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/mersenne_twister_engine/cons/55215.cc: + Likewise. + * testsuite/26_numerics/random/mersenne_twister_engine/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/mersenne_twister_engine/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/mersenne_twister_engine/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/mersenne_twister_engine/operators/ + serialize.cc: Likewise. + * testsuite/26_numerics/random/minstd_rand.cc: Likewise. + * testsuite/26_numerics/random/minstd_rand0.cc: Likewise. + * testsuite/26_numerics/random/mt19937.cc: Likewise. + * testsuite/26_numerics/random/mt19937_64.cc: Likewise. + * testsuite/26_numerics/random/negative_binomial_distribution/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/negative_binomial_distribution/cons/ + parms.cc: Likewise. + * testsuite/26_numerics/random/negative_binomial_distribution/ + operators/equal.cc: Likewise. + * testsuite/26_numerics/random/negative_binomial_distribution/ + operators/inequal.cc: Likewise. + * testsuite/26_numerics/random/normal_distribution/cons/default.cc: + Likewise. + * testsuite/26_numerics/random/normal_distribution/cons/parms.cc: + Likewise. + * testsuite/26_numerics/random/normal_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/normal_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/piecewise_constant_distribution/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/piecewise_constant_distribution/cons/ + initlist_fun.cc: Likewise. + * testsuite/26_numerics/random/piecewise_constant_distribution/cons/ + num_xbound_fun.cc: Likewise. + * testsuite/26_numerics/random/piecewise_constant_distribution/cons/ + range.cc: Likewise. + * testsuite/26_numerics/random/piecewise_constant_distribution/ + operators/equal.cc: Likewise. + * testsuite/26_numerics/random/piecewise_constant_distribution/ + operators/inequal.cc: Likewise. + * testsuite/26_numerics/random/piecewise_linear_distribution/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/piecewise_linear_distribution/cons/ + initlist_fun.cc: Likewise. + * testsuite/26_numerics/random/piecewise_linear_distribution/cons/ + num_xbound_fun.cc: Likewise. + * testsuite/26_numerics/random/piecewise_linear_distribution/cons/ + range.cc: Likewise. + * testsuite/26_numerics/random/piecewise_linear_distribution/ + operators/equal.cc: Likewise. + * testsuite/26_numerics/random/piecewise_linear_distribution/ + operators/inequal.cc: Likewise. + * testsuite/26_numerics/random/poisson_distribution/cons/default.cc: + Likewise. + * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc: + Likewise. + * testsuite/26_numerics/random/poisson_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/poisson_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/random_device/cons/default.cc: Likewise. + * testsuite/26_numerics/random/random_device/cons/token.cc: Likewise. + * testsuite/26_numerics/random/ranlux24.cc: Likewise. + * testsuite/26_numerics/random/ranlux24_base.cc: Likewise. + * testsuite/26_numerics/random/ranlux48.cc: Likewise. + * testsuite/26_numerics/random/ranlux48_base.cc: Likewise. + * testsuite/26_numerics/random/seed_seq/cons/initlist.cc: Likewise. + * testsuite/26_numerics/random/shuffle_order_engine/cons/55215.cc: + Likewise. + * testsuite/26_numerics/random/shuffle_order_engine/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/shuffle_order_engine/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/shuffle_order_engine/operators/ + serialize.cc: Likewise. + * testsuite/26_numerics/random/student_t_distribution/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/student_t_distribution/cons/ + parms.cc: Likewise. + * testsuite/26_numerics/random/student_t_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/student_t_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/subtract_with_carry_engine/cons/ + 55215.cc: Likewise. + * testsuite/26_numerics/random/subtract_with_carry_engine/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/subtract_with_carry_engine/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/subtract_with_carry_engine/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/subtract_with_carry_engine/operators/ + serialize.cc: Likewise. + * testsuite/26_numerics/random/uniform_int_distribution/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/uniform_int_distribution/cons/ + parms.cc: Likewise. + * testsuite/26_numerics/random/uniform_int_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/uniform_int_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/uniform_real_distribution/cons/ + default.cc: Likewise. + * testsuite/26_numerics/random/uniform_real_distribution/cons/ + parms.cc: Likewise. + * testsuite/26_numerics/random/uniform_real_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/uniform_real_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/random/weibull_distribution/cons/default.cc: + Likewise. + * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc: + Likewise. + * testsuite/26_numerics/random/weibull_distribution/operators/ + equal.cc: Likewise. + * testsuite/26_numerics/random/weibull_distribution/operators/ + inequal.cc: Likewise. + * testsuite/26_numerics/slice/1.cc: Likewise. + * testsuite/26_numerics/slice_array/array_assignment.cc: Likewise. + * testsuite/26_numerics/valarray/27867.cc: Likewise. + * testsuite/26_numerics/valarray/28277.cc: Likewise. + * testsuite/26_numerics/valarray/30416.cc: Likewise. + * testsuite/26_numerics/valarray/dr543.cc: Likewise. + * testsuite/26_numerics/valarray/dr630-1.cc: Likewise. + * testsuite/26_numerics/valarray/dr630-2.cc: Likewise. + * testsuite/26_numerics/valarray/dr630-3.C: Likewise. + * testsuite/26_numerics/valarray/init-list.cc: Likewise. + * testsuite/26_numerics/valarray/moveable.cc: Likewise. + * testsuite/26_numerics/valarray/operators.cc: Likewise. + * testsuite/26_numerics/valarray/swap.cc: Likewise. + * testsuite/experimental/deque/erasure.cc: Likewise. + * testsuite/experimental/filesystem/iterators/directory_iterator.cc: + Likewise. + * testsuite/experimental/filesystem/iterators/ + recursive_directory_iterator.cc: Likewise. + * testsuite/experimental/filesystem/operations/absolute.cc: Likewise. + * testsuite/experimental/filesystem/operations/canonical.cc: Likewise. + * testsuite/experimental/filesystem/operations/copy.cc: Likewise. + * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise. + * testsuite/experimental/filesystem/operations/create_directories.cc: + Likewise. + * testsuite/experimental/filesystem/operations/create_directory.cc: + Likewise. + * testsuite/experimental/filesystem/operations/current_path.cc: + Likewise. + * testsuite/experimental/filesystem/operations/exists.cc: Likewise. + * testsuite/experimental/filesystem/operations/file_size.cc: Likewise. + * testsuite/experimental/filesystem/operations/last_write_time.cc: + Likewise. + * testsuite/experimental/filesystem/operations/permissions.cc: Likewise. + * testsuite/experimental/filesystem/operations/status.cc: Likewise. + * testsuite/experimental/filesystem/operations/temp_directory_path.cc: + Likewise. + * testsuite/experimental/filesystem/path/native/string.cc: Likewise. + * testsuite/experimental/forward_list/erasure.cc: Likewise. + * testsuite/experimental/list/erasure.cc: Likewise. + * testsuite/experimental/map/erasure.cc: Likewise. + * testsuite/experimental/memory/shared_ptr/assign/assign.cc: Likewise. + * testsuite/experimental/memory/shared_ptr/comparison/comparison.cc: + Likewise. + * testsuite/experimental/memory/shared_ptr/cons/alias_ctor.cc: Likewise. + * testsuite/experimental/memory/shared_ptr/cons/alloc_ctor.cc: Likewise. + * testsuite/experimental/memory/shared_ptr/cons/copy_ctor.cc: Likewise. + * testsuite/experimental/memory/shared_ptr/cons/default_ctor.cc: + Likewise. + * testsuite/experimental/memory/shared_ptr/cons/move_ctor.cc: Likewise. + * testsuite/experimental/memory/shared_ptr/cons/pointer_ctor.cc: + Likewise. + * testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc: + Likewise. + * testsuite/experimental/memory/shared_ptr/cons/weak_ptr_ctor.cc: + Likewise. + * testsuite/experimental/memory/shared_ptr/dest/dest.cc: Likewise. + * testsuite/experimental/memory/shared_ptr/modifiers/reset.cc: Likewise. + * testsuite/experimental/memory/shared_ptr/modifiers/swap.cc: Likewise. + * testsuite/experimental/memory/shared_ptr/observers/bool_conv.cc: + Likewise. + * testsuite/experimental/memory/shared_ptr/observers/operators.cc: + Likewise. + * testsuite/experimental/memory/shared_ptr/observers/owner_before.cc: + Likewise. + * testsuite/experimental/memory/shared_ptr/observers/use_count.cc: + Likewise. + * testsuite/experimental/memory_resource/1.cc: Likewise. + * testsuite/experimental/memory_resource/null_memory_resource.cc: + Likewise. + * testsuite/experimental/memory_resource/resource_adaptor.cc: Likewise. + * testsuite/experimental/set/erasure.cc: Likewise. + * testsuite/experimental/string/erasure.cc: Likewise. + * testsuite/experimental/string_view/capacity/1.cc: Likewise. + * testsuite/experimental/string_view/cons/char/1.cc: Likewise. + * testsuite/experimental/string_view/cons/char/2.cc: Likewise. + * testsuite/experimental/string_view/cons/char/3.cc: Likewise. + * testsuite/experimental/string_view/cons/wchar_t/1.cc: Likewise. + * testsuite/experimental/string_view/cons/wchar_t/2.cc: Likewise. + * testsuite/experimental/string_view/cons/wchar_t/3.cc: Likewise. + * testsuite/experimental/string_view/element_access/char/1.cc: Likewise. + * testsuite/experimental/string_view/element_access/char/empty.cc: + Likewise. + * testsuite/experimental/string_view/element_access/char/ + front_back.cc: Likewise. + * testsuite/experimental/string_view/element_access/wchar_t/1.cc: + Likewise. + * testsuite/experimental/string_view/element_access/wchar_t/empty.cc: + Likewise. + * testsuite/experimental/string_view/element_access/wchar_t/ + front_back.cc: Likewise. + * testsuite/experimental/string_view/inserters/char/1.cc: Likewise. + * testsuite/experimental/string_view/inserters/char/2.cc: Likewise. + * testsuite/experimental/string_view/inserters/char/3.cc: Likewise. + * testsuite/experimental/string_view/inserters/pod/10081-out.cc: + Likewise. + * testsuite/experimental/string_view/inserters/wchar_t/1.cc: Likewise. + * testsuite/experimental/string_view/inserters/wchar_t/2.cc: Likewise. + * testsuite/experimental/string_view/inserters/wchar_t/3.cc: Likewise. + * testsuite/experimental/string_view/modifiers/remove_prefix/char/ + 1.cc: Likewise. + * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/ + 1.cc: Likewise. + * testsuite/experimental/string_view/modifiers/remove_suffix/char/ + 1.cc: Likewise. + * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/ + 1.cc: Likewise. + * testsuite/experimental/string_view/operations/compare/char/1.cc: + Likewise. + * testsuite/experimental/string_view/operations/compare/char/ + 13650.cc: Likewise. + * testsuite/experimental/string_view/operations/compare/wchar_t/ + 1.cc: Likewise. + * testsuite/experimental/string_view/operations/compare/wchar_t/ + 13650.cc: Likewise. + * testsuite/experimental/string_view/operations/copy/char/1.cc: + Likewise. + * testsuite/experimental/string_view/operations/copy/wchar_t/1.cc: + Likewise. + * testsuite/experimental/string_view/operations/data/char/1.cc: + Likewise. + * testsuite/experimental/string_view/operations/data/wchar_t/1.cc: + Likewise. + * testsuite/experimental/string_view/operations/find/char/1.cc: + Likewise. + * testsuite/experimental/string_view/operations/find/char/2.cc: + Likewise. + * testsuite/experimental/string_view/operations/find/char/3.cc: + Likewise. + * testsuite/experimental/string_view/operations/find/char/4.cc: + Likewise. + * testsuite/experimental/string_view/operations/find/wchar_t/1.cc: + Likewise. + * testsuite/experimental/string_view/operations/find/wchar_t/2.cc: + Likewise. + * testsuite/experimental/string_view/operations/find/wchar_t/3.cc: + Likewise. + * testsuite/experimental/string_view/operations/find/wchar_t/4.cc: + Likewise. + * testsuite/experimental/string_view/operations/rfind/char/1.cc: + Likewise. + * testsuite/experimental/string_view/operations/rfind/char/2.cc: + Likewise. + * testsuite/experimental/string_view/operations/rfind/char/3.cc: + Likewise. + * testsuite/experimental/string_view/operations/rfind/wchar_t/1.cc: + Likewise. + * testsuite/experimental/string_view/operations/rfind/wchar_t/2.cc: + Likewise. + * testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc: + Likewise. + * testsuite/experimental/string_view/operations/substr/char/1.cc: + Likewise. + * testsuite/experimental/string_view/operations/substr/wchar_t/1.cc: + Likewise. + * testsuite/experimental/string_view/operations/to_string/1.cc: + Likewise. + * testsuite/experimental/string_view/operators/char/2.cc: Likewise. + * testsuite/experimental/string_view/operators/wchar_t/2.cc: Likewise. + * testsuite/experimental/unordered_map/erasure.cc: Likewise. + * testsuite/experimental/unordered_set/erasure.cc: Likewise. + * testsuite/experimental/vector/erasure.cc: Likewise. + * testsuite/ext/array_allocator/1.cc: Likewise. + * testsuite/ext/array_allocator/2.cc: Likewise. + * testsuite/ext/array_allocator/3.cc: Likewise. + * testsuite/ext/array_allocator/variadic_construct.cc: Likewise. + * testsuite/ext/bitmap_allocator/variadic_construct.cc: Likewise. + * testsuite/ext/codecvt/1.cc: Likewise. + * testsuite/ext/codecvt/char-1.cc: Likewise. + * testsuite/ext/codecvt/char-2.cc: Likewise. + * testsuite/ext/codecvt/wchar_t.cc: Likewise. + * testsuite/ext/enc_filebuf/char/13189.cc: Likewise. + * testsuite/ext/enc_filebuf/char/13598.cc: Likewise. + * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise. + * testsuite/ext/ext_pointer/1.cc: Likewise. + * testsuite/ext/ext_pointer/1_neg.cc: Likewise. + * testsuite/ext/malloc_allocator/variadic_construct.cc: Likewise. + * testsuite/ext/mt_allocator/check_allocate_big_per_type.cc: Likewise. + * testsuite/ext/mt_allocator/tune-1.cc: Likewise. + * testsuite/ext/mt_allocator/tune-2.cc: Likewise. + * testsuite/ext/mt_allocator/tune-3.cc: Likewise. + * testsuite/ext/mt_allocator/tune-4.cc: Likewise. + * testsuite/ext/mt_allocator/variadic_construct.cc: Likewise. + * testsuite/ext/new_allocator/variadic_construct.cc: Likewise. + * testsuite/ext/pod_char_traits.cc: Likewise. + * testsuite/ext/pool_allocator/variadic_construct.cc: Likewise. + * testsuite/ext/random/arcsine_distribution/cons/default.cc: Likewise. + * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise. + * testsuite/ext/random/arcsine_distribution/operators/equal.cc: + Likewise. + * testsuite/ext/random/arcsine_distribution/operators/inequal.cc: + Likewise. + * testsuite/ext/random/arcsine_distribution/operators/serialize.cc: + Likewise. + * testsuite/ext/random/beta_distribution/cons/default.cc: Likewise. + * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise. + * testsuite/ext/random/beta_distribution/operators/equal.cc: Likewise. + * testsuite/ext/random/beta_distribution/operators/inequal.cc: Likewise. + * testsuite/ext/random/hoyt_distribution/cons/default.cc: Likewise. + * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise. + * testsuite/ext/random/hoyt_distribution/operators/equal.cc: Likewise. + * testsuite/ext/random/hoyt_distribution/operators/inequal.cc: Likewise. + * testsuite/ext/random/hoyt_distribution/operators/serialize.cc: + Likewise. + * testsuite/ext/random/hypergeometric_distribution/cons/default.cc: + Likewise. + * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc: + Likewise. + * testsuite/ext/random/hypergeometric_distribution/operators/ + equal.cc: Likewise. + * testsuite/ext/random/hypergeometric_distribution/operators/ + inequal.cc: Likewise. + * testsuite/ext/random/hypergeometric_distribution/operators/ + serialize.cc: Likewise. + * testsuite/ext/random/k_distribution/cons/default.cc: Likewise. + * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise. + * testsuite/ext/random/k_distribution/operators/equal.cc: Likewise. + * testsuite/ext/random/k_distribution/operators/inequal.cc: Likewise. + * testsuite/ext/random/k_distribution/operators/serialize.cc: Likewise. + * testsuite/ext/random/logistic_distribution/cons/default.cc: Likewise. + * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise. + * testsuite/ext/random/logistic_distribution/operators/equal.cc: + Likewise. + * testsuite/ext/random/logistic_distribution/operators/inequal.cc: + Likewise. + * testsuite/ext/random/logistic_distribution/operators/serialize.cc: + Likewise. + * testsuite/ext/random/nakagami_distribution/cons/default.cc: Likewise. + * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise. + * testsuite/ext/random/nakagami_distribution/operators/equal.cc: + Likewise. + * testsuite/ext/random/nakagami_distribution/operators/inequal.cc: + Likewise. + * testsuite/ext/random/nakagami_distribution/operators/serialize.cc: + Likewise. + * testsuite/ext/random/normal_mv_distribution/cons/default.cc: Likewise. + * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise. + * testsuite/ext/random/normal_mv_distribution/operators/equal.cc: + Likewise. + * testsuite/ext/random/normal_mv_distribution/operators/inequal.cc: + Likewise. + * testsuite/ext/random/pareto_distribution/cons/default.cc: Likewise. + * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise. + * testsuite/ext/random/pareto_distribution/operators/equal.cc: Likewise. + * testsuite/ext/random/pareto_distribution/operators/inequal.cc: + Likewise. + * testsuite/ext/random/pareto_distribution/operators/serialize.cc: + Likewise. + * testsuite/ext/random/rice_distribution/cons/default.cc: Likewise. + * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise. + * testsuite/ext/random/rice_distribution/operators/equal.cc: Likewise. + * testsuite/ext/random/rice_distribution/operators/inequal.cc: Likewise. + * testsuite/ext/random/rice_distribution/operators/serialize.cc: + Likewise. + * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/ + default.cc: Likewise. + * testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/ + equal.cc: Likewise. + * testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/ + inequal.cc: Likewise. + * testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/ + serialize.cc: Likewise. + * testsuite/ext/random/triangular_distribution/cons/default.cc: + Likewise. + * testsuite/ext/random/triangular_distribution/cons/parms.cc: Likewise. + * testsuite/ext/random/triangular_distribution/operators/equal.cc: + Likewise. + * testsuite/ext/random/triangular_distribution/operators/inequal.cc: + Likewise. + * testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc: + Likewise. + * testsuite/ext/random/uniform_on_sphere_distribution/operators/ + equal.cc: Likewise. + * testsuite/ext/random/uniform_on_sphere_distribution/operators/ + generate.cc: Likewise. + * testsuite/ext/random/uniform_on_sphere_distribution/operators/ + inequal.cc: Likewise. + * testsuite/ext/random/uniform_on_sphere_distribution/operators/ + serialize.cc: Likewise. + * testsuite/ext/random/von_mises_distribution/cons/default.cc: Likewise. + * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise. + * testsuite/ext/random/von_mises_distribution/operators/equal.cc: + Likewise. + * testsuite/ext/random/von_mises_distribution/operators/inequal.cc: + Likewise. + * testsuite/ext/rope/2.cc: Likewise. + * testsuite/ext/rope/3.cc: Likewise. + * testsuite/ext/rope/4.cc: Likewise. + * testsuite/ext/rope/pthread7-rope.cc: Likewise. + * testsuite/ext/special_functions/conf_hyperg/check_nan.cc: Likewise. + * testsuite/ext/special_functions/conf_hyperg/check_value.cc: Likewise. + * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise. + * testsuite/ext/special_functions/hyperg/check_value.cc: Likewise. + * testsuite/ext/stdio_filebuf/char/10063-1.cc: Likewise. + * testsuite/ext/stdio_filebuf/char/10063-2.cc: Likewise. + * testsuite/ext/stdio_filebuf/char/10063-3.cc: Likewise. + * testsuite/ext/stdio_filebuf/char/2.cc: Likewise. + * testsuite/ext/stdio_sync_filebuf/char/1.cc: Likewise. + * testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: Likewise. + * testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: Likewise. + * testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: Likewise. + * testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: Likewise. + * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: Likewise. + * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Likewise. + * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: Likewise. + * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: Likewise. + * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: Likewise. + * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: Likewise. + * testsuite/ext/throw_allocator/variadic_construct.cc: Likewise. + * testsuite/ext/type_traits/add_unsigned.cc: Likewise. + * testsuite/ext/type_traits/remove_unsigned.cc: Likewise. + * testsuite/ext/vstring/capacity/29134.cc: Likewise. + * testsuite/ext/vstring/capacity/shrink_to_fit.cc: Likewise. + * testsuite/ext/vstring/cons/58415-1.cc: Likewise. + * testsuite/ext/vstring/cons/moveable.cc: Likewise. + * testsuite/ext/vstring/element_access/char/58163.cc: Likewise. + * testsuite/ext/vstring/element_access/char/front_back.cc: Likewise. + * testsuite/ext/vstring/element_access/wchar_t/58163.cc: Likewise. + * testsuite/ext/vstring/element_access/wchar_t/front_back.cc: Likewise. + * testsuite/ext/vstring/hash/char/1.cc: Likewise. + * testsuite/ext/vstring/hash/wchar_t/1.cc: Likewise. + * testsuite/ext/vstring/init-list.cc: Likewise. + * testsuite/ext/vstring/inserters_extractors/char/28277.cc: Likewise. + * testsuite/ext/vstring/inserters_extractors/wchar_t/28277.cc: Likewise. + * testsuite/ext/vstring/modifiers/assign/move_assign.cc: Likewise. + * testsuite/ext/vstring/modifiers/pop_back/char/1.cc: Likewise. + * testsuite/ext/vstring/modifiers/pop_back/wchar_t/1.cc: Likewise. + * testsuite/ext/vstring/operators/1.cc: Likewise. + * testsuite/ext/vstring/operators/2.cc: Likewise. + 2016-10-14 Jonathan Wakely PR libstdc++/65122 diff --git a/libstdc++-v3/testsuite/26_numerics/accumulate/1.cc b/libstdc++-v3/testsuite/26_numerics/accumulate/1.cc index aecff57d0be..d4b1d3f7db1 100644 --- a/libstdc++-v3/testsuite/26_numerics/accumulate/1.cc +++ b/libstdc++-v3/testsuite/26_numerics/accumulate/1.cc @@ -26,8 +26,6 @@ const int NA = sizeof(A) / sizeof(int); void test01() { - bool test __attribute__((unused)) = true; - int res = std::accumulate(A, A + NA, 11); VERIFY( res == 66 ); } @@ -38,8 +36,6 @@ const int NB = sizeof(B) / sizeof(bool); void test02() { - bool test __attribute__((unused)) = true; - int res = std::accumulate(B, B + NB, 100); VERIFY( res == 106 ); } diff --git a/libstdc++-v3/testsuite/26_numerics/adjacent_difference/1.cc b/libstdc++-v3/testsuite/26_numerics/adjacent_difference/1.cc index 1b46c1af785..db10404f8f0 100644 --- a/libstdc++-v3/testsuite/26_numerics/adjacent_difference/1.cc +++ b/libstdc++-v3/testsuite/26_numerics/adjacent_difference/1.cc @@ -28,8 +28,6 @@ const int N = sizeof(A) / sizeof(int); void test01() { - bool test __attribute__((unused)) = true; - int D[N]; std::adjacent_difference(A, A + N, D); diff --git a/libstdc++-v3/testsuite/26_numerics/complex/13450.cc b/libstdc++-v3/testsuite/26_numerics/complex/13450.cc index 38fc1d7cb17..fa1ade349cf 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/13450.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/13450.cc @@ -27,7 +27,6 @@ template void test01_do(T a, T b) { using namespace std; - bool test __attribute__((unused)) = true; typedef complex cplx; T eps = numeric_limits::epsilon() * 100; diff --git a/libstdc++-v3/testsuite/26_numerics/complex/50880.cc b/libstdc++-v3/testsuite/26_numerics/complex/50880.cc index 7b8208cf027..8d6e6637f0f 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/50880.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/50880.cc @@ -23,8 +23,6 @@ template void test01_do() { - bool test __attribute__((unused)) = true; - const std::complex ca(T(-2), T(2)); const std::complex cb(T(-2), T(0)); const std::complex cc(T(-2), T(-2)); diff --git a/libstdc++-v3/testsuite/26_numerics/complex/c99.cc b/libstdc++-v3/testsuite/26_numerics/complex/c99.cc index d4881239cf0..b8b1aabefca 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/c99.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/c99.cc @@ -26,8 +26,6 @@ int main() { - bool test __attribute__((unused)) = true; - #if _GLIBCXX_HAVE_COMPLEX_H double _Complex x = .5; double _Complex y = cacos (x); diff --git a/libstdc++-v3/testsuite/26_numerics/complex/cons/48760.cc b/libstdc++-v3/testsuite/26_numerics/complex/cons/48760.cc index 04e05dcdcc8..e7dbd1cc215 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/cons/48760.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/cons/48760.cc @@ -24,8 +24,6 @@ template void do_test01() { - bool test __attribute__((unused)) = true; - if (std::numeric_limits::has_quiet_NaN) { std::complex c1(T(0), std::numeric_limits::quiet_NaN()); diff --git a/libstdc++-v3/testsuite/26_numerics/complex/cons/48760_c++0x.cc b/libstdc++-v3/testsuite/26_numerics/complex/cons/48760_c++0x.cc index f4d4e8a85e6..1a308379049 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/cons/48760_c++0x.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/cons/48760_c++0x.cc @@ -25,8 +25,6 @@ template void do_test01() { - bool test __attribute__((unused)) = true; - if (std::numeric_limits::has_quiet_NaN) { std::complex c1(T(0), std::numeric_limits::quiet_NaN()); diff --git a/libstdc++-v3/testsuite/26_numerics/complex/dr781_dr1137.cc b/libstdc++-v3/testsuite/26_numerics/complex/dr781_dr1137.cc index c30952eac71..d7a91ba2db9 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/dr781_dr1137.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/dr781_dr1137.cc @@ -26,7 +26,6 @@ // DR 1137. Return type of conj and proj. void test01() { - bool test __attribute__((unused)) = true; using __gnu_test::check_ret_type; typedef std::complex cmplx_f_type; diff --git a/libstdc++-v3/testsuite/26_numerics/complex/dr844.cc b/libstdc++-v3/testsuite/26_numerics/complex/dr844.cc index 9f28c9b6f57..dced71049b6 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/dr844.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/dr844.cc @@ -29,7 +29,6 @@ // and also PR57974. void test01() { - bool test __attribute__((unused)) = true; using __gnu_test::check_ret_type; typedef std::complex cmplx_f_type; diff --git a/libstdc++-v3/testsuite/26_numerics/complex/inserters_extractors/char/1.cc b/libstdc++-v3/testsuite/26_numerics/complex/inserters_extractors/char/1.cc index 1672d9ce638..e3bd714d91c 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/inserters_extractors/char/1.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/inserters_extractors/char/1.cc @@ -37,7 +37,6 @@ template int test_good(std::string str, R x, R y) { - bool test __attribute__((unused)) = true; std::complex z; char ch; std::istringstream iss(str); @@ -53,7 +52,6 @@ template int test_fail(std::string str) { - bool test __attribute__((unused)) = true; std::complex z; std::istringstream iss(str); iss >> z; @@ -86,7 +84,6 @@ testall() void test01() { using namespace std; - bool test __attribute__((unused)) = true; complex cf01(-1.1, -333.2); stringstream ss; @@ -104,8 +101,6 @@ template class std::basic_string >; void test02() { - bool test __attribute__((unused)) = true; - // Construct locale with specialized facets. typedef gnu_sstream::__num_put_type numput_type; typedef gnu_sstream::__num_get_type numget_type; diff --git a/libstdc++-v3/testsuite/26_numerics/complex/inserters_extractors/wchar_t/1.cc b/libstdc++-v3/testsuite/26_numerics/complex/inserters_extractors/wchar_t/1.cc index 0d10682492a..a08f19b19f1 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/inserters_extractors/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/inserters_extractors/wchar_t/1.cc @@ -34,7 +34,6 @@ template int test_good(std::wstring str, R x, R y) { - bool test __attribute__((unused)) = true; std::complex z; wchar_t ch; std::wistringstream iss(str); @@ -50,7 +49,6 @@ template int test_fail(std::wstring str) { - bool test __attribute__((unused)) = true; std::complex z; std::wistringstream iss(str); iss >> z; @@ -83,7 +81,6 @@ testall() void test01() { using namespace std; - bool test __attribute__((unused)) = true; complex cf01(-1.1, -333.2); wstringstream ss; @@ -102,8 +99,6 @@ template class std::basic_string complex_type; const double cd1 = -11.451; const double cd2 = -442.1533; diff --git a/libstdc++-v3/testsuite/26_numerics/complex/value_operations/dr387.cc b/libstdc++-v3/testsuite/26_numerics/complex/value_operations/dr387.cc index a10c3bc3271..752d42aa0dc 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/value_operations/dr387.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/value_operations/dr387.cc @@ -25,8 +25,6 @@ template void do_test() { - bool test __attribute__((unused)) = true; - const T r = 1.0; const T i = -1.0; const T v = 0.0; diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/19322.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/19322.cc index 7a2c81acf43..394c52cc7c4 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/19322.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/19322.cc @@ -23,8 +23,6 @@ // libstdc++/19322 void test01() { - bool test __attribute__((unused)) = true; - VERIFY( !std::isnan(3.0) ); } diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++11.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++11.cc index 8db9fdb0e6c..9387d53a866 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++11.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++11.cc @@ -48,8 +48,6 @@ void isunordered() { } template void test_c99_classify() { - bool test __attribute__((unused)) = true; - typedef _Tp fp_type_one; typedef _Up fp_type_two; fp_type_one f1 = 1.0; diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++98.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++98.cc index 6480f9383a5..e494d1a7ee6 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++98.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c++98.cc @@ -51,8 +51,6 @@ void isunordered() { } template void test_c99_classify() { - bool test __attribute__((unused)) = true; - typedef _Tp fp_type; fp_type f1 = 1.0; fp_type f2 = 3.0; diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c_math.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c_math.cc index 33d4b23bd94..38804656a9a 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c_math.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c_math.cc @@ -35,7 +35,7 @@ test01() int test02() { - std::sin(static_cast(0)); + std::sin(static_cast(0)); return 0; } @@ -51,7 +51,6 @@ test03() int test04() { - bool test __attribute__((unused)) = true; float x[2] = {1, 2}; float y = 3.4; std::modf(y, &x[0]); diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/dr550.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/dr550.cc index 905d631b3a5..ee3f30953a8 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/dr550.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/dr550.cc @@ -25,7 +25,6 @@ // DR 550. What should the return type of pow(float,int) be? void test01() { - bool test __attribute__((unused)) = true; using __gnu_test::check_ret_type; const int i1 = 1; diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/hypot.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/hypot.cc index ec7429134ca..ad9e77ef4e0 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/hypot.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/hypot.cc @@ -50,7 +50,6 @@ template void test(const testcase_hypot (&data)[Num], Tp toler) { - bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/powi.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/powi.cc index ed83c6cedbf..ea9a1604e56 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/powi.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/powi.cc @@ -26,7 +26,6 @@ template void test01_do() { using namespace std; - bool test __attribute__((unused)) = true; VERIFY( pow(T(1.0), 0) == T(1.0) ); VERIFY( pow(T(2.0), 0) == T(1.0) ); diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cstdlib/13943.cc b/libstdc++-v3/testsuite/26_numerics/headers/cstdlib/13943.cc index 4ba9d9764a6..4259ba67e14 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cstdlib/13943.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cstdlib/13943.cc @@ -24,7 +24,6 @@ void test01() { using namespace std; - bool test __attribute__((unused)) = true; VERIFY( llabs(-3) == 3 ); diff --git a/libstdc++-v3/testsuite/26_numerics/inner_product/1.cc b/libstdc++-v3/testsuite/26_numerics/inner_product/1.cc index e142af5cf07..17fb528ec57 100644 --- a/libstdc++-v3/testsuite/26_numerics/inner_product/1.cc +++ b/libstdc++-v3/testsuite/26_numerics/inner_product/1.cc @@ -31,8 +31,6 @@ const int NB = sizeof(B1) / sizeof(bool); void test01() { - bool test __attribute__((unused)) = true; - int res = std::inner_product(A1, A1 + NA, A2, 31); VERIFY( res == 983 ); } @@ -40,8 +38,6 @@ test01() void test02() { - bool test __attribute__((unused)) = true; - int res = std::inner_product(B1, B1 + NB, B2, 100); VERIFY( res == 102 ); } diff --git a/libstdc++-v3/testsuite/26_numerics/iota/1.cc b/libstdc++-v3/testsuite/26_numerics/iota/1.cc index c623cc60811..7cfdd2ae343 100644 --- a/libstdc++-v3/testsuite/26_numerics/iota/1.cc +++ b/libstdc++-v3/testsuite/26_numerics/iota/1.cc @@ -31,8 +31,6 @@ const int N = sizeof(A) / sizeof(int); void test01() { - bool test __attribute__((unused)) = true; - std::iota(A, A + N, 1); VERIFY( std::equal(A, A + N, B) ); diff --git a/libstdc++-v3/testsuite/26_numerics/partial_sum/1.cc b/libstdc++-v3/testsuite/26_numerics/partial_sum/1.cc index ad16a12a1a0..6710f19c9b9 100644 --- a/libstdc++-v3/testsuite/26_numerics/partial_sum/1.cc +++ b/libstdc++-v3/testsuite/26_numerics/partial_sum/1.cc @@ -28,8 +28,6 @@ const int N = sizeof(A) / sizeof(int); void test01() { - bool test __attribute__((unused)) = true; - int D[N]; std::partial_sum(B, B + N, D); diff --git a/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc index 734099a1722..0ce5aad4be7 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::bernoulli_distribution u; VERIFY( u.p() == 0.5 ); VERIFY( u.min() == std::numeric_limits::min() ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc index 38b0138ca2a..8e6ca43195d 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::bernoulli_distribution u(0.75); VERIFY( u.p() == 0.75 ); VERIFY( u.min() == std::numeric_limits::min() ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/operators/equal.cc index e7e55f3c7b2..cdee2c17637 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::bernoulli_distribution u(0.75), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/operators/inequal.cc index 549f354394d..fc57210952d 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::bernoulli_distribution u(0.75), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/cons/default.cc index 176abb1f4a2..38a0c3ff1bc 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::binomial_distribution<> u; VERIFY( u.t() == 1 ); VERIFY( u.p() == 0.5 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/cons/parms.cc index 75a102526b5..e93f0c39008 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::binomial_distribution<> u(3, 0.75); VERIFY( u.t() == 3 ); VERIFY( u.p() == 0.75 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/operators/equal.cc index c92a324d6ef..3e93edf9ccd 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::binomial_distribution u(3, 0.75), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/operators/inequal.cc index f0c954df756..e01ff8e33b3 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::binomial_distribution u(3, 0.75), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/cons/default.cc index dba7c88f15b..2ada9129eb0 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::cauchy_distribution<> u; VERIFY( u.a() == 0.0 ); VERIFY( u.b() == 1.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc index 40861aad13b..6bd0e1cd643 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::cauchy_distribution<> u(5.0, 2.0); VERIFY( u.a() == 5.0 ); VERIFY( u.b() == 2.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/operators/equal.cc index 9d70a555ada..6a95f1e11bf 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::cauchy_distribution u(5.0, 2.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/operators/inequal.cc index 5c7698abd9a..c0bd9b46020 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::cauchy_distribution u(5.0, 2.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc index 1ee19740c0f..381b18b04eb 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::chi_squared_distribution<> u; VERIFY( u.n() == 1 ); typedef std::chi_squared_distribution<>::result_type result_type; diff --git a/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc index 8ab6e9c17b1..d6d9e0b6d23 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::chi_squared_distribution<> u(1.5); VERIFY( u.n() == 1.5 ); typedef std::chi_squared_distribution<>::result_type result_type; diff --git a/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/operators/equal.cc index ff6ab344537..c2c9bd4182f 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::chi_squared_distribution u(1.5), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/operators/inequal.cc index d0d26b5eed5..a1ba055ba4d 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::chi_squared_distribution u(1.5), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/default_random_engine.cc b/libstdc++-v3/testsuite/26_numerics/random/default_random_engine.cc index e21c7ae3f85..ad2f0dc2341 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/default_random_engine.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/default_random_engine.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::default_random_engine a; a.discard(9999); diff --git a/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/cons/55215.cc b/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/cons/55215.cc index fad9bd2757f..36ab8ace53c 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/cons/55215.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/cons/55215.cc @@ -38,8 +38,6 @@ int g(int x) void test01() { - bool test __attribute__((unused)) = true; - const int f1 = f(0); const int f2 = f(0); diff --git a/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/operators/equal.cc index 6477435fcec..1d0658d5ea6 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/operators/equal.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::discard_block_engine < std::subtract_with_carry_engine, diff --git a/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/operators/inequal.cc index 285694b3ae6..93dd53f1f31 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::discard_block_engine < std::subtract_with_carry_engine, diff --git a/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/operators/serialize.cc b/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/operators/serialize.cc index 7d78a47d018..c0baa7a16a1 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/operators/serialize.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/operators/serialize.cc @@ -30,8 +30,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::stringstream str; std::discard_block_engine < diff --git a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/default.cc index 14322366441..4cd8b2eeeb9 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::discrete_distribution<> u; std::vector probablility = u.probabilities(); VERIFY( probablility.size() == 1 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/initlist.cc b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/initlist.cc index a711030dd42..35d3018ba84 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/initlist.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/initlist.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::discrete_distribution<> u({0.0, 2.0, 4.0, 3.0, 4.0, 0.0}); std::vector probablility = u.probabilities(); VERIFY( probablility.size() == 6 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/num_xbound_fun.cc b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/num_xbound_fun.cc index 0da038bd668..45fc3550fcc 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/num_xbound_fun.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/num_xbound_fun.cc @@ -55,8 +55,6 @@ private: void test01() { - bool test __attribute__((unused)) = true; - cosine_distribution cd(1.5, 3.0); std::discrete_distribution<> u(21, -10.0, 10.0, cd); std::vector probablility = u.probabilities(); diff --git a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/range.cc b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/range.cc index 30c0053e440..13e8c9c51df 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/range.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/cons/range.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::vector wt = {0.5, 1.0, 2.5, 1.5, 0.5}; std::discrete_distribution<> u(wt.begin(), wt.end()); std::vector probablility = u.probabilities(); diff --git a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/operators/equal.cc index 6ef4316c72c..78218415e29 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::vector wt = { 0.5, 1.0, 2.5, 1.5, 0.5 }; std::discrete_distribution u(wt.begin(), wt.end()), v, w; diff --git a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/operators/inequal.cc index 2fba8e0eeaa..786c316acc2 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::vector wt = { 0.5, 1.0, 2.5, 1.5, 0.5 }; std::discrete_distribution u(wt.begin(), wt.end()), v, w; diff --git a/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/cons/default.cc index 4f4527235ca..ba3f62d794f 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::exponential_distribution<> u; VERIFY( u.lambda() == 1.0 ); typedef std::exponential_distribution<>::result_type result_type; diff --git a/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/cons/parms.cc index 24cef6c3335..1c9a7b34bc8 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::exponential_distribution<> u(0.5); VERIFY( u.lambda() == 0.5 ); typedef std::exponential_distribution<>::result_type result_type; diff --git a/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/operators/equal.cc index cb189fe9d23..dabc9c4954e 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::exponential_distribution u(0.5), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/operators/inequal.cc index 462d6c1eded..a3f31609d37 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::exponential_distribution u(0.5), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc index 56a3b8e1350..cbad3e29c4c 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::extreme_value_distribution<> u; VERIFY( u.a() == 0.0 ); VERIFY( u.b() == 1.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/cons/parms.cc index cdd2ec8abfb..86675514aaf 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::extreme_value_distribution<> u(5.0, 2.0); VERIFY( u.a() == 5.0 ); VERIFY( u.b() == 2.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/operators/equal.cc index 292d15ef787..71f4618bf6a 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::extreme_value_distribution u(5.0, 2.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/operators/inequal.cc index 040f07f4944..3e82315856c 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::extreme_value_distribution u(5.0, 2.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc index 99a9ee4938b..18837fbc80b 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::fisher_f_distribution<> u; VERIFY( u.m() == 1.0 ); VERIFY( u.n() == 1.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc index 96a77f4d96c..de7a3acc5f5 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::fisher_f_distribution<> u(2.0, 3.0); VERIFY( u.m() == 2.0 ); VERIFY( u.n() == 3.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/operators/equal.cc index b05a1f9f48e..336017f2632 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::fisher_f_distribution u(2.0, 3.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/operators/inequal.cc index 97ce97860d7..9ae879bfa1f 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::fisher_f_distribution u(2.0, 3.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/cons/default.cc index d69114fe05c..4288e0c2b2d 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::gamma_distribution<> u; VERIFY( u.alpha() == 1.0 ); VERIFY( u.beta() == 1.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/cons/parms.cc index 6b5596b649c..a2d752874d5 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::gamma_distribution<> u(1.5, 3.0); VERIFY( u.alpha() == 1.5 ); VERIFY( u.beta() == 3.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/operators/equal.cc index 57d1ab43dd0..88259ae9989 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::gamma_distribution u(1.5, 3.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/operators/inequal.cc index 2659b640481..29032eea28f 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::gamma_distribution u(1.5, 3.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/cons/default.cc index 16b007233c5..4d2fdd576c2 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::geometric_distribution<> u; VERIFY( u.p() == 0.5 ); VERIFY( u.min() == 0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/cons/parms.cc index 5b630c54162..21c2b668a93 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::geometric_distribution<> u(0.75); VERIFY( u.p() == 0.75 ); VERIFY( u.min() == 0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/operators/equal.cc index 814091ac2bf..3e6ed589fb5 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::geometric_distribution u(0.75), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/operators/inequal.cc index cc22e05817d..602284e30a7 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::geometric_distribution u(0.75), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/cons/55215.cc b/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/cons/55215.cc index 674ee3a2542..e1fc65633fa 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/cons/55215.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/cons/55215.cc @@ -40,8 +40,6 @@ int g(int x) void test01() { - bool test __attribute__((unused)) = true; - const int f1 = f(0); const int f2 = f(0); diff --git a/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/operators/equal.cc index 364de52d040..dba33126651 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/operators/equal.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::independent_bits_engine , 48, uint_fast64_t> u, v; diff --git a/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/operators/inequal.cc index 5819e65cd53..9e21224a2d9 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::independent_bits_engine , 48, uint_fast64_t> u, v; diff --git a/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/operators/serialize.cc b/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/operators/serialize.cc index fd6f92d221e..8b102bdd24e 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/operators/serialize.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/operators/serialize.cc @@ -30,8 +30,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::stringstream str; std::independent_bits_engine , diff --git a/libstdc++-v3/testsuite/26_numerics/random/knuth_b.cc b/libstdc++-v3/testsuite/26_numerics/random/knuth_b.cc index 25c68ff7e72..c01d120dbe6 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/knuth_b.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/knuth_b.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::knuth_b a; a.discard(9999); diff --git a/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/cons/55215.cc b/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/cons/55215.cc index cd9c32e9914..5c0604f5061 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/cons/55215.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/cons/55215.cc @@ -38,8 +38,6 @@ int g(int x) void test01() { - bool test __attribute__((unused)) = true; - const int f1 = f(0); const int f2 = f(0); diff --git a/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/cons/default.cc index d55b834f123..0f8b6164938 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::linear_congruential_engine x; VERIFY( x.min() == 1 ); VERIFY( x.max() == 2147483647-1 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/51795.cc b/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/51795.cc index 3a6f243138c..b21ec4737c7 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/51795.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/51795.cc @@ -25,8 +25,6 @@ void test01() { - bool test __attribute__((unused)) = true; - typedef std::linear_congruential_engine engine; engine eng(1103527590ULL); diff --git a/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/equal.cc index 9cac00eddd9..0be657ecbaf 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/equal.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::minstd_rand0 a; std::minstd_rand0 b; std::minstd_rand0 c(120); diff --git a/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/inequal.cc index 5dc0dfd4b5a..b935847aad7 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::minstd_rand0 a; std::minstd_rand0 b; std::minstd_rand0 c(120); diff --git a/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/serialize.cc b/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/serialize.cc index c9363218df8..cfdea122579 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/serialize.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/operators/serialize.cc @@ -30,8 +30,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::stringstream str; std::minstd_rand0 u; std::minstd_rand0 v; diff --git a/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/cons/default.cc index de5cb905862..69d21bbca48 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::lognormal_distribution<> u; VERIFY( u.m() == 0.0 ); VERIFY( u.s() == 1.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc index 42ecfea9e9d..3009a239b3d 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::lognormal_distribution<> u(5.0, 2.0); VERIFY( u.m() == 5.0 ); VERIFY( u.s() == 2.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/operators/equal.cc index c324b20832d..418f92c7bb3 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::lognormal_distribution u(5.0, 2.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/operators/inequal.cc index 8f4942a2c19..c6f9e4cca81 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::lognormal_distribution u(5.0, 2.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/55215.cc b/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/55215.cc index 809b5adbe75..3e5d7517ffd 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/55215.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/55215.cc @@ -38,8 +38,6 @@ int g(int x) void test01() { - bool test __attribute__((unused)) = true; - const int f1 = f(0); const int f2 = f(0); diff --git a/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/default.cc index f1e0ba860b9..535291105a3 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/default.cc @@ -26,7 +26,6 @@ void test01() { - bool test __attribute__((unused)) = true; typedef unsigned long value_type; std::mersenne_twister_engine< diff --git a/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/operators/equal.cc index 4c80c9d0a52..2ca1cce2281 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/operators/equal.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::mersenne_twister_engine< unsigned long, 32, 624, 397, 31, 0x9908b0dful, 11, diff --git a/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/operators/inequal.cc index fb59351ebbe..7dbaf599d8c 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::mersenne_twister_engine< unsigned long, 32, 624, 397, 31, 0x9908b0dful, 11, diff --git a/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/operators/serialize.cc b/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/operators/serialize.cc index cfa6fdb2faa..0f2ebb11c51 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/operators/serialize.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/operators/serialize.cc @@ -30,8 +30,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::stringstream str; std::mersenne_twister_engine< unsigned long, 32, 624, 397, 31, diff --git a/libstdc++-v3/testsuite/26_numerics/random/minstd_rand.cc b/libstdc++-v3/testsuite/26_numerics/random/minstd_rand.cc index 1b28f396ad2..7f079279265 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/minstd_rand.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/minstd_rand.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::minstd_rand a; a.discard(9999); diff --git a/libstdc++-v3/testsuite/26_numerics/random/minstd_rand0.cc b/libstdc++-v3/testsuite/26_numerics/random/minstd_rand0.cc index bc12ab55dcf..4fe102cacd0 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/minstd_rand0.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/minstd_rand0.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::minstd_rand0 a; a.discard(9999); diff --git a/libstdc++-v3/testsuite/26_numerics/random/mt19937.cc b/libstdc++-v3/testsuite/26_numerics/random/mt19937.cc index a611d65dc54..7796a9cfa4d 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/mt19937.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/mt19937.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::mt19937 a; a.discard(9999); diff --git a/libstdc++-v3/testsuite/26_numerics/random/mt19937_64.cc b/libstdc++-v3/testsuite/26_numerics/random/mt19937_64.cc index 3f108a78955..d004baaff9d 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/mt19937_64.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/mt19937_64.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::mt19937_64 a; a.discard(9999); diff --git a/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc index b4ed993f0e3..fdfc882c7dd 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::negative_binomial_distribution<> u; VERIFY( u.k() == 1 ); VERIFY( u.p() == 0.5 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/cons/parms.cc index a036b0608f6..41e2ef9d387 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::negative_binomial_distribution<> u(3, 0.75); VERIFY( u.k() == 3 ); VERIFY( u.p() == 0.75 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/operators/equal.cc index 091d302847b..b2b99a21184 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/operators/equal.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::negative_binomial_distribution u(3, 0.75), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/operators/inequal.cc index cffb5d3acc4..e1643b4ff74 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/operators/inequal.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::negative_binomial_distribution u(3, 0.75), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/cons/default.cc index 8c9eb9275c0..7bcae800af6 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::normal_distribution<> u; VERIFY( u.mean() == 0.0 ); VERIFY( u.stddev() == 1.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/cons/parms.cc index 339755ec1af..497c7e1e077 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::normal_distribution<> u(5.0, 2.0); VERIFY( u.mean() == 5.0 ); VERIFY( u.stddev() == 2.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/operators/equal.cc index d4bf130f1e9..8ccbc2adc77 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::normal_distribution u(5.0, 2.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/operators/inequal.cc index 3e29a7735cf..0944a2acd22 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::normal_distribution u(5.0, 2.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc index 9f85fda3ad9..be3100feac1 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::piecewise_constant_distribution<> u; std::vector interval = u.intervals(); std::vector density = u.densities(); diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/initlist_fun.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/initlist_fun.cc index b45b812825a..3b894a2c98a 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/initlist_fun.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/initlist_fun.cc @@ -56,8 +56,6 @@ private: void test01() { - bool test __attribute__((unused)) = true; - cosine_distribution cd(1.5, 3.0); std::piecewise_constant_distribution<> u({-10.0, -8.0, -6.0, -4.0, -2.0, 0.0, 2.0, 4.0, 6.0, 8.0, 10.0}, diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/num_xbound_fun.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/num_xbound_fun.cc index 78f27ed5d3f..a678ff2d27a 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/num_xbound_fun.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/num_xbound_fun.cc @@ -56,8 +56,6 @@ private: void test01() { - bool test __attribute__((unused)) = true; - cosine_distribution cd(1.5, 3.0); std::piecewise_constant_distribution<> u(21, -10.0, 10.0, cd); std::vector interval = u.intervals(); diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/range.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/range.cc index 378ba1e8691..b455e575df5 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/range.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/cons/range.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::vector x = {0.0, 1.0, 2.0, 3.0, 4.0, 5.0}; std::vector wt = {0.5, 1.0, 2.5, 1.5, 0.5}; std::piecewise_constant_distribution<> u(x.begin(), x.end(), wt.begin()); diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/operators/equal.cc index 8348825f230..ff0ce4ac6b7 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/operators/equal.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::vector x = { 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 }; std::vector wt = { 0.5, 1.0, 2.5, 1.5, 0.5 }; std::piecewise_constant_distribution diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/operators/inequal.cc index 8d8c6c70498..4c0efff510b 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/operators/inequal.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::vector x = { 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 }; std::vector wt = { 0.5, 1.0, 2.5, 1.5, 0.5 }; std::piecewise_constant_distribution diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc index 86cbf7c03d7..94f214f0a83 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::piecewise_linear_distribution<> u; std::vector interval = u.intervals(); std::vector density = u.densities(); diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/initlist_fun.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/initlist_fun.cc index de808cf1390..9c4a7bcf9b3 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/initlist_fun.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/initlist_fun.cc @@ -56,8 +56,6 @@ private: void test01() { - bool test __attribute__((unused)) = true; - cosine_distribution cd(1.5, 3.0); std::piecewise_linear_distribution<> u({-10.0, -8.0, -6.0, -4.0, -2.0, 0.0, 2.0, 4.0, 6.0, 8.0, 10.0}, diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/num_xbound_fun.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/num_xbound_fun.cc index b48d3a985d6..cb121331378 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/num_xbound_fun.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/num_xbound_fun.cc @@ -56,8 +56,6 @@ private: void test01() { - bool test __attribute__((unused)) = true; - cosine_distribution cd(1.5, 3.0); std::piecewise_linear_distribution<> u(21, -10.0, 10.0, cd); std::vector interval = u.intervals(); diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/range.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/range.cc index d71a8b9a184..e30e2824c79 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/range.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/cons/range.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::vector x = {0.0, 1.0, 2.0, 3.0, 4.0, 5.0}; std::vector wt = {0.0, 1.0, 2.5, 1.5, 3.5, 0.0}; std::piecewise_linear_distribution<> u(x.begin(), x.end(), wt.begin()); diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/operators/equal.cc index 6811ade008e..8060120f13e 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/operators/equal.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::vector x = { 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 }; std::vector wt = { 0.0, 1.0, 2.5, 1.5, 0.5, 0.0 }; std::piecewise_linear_distribution diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/operators/inequal.cc index dd534a3e67c..8b933bc7c58 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/operators/inequal.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::vector x = { 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 }; std::vector wt = { 0.0, 1.0, 2.5, 1.5, 0.5, 0.0 }; std::piecewise_linear_distribution diff --git a/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/cons/default.cc index 85299d3a25a..bf735a8fb33 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::poisson_distribution<> u; VERIFY( u.mean() == 1.0 ); VERIFY( u.min() == 0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/cons/parms.cc index 34b225c5f73..4b2cbe05539 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::poisson_distribution<> u(5.0); VERIFY( u.mean() == 5.0 ); VERIFY( u.min() == 0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/operators/equal.cc index b44ddf50b49..ea336522d73 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::poisson_distribution u(5.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/operators/inequal.cc index 97dc40af908..68a01171669 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::poisson_distribution u(5.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/random_device/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/random_device/cons/default.cc index 86015aa038f..da9e658f54c 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/random_device/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/random_device/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::random_device x; VERIFY( x.min() == std::numeric_limits::min() ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/random_device/cons/token.cc b/libstdc++-v3/testsuite/26_numerics/random/random_device/cons/token.cc index 73730bc5f03..b146998ec7e 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/random_device/cons/token.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/random_device/cons/token.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - #ifdef _GLIBCXX_USE_RANDOM_TR1 std::random_device x("/dev/random"); #else diff --git a/libstdc++-v3/testsuite/26_numerics/random/ranlux24.cc b/libstdc++-v3/testsuite/26_numerics/random/ranlux24.cc index 5d4dbea2354..5df380ea42e 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/ranlux24.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/ranlux24.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::ranlux24 a; a.discard(9999); diff --git a/libstdc++-v3/testsuite/26_numerics/random/ranlux24_base.cc b/libstdc++-v3/testsuite/26_numerics/random/ranlux24_base.cc index 6b52ca1d066..c23f0635870 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/ranlux24_base.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/ranlux24_base.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::ranlux24_base a; a.discard(9999); diff --git a/libstdc++-v3/testsuite/26_numerics/random/ranlux48.cc b/libstdc++-v3/testsuite/26_numerics/random/ranlux48.cc index 365533b0c9e..530212f59f7 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/ranlux48.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/ranlux48.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::ranlux48 a; a.discard(9999); diff --git a/libstdc++-v3/testsuite/26_numerics/random/ranlux48_base.cc b/libstdc++-v3/testsuite/26_numerics/random/ranlux48_base.cc index 6e4e07e7f82..03b9faaf152 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/ranlux48_base.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/ranlux48_base.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::ranlux48_base a; a.discard(9999); diff --git a/libstdc++-v3/testsuite/26_numerics/random/seed_seq/cons/initlist.cc b/libstdc++-v3/testsuite/26_numerics/random/seed_seq/cons/initlist.cc index 49c01303fa2..7fcd53ed17c 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/seed_seq/cons/initlist.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/seed_seq/cons/initlist.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::seed_seq seq({0, 1, 2, 3, 4, 5, 6, 7, 8, 9}); std::vector foo(10000); diff --git a/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/cons/55215.cc b/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/cons/55215.cc index af3d64815ed..7fede12d73a 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/cons/55215.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/cons/55215.cc @@ -38,8 +38,6 @@ int g(int x) void test01() { - bool test __attribute__((unused)) = true; - const int f1 = f(0); const int f2 = f(0); diff --git a/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/operators/equal.cc index 106bd55b9bb..62f51877d2f 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/operators/equal.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::shuffle_order_engine < std::linear_congruential_engine, diff --git a/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/operators/inequal.cc index ed81badb30a..a141cded7c3 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::shuffle_order_engine < std::linear_congruential_engine, diff --git a/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/operators/serialize.cc b/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/operators/serialize.cc index a3bc993d2d3..1892291ca08 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/operators/serialize.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/operators/serialize.cc @@ -30,8 +30,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::stringstream str; std::shuffle_order_engine < diff --git a/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/cons/default.cc index 9c4627685bb..befc58bf612 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::student_t_distribution<> u; VERIFY( u.n() == 1.0 ); typedef std::student_t_distribution<>::result_type result_type; diff --git a/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/cons/parms.cc index 04aa321c18f..c01cd69b280 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::student_t_distribution<> u(1.5); VERIFY( u.n() == 1.5 ); typedef std::student_t_distribution<>::result_type result_type; diff --git a/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/operators/equal.cc index cedff945129..75f8c891b3f 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::student_t_distribution u(1.5), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/operators/inequal.cc index 755c567e237..59a4e92a4a6 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::student_t_distribution u(1.5), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/55215.cc b/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/55215.cc index 47efa412af4..9197640145c 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/55215.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/55215.cc @@ -38,8 +38,6 @@ int g(int x) void test01() { - bool test __attribute__((unused)) = true; - const int f1 = f(0); const int f2 = f(0); diff --git a/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/default.cc index 3b6089fe1ef..1096599cb08 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/default.cc @@ -26,8 +26,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::subtract_with_carry_engine x; VERIFY( x.min() == 0 ); VERIFY( x.max() == ((1UL << 24) - 1) ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/operators/equal.cc index cae61bb4557..22b327c8c94 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/operators/equal.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::subtract_with_carry_engine u; std::subtract_with_carry_engine v; diff --git a/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/operators/inequal.cc index f86251d8d68..15538a93d9c 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::subtract_with_carry_engine u; std::subtract_with_carry_engine v; diff --git a/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/operators/serialize.cc b/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/operators/serialize.cc index 6f798fc8744..270f34b2363 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/operators/serialize.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/operators/serialize.cc @@ -30,8 +30,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::stringstream str; std::subtract_with_carry_engine u; std::subtract_with_carry_engine v; diff --git a/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc index f04c74abd4f..6541a1824e4 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc @@ -30,8 +30,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::uniform_int_distribution u; VERIFY( u.a() == 0 ); VERIFY( u.b() == std::numeric_limits::max() ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc index 2aa58546361..0b5fdb5bc09 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::uniform_int_distribution u(1, 20); VERIFY( u.a() == 1 ); VERIFY( u.b() == 20 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/operators/equal.cc index cf534e18442..08fdb6d157e 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::uniform_int_distribution u(1, 20), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/operators/inequal.cc index b4e113fc2fe..44503e00acc 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::uniform_int_distribution u(1, 20), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc index 9d91a36e684..ff31394838c 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::uniform_real_distribution u; VERIFY( u.a() == 0.0 ); VERIFY( u.b() == 1.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc index 70992202006..2a35b3bce0a 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::uniform_real_distribution u(-5.0, 5.0); VERIFY( u.a() == -5.0 ); VERIFY( u.b() == 5.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/equal.cc index ba765d1efc6..f6e53ac6c5b 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::uniform_real_distribution u(-5.0, 5.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/inequal.cc index f4a74aead01..398ddd59e75 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::uniform_real_distribution u(-5.0, 5.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/cons/default.cc b/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/cons/default.cc index f54e2dbaf1f..c7c41a43cf2 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::weibull_distribution<> u; VERIFY( u.a() == 1.0 ); VERIFY( u.b() == 1.0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/cons/parms.cc b/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/cons/parms.cc index 63898021db1..88dd2daabe5 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::weibull_distribution<> u(2.0, 3.5); VERIFY( u.a() == 2.0 ); VERIFY( u.b() == 3.5 ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/operators/equal.cc b/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/operators/equal.cc index f828bffdf26..b721be9f193 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::weibull_distribution u(2.0, 3.5), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/operators/inequal.cc index 75b5f6bdf69..d98a2173ad6 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::weibull_distribution u(2.0, 3.5), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/26_numerics/slice/1.cc b/libstdc++-v3/testsuite/26_numerics/slice/1.cc index 73921b1b33a..130c7b280db 100644 --- a/libstdc++-v3/testsuite/26_numerics/slice/1.cc +++ b/libstdc++-v3/testsuite/26_numerics/slice/1.cc @@ -50,7 +50,6 @@ assignment(std::size_t start, std::size_t size, std::size_t stride) int main() { - bool test __attribute__((unused)) = true; std::srand(20020717); using std::rand; VERIFY(construction(rand(), rand(), rand())); diff --git a/libstdc++-v3/testsuite/26_numerics/slice_array/array_assignment.cc b/libstdc++-v3/testsuite/26_numerics/slice_array/array_assignment.cc index 976c93d8b48..a5725f3b4fe 100644 --- a/libstdc++-v3/testsuite/26_numerics/slice_array/array_assignment.cc +++ b/libstdc++-v3/testsuite/26_numerics/slice_array/array_assignment.cc @@ -23,7 +23,6 @@ int main() { - bool test __attribute__((unused)) = true; using std::valarray; using std::slice; valarray v(1, 10), w(2, 10); diff --git a/libstdc++-v3/testsuite/26_numerics/valarray/27867.cc b/libstdc++-v3/testsuite/26_numerics/valarray/27867.cc index a6e78b54fef..cfc29203f11 100644 --- a/libstdc++-v3/testsuite/26_numerics/valarray/27867.cc +++ b/libstdc++-v3/testsuite/26_numerics/valarray/27867.cc @@ -22,8 +22,6 @@ // libstdc++/27867 void test01() { - bool test __attribute__((unused)) = true; - std::valarray v1(100, 1); std::valarray v2(100, 1); std::valarray v3(true, 1); diff --git a/libstdc++-v3/testsuite/26_numerics/valarray/28277.cc b/libstdc++-v3/testsuite/26_numerics/valarray/28277.cc index eab707afb84..fdd5d2b216c 100644 --- a/libstdc++-v3/testsuite/26_numerics/valarray/28277.cc +++ b/libstdc++-v3/testsuite/26_numerics/valarray/28277.cc @@ -29,8 +29,6 @@ // libstdc++/28277 void test01() { - bool test __attribute__((unused)) = true; - const std::valarray v1(1, MAX_SIZE); const std::valarray v2 = v1.shift(1); diff --git a/libstdc++-v3/testsuite/26_numerics/valarray/30416.cc b/libstdc++-v3/testsuite/26_numerics/valarray/30416.cc index e62404562b6..cfb305509f1 100644 --- a/libstdc++-v3/testsuite/26_numerics/valarray/30416.cc +++ b/libstdc++-v3/testsuite/26_numerics/valarray/30416.cc @@ -44,7 +44,6 @@ init_vala(std::valarray& v, size_t first, size_t last, int val) // libstdc++/30416 void test01() { - bool test __attribute__((unused)) = true; using namespace std; // shift diff --git a/libstdc++-v3/testsuite/26_numerics/valarray/dr543.cc b/libstdc++-v3/testsuite/26_numerics/valarray/dr543.cc index a1916f9f0cc..bb79e63d557 100644 --- a/libstdc++-v3/testsuite/26_numerics/valarray/dr543.cc +++ b/libstdc++-v3/testsuite/26_numerics/valarray/dr543.cc @@ -21,8 +21,6 @@ // DR 543. valarray slice default constructor void test01() { - bool test __attribute__((unused)) = true; - std::valarray v1(10); std::valarray v2 = v1[std::slice()]; VERIFY( v2.size() == 0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/valarray/dr630-1.cc b/libstdc++-v3/testsuite/26_numerics/valarray/dr630-1.cc index 147834f9b5d..5f1ea778ee9 100644 --- a/libstdc++-v3/testsuite/26_numerics/valarray/dr630-1.cc +++ b/libstdc++-v3/testsuite/26_numerics/valarray/dr630-1.cc @@ -21,7 +21,6 @@ // DR 630. void test01() { - bool test __attribute__((unused)) = true; using namespace std; valarray v1; diff --git a/libstdc++-v3/testsuite/26_numerics/valarray/dr630-2.cc b/libstdc++-v3/testsuite/26_numerics/valarray/dr630-2.cc index 550044aa7e1..2d84d0ddb04 100644 --- a/libstdc++-v3/testsuite/26_numerics/valarray/dr630-2.cc +++ b/libstdc++-v3/testsuite/26_numerics/valarray/dr630-2.cc @@ -23,7 +23,6 @@ // DR 630. void test01() { - bool test __attribute__((unused)) = true; using namespace std; valarray v1; diff --git a/libstdc++-v3/testsuite/26_numerics/valarray/dr630-3.C b/libstdc++-v3/testsuite/26_numerics/valarray/dr630-3.C index 577c7941bf4..590d167787f 100644 --- a/libstdc++-v3/testsuite/26_numerics/valarray/dr630-3.C +++ b/libstdc++-v3/testsuite/26_numerics/valarray/dr630-3.C @@ -21,8 +21,6 @@ // libstdc++/57666 void test01() { - bool test __attribute__((unused)) = true; - std::valarray a(3), b(3), d1, d2; d1 = a; VERIFY( d1.size() == 3 ); diff --git a/libstdc++-v3/testsuite/26_numerics/valarray/init-list.cc b/libstdc++-v3/testsuite/26_numerics/valarray/init-list.cc index aca82b74027..698c8d50123 100644 --- a/libstdc++-v3/testsuite/26_numerics/valarray/init-list.cc +++ b/libstdc++-v3/testsuite/26_numerics/valarray/init-list.cc @@ -23,10 +23,8 @@ using namespace std; -int test01() +void test01() { - bool test __attribute__((unused)) = true; - valarray m({ 1, 5, 37 }); VERIFY(m.size() == 3); VERIFY(m[0] == 1); @@ -38,8 +36,6 @@ int test01() VERIFY(m[0] == 28); VERIFY(m[1] == 37); VERIFY(m[2] == 102); - - return test; } int main() diff --git a/libstdc++-v3/testsuite/26_numerics/valarray/moveable.cc b/libstdc++-v3/testsuite/26_numerics/valarray/moveable.cc index 9f097363812..d0162c95d8d 100644 --- a/libstdc++-v3/testsuite/26_numerics/valarray/moveable.cc +++ b/libstdc++-v3/testsuite/26_numerics/valarray/moveable.cc @@ -22,8 +22,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::valarray a(1, 1), b(-1, 2); b = std::move(a); VERIFY( b.size() == 1 && b[0] == 1 && a.size() == 0 ); diff --git a/libstdc++-v3/testsuite/26_numerics/valarray/operators.cc b/libstdc++-v3/testsuite/26_numerics/valarray/operators.cc index 27b2c03d7cc..ea02210c2f0 100644 --- a/libstdc++-v3/testsuite/26_numerics/valarray/operators.cc +++ b/libstdc++-v3/testsuite/26_numerics/valarray/operators.cc @@ -23,7 +23,6 @@ void test01() // check unary operators { - bool test __attribute__((unused)) = true; std::valarray u(1); u[0]=1; @@ -35,7 +34,6 @@ void test01() // check unary operators void test02() // check binary operators { - bool test __attribute__((unused)) = true; std::valarray u(1), v(1); u[0]=1; v[0]=3; diff --git a/libstdc++-v3/testsuite/26_numerics/valarray/swap.cc b/libstdc++-v3/testsuite/26_numerics/valarray/swap.cc index 6e9647a9980..091ae44564f 100644 --- a/libstdc++-v3/testsuite/26_numerics/valarray/swap.cc +++ b/libstdc++-v3/testsuite/26_numerics/valarray/swap.cc @@ -22,8 +22,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::valarray a(1, 1), b(-1, 2); b.swap(a); VERIFY( b.size() == 1 && b[0] == 1 diff --git a/libstdc++-v3/testsuite/experimental/deque/erasure.cc b/libstdc++-v3/testsuite/experimental/deque/erasure.cc index 9acb5e112c4..b7d81da154b 100644 --- a/libstdc++-v3/testsuite/experimental/deque/erasure.cc +++ b/libstdc++-v3/testsuite/experimental/deque/erasure.cc @@ -23,8 +23,6 @@ void test01() { - bool test [[gnu::unused]] = true; - auto is_odd = [](const int i) { return i % 2 != 0; }; std::deque d{ 10, 11, 12, 14, 15, 17, 18, 19 }; @@ -36,8 +34,6 @@ test01() void test02() { - bool test [[gnu::unused]] = true; - std::deque d{ 10, 11, 12, 14, 15, 17, 18, 19 }; std::experimental::erase(d, 14); std::deque t{ 10, 11, 12, 15, 17, 18, 19 }; diff --git a/libstdc++-v3/testsuite/experimental/filesystem/iterators/directory_iterator.cc b/libstdc++-v3/testsuite/experimental/filesystem/iterators/directory_iterator.cc index ce4c5528f6e..5c80fb7ab4d 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/iterators/directory_iterator.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/iterators/directory_iterator.cc @@ -28,7 +28,6 @@ namespace fs = std::experimental::filesystem; void test01() { - bool test __attribute__((unused)) = false; std::error_code ec; // Test non-existent path. @@ -74,8 +73,6 @@ test01() void test02() { - bool test __attribute__((unused)) = false; - std::error_code ec; const auto p = __gnu_test::nonexistent_path(); create_directory(p, fs::current_path(), ec); @@ -98,8 +95,6 @@ test02() void test03() { - bool test __attribute__((unused)) = false; - std::error_code ec; const auto p = __gnu_test::nonexistent_path(); create_directories(p / "longer_than_small_string_buffer", ec); @@ -117,8 +112,6 @@ test03() void test04() { - bool test __attribute__((unused)) = false; - const fs::directory_iterator it; VERIFY( it == fs::directory_iterator() ); } @@ -126,8 +119,6 @@ test04() void test05() { - bool test __attribute__((unused)) = false; - auto p = __gnu_test::nonexistent_path(); create_directory(p); create_directory_symlink(p, p / "l"); diff --git a/libstdc++-v3/testsuite/experimental/filesystem/iterators/recursive_directory_iterator.cc b/libstdc++-v3/testsuite/experimental/filesystem/iterators/recursive_directory_iterator.cc index fcd9705ca6f..37b26066774 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/iterators/recursive_directory_iterator.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/iterators/recursive_directory_iterator.cc @@ -28,7 +28,6 @@ namespace fs = std::experimental::filesystem; void test01() { - bool test __attribute__((unused)) = false; std::error_code ec; // Test non-existent path. @@ -101,8 +100,6 @@ test01() void test02() { - bool test __attribute__((unused)) = false; - std::error_code ec; const auto p = __gnu_test::nonexistent_path(); create_directories(p / "d1/d2", ec); @@ -128,8 +125,6 @@ test02() void test03() { - bool test __attribute__((unused)) = false; - std::error_code ec; const auto p = __gnu_test::nonexistent_path(); create_directories(p / "longer_than_small_string_buffer", ec); @@ -147,8 +142,6 @@ test03() void test04() { - bool test __attribute__((unused)) = false; - // libstdc++/71004 const fs::recursive_directory_iterator it; VERIFY( it == fs::recursive_directory_iterator() ); @@ -157,8 +150,6 @@ test04() void test05() { - bool test __attribute__((unused)) = false; - auto p = __gnu_test::nonexistent_path(); create_directory(p); create_directory_symlink(p, p / "l"); diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/absolute.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/absolute.cc index 64cc29da601..512447d46f4 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/absolute.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/absolute.cc @@ -30,8 +30,6 @@ using std::experimental::filesystem::path; void test01() { - bool test __attribute__((unused)) = false; - for (const path& p : __gnu_test::test_paths) VERIFY( absolute(p).is_absolute() ); } @@ -39,8 +37,6 @@ test01() void test02() { - bool test __attribute__((unused)) = false; - path p1("/"); VERIFY( absolute(p1) == p1 ); VERIFY( absolute(p1, "/bar") == p1 ); diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/canonical.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/canonical.cc index 4d501ae8a0c..b643048c963 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/canonical.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/canonical.cc @@ -28,8 +28,6 @@ namespace fs = std::experimental::filesystem; void test01() { - bool test __attribute__((unused)) = false; - std::error_code ec; auto p = __gnu_test::nonexistent_path(); canonical( p, ec ); @@ -64,8 +62,6 @@ void test02() { #if __cpp_exceptions - bool test __attribute__((unused)) = false; - fs::path p = "rel", base = __gnu_test::nonexistent_path(); fs::path e1, e2; try { diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/copy.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/copy.cc index 2ccd1c53d6b..0d112a21ff6 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/copy.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/copy.cc @@ -32,8 +32,6 @@ namespace fs = std::experimental::filesystem; void test01() { - bool test __attribute__((unused)) = false; - auto p = __gnu_test::nonexistent_path(); std::error_code ec; @@ -59,8 +57,6 @@ test01() void test02() { - bool test __attribute__((unused)) = false; - auto from = __gnu_test::nonexistent_path(); auto to = __gnu_test::nonexistent_path(); std::error_code ec; @@ -98,8 +94,6 @@ test02() void test03() { - bool test __attribute__((unused)) = false; - auto from = __gnu_test::nonexistent_path(); auto to = __gnu_test::nonexistent_path(); @@ -124,8 +118,6 @@ test03() void test04() { - bool test __attribute__((unused)) = false; - auto from = __gnu_test::nonexistent_path(); auto to = __gnu_test::nonexistent_path(); std::error_code ec; @@ -136,8 +128,6 @@ test04() void test05() { - bool test __attribute__((unused)) = false; - auto to = __gnu_test::nonexistent_path(); std::error_code ec; diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/copy_file.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/copy_file.cc index 684ba7e869c..9cb09d3ebaf 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/copy_file.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/copy_file.cc @@ -29,7 +29,6 @@ void test01() { - bool test __attribute__((unused)) = false; using std::experimental::filesystem::copy_options; std::error_code ec; diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/create_directories.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/create_directories.cc index 7c69a48da50..efc005cfd09 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/create_directories.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/create_directories.cc @@ -28,7 +28,6 @@ namespace fs = std::experimental::filesystem; void test01() { - bool test __attribute__((unused)) = false; std::error_code ec; // Test empty path. diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/create_directory.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/create_directory.cc index 9ef7483d483..e34c7704a52 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/create_directory.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/create_directory.cc @@ -28,7 +28,6 @@ namespace fs = std::experimental::filesystem; void test01() { - bool test __attribute__((unused)) = false; std::error_code ec; // Test empty path. diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/current_path.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/current_path.cc index 056675aab39..ad1a84ea5d0 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/current_path.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/current_path.cc @@ -30,8 +30,6 @@ namespace fs = std::experimental::filesystem; void test01() { - bool test __attribute__((unused)) = false; - fs::path dot("."); fs::path cwd = fs::current_path(); std::error_code ec; @@ -42,8 +40,6 @@ test01() void test02() { - bool test __attribute__((unused)) = false; - auto oldwd = fs::current_path(); auto tmpdir = fs::temp_directory_path(); current_path(tmpdir); diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/exists.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/exists.cc index 30341da8bce..0eaa671d552 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/exists.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/exists.cc @@ -28,8 +28,6 @@ using std::experimental::filesystem::path; void test01() { - bool test __attribute__((unused)) = false; - VERIFY( exists(path{"/"}) ); VERIFY( exists(path{"/."}) ); VERIFY( exists(path{"."}) ); @@ -40,8 +38,6 @@ test01() void test02() { - bool test __attribute__((unused)) = false; - path rel = __gnu_test::nonexistent_path(); VERIFY( !exists(rel) ); } @@ -49,8 +45,6 @@ test02() void test03() { - bool test __attribute__((unused)) = false; - path abs = absolute(__gnu_test::nonexistent_path()); VERIFY( !exists(abs) ); } diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/file_size.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/file_size.cc index f217e850045..6ca8b659883 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/file_size.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/file_size.cc @@ -28,8 +28,6 @@ namespace fs = std::experimental::filesystem; void test01() { - bool test __attribute__((unused)) = false; - std::error_code ec; size_t size = fs::file_size(".", ec); VERIFY( ec == std::errc::is_a_directory ); @@ -48,8 +46,6 @@ test01() void test02() { - bool test __attribute__((unused)) = false; - fs::path p = __gnu_test::nonexistent_path(); std::error_code ec; diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/last_write_time.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/last_write_time.cc index b1aea2012e9..dee55a53cdb 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/last_write_time.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/last_write_time.cc @@ -35,7 +35,6 @@ void test01() { - bool test __attribute__((unused)) = true; using time_type = std::experimental::filesystem::file_time_type; auto p = __gnu_test::nonexistent_path(); diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/permissions.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/permissions.cc index bbdd7bf473f..07e83664a67 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/permissions.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/permissions.cc @@ -29,7 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; using perms = std::experimental::filesystem::perms; auto p = __gnu_test::nonexistent_path(); diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc index 8f5991c612a..257cbceb77a 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc @@ -28,8 +28,6 @@ namespace fs = std::experimental::filesystem; void test01() { - bool test __attribute__((unused)) = false; - std::error_code ec; fs::file_status st1 = fs::status(".", ec); VERIFY( !ec ); @@ -42,8 +40,6 @@ test01() void test02() { - bool test __attribute__((unused)) = false; - fs::path p = __gnu_test::nonexistent_path(); std::error_code ec; diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/temp_directory_path.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/temp_directory_path.cc index 2277ab0ea3e..6e202c98dde 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/temp_directory_path.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/temp_directory_path.cc @@ -38,8 +38,6 @@ namespace fs = std::experimental::filesystem; void test01() { - bool test __attribute__((unused)) = false; - clean_env(); if (!fs::exists("/tmp")) @@ -56,8 +54,6 @@ test01() void test02() { - bool test __attribute__((unused)) = false; - clean_env(); if (::setenv("TMPDIR", __gnu_test::nonexistent_path().string().c_str(), 1)) diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/native/string.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/native/string.cc index 6868959a439..2bf0edc39c5 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/path/native/string.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/path/native/string.cc @@ -26,8 +26,6 @@ void test01() { - bool test __attribute__((unused)) = true; - using namespace std::experimental::filesystem; const std::string s = "abc"; path p(s); @@ -43,8 +41,6 @@ test01() void test02() { - bool test __attribute__((unused)) = true; - using namespace std::experimental::filesystem; const char* s = "abc"; path p(s); diff --git a/libstdc++-v3/testsuite/experimental/forward_list/erasure.cc b/libstdc++-v3/testsuite/experimental/forward_list/erasure.cc index 4f644957e69..0079ed67d11 100644 --- a/libstdc++-v3/testsuite/experimental/forward_list/erasure.cc +++ b/libstdc++-v3/testsuite/experimental/forward_list/erasure.cc @@ -23,8 +23,6 @@ void test01() { - bool test [[gnu::unused]] = true; - auto is_odd = [](const int i) { return i % 2 != 0; }; std::forward_list fl{ 10, 11, 12, 14, 15, 17, 18, 19 }; @@ -36,8 +34,6 @@ test01() void test02() { - bool test [[gnu::unused]] = true; - std::forward_list fl{ 10, 11, 12, 14, 15, 17, 18, 19 }; std::experimental::erase(fl, 14); std::forward_list t{ 10, 11, 12, 15, 17, 18, 19 }; diff --git a/libstdc++-v3/testsuite/experimental/list/erasure.cc b/libstdc++-v3/testsuite/experimental/list/erasure.cc index ed9e95493c8..9e5a3fe854f 100644 --- a/libstdc++-v3/testsuite/experimental/list/erasure.cc +++ b/libstdc++-v3/testsuite/experimental/list/erasure.cc @@ -23,8 +23,6 @@ void test01() { - bool test [[gnu::unused]] = true; - auto is_odd = [](const int i) { return i % 2 != 0; }; std::list l{ 10, 11, 12, 14, 15, 17, 18, 19 }; @@ -36,8 +34,6 @@ test01() void test02() { - bool test [[gnu::unused]] = true; - std::list l{ 0, 11, 0, 0, 22, 33, 0, 0, 44, 0 }; std::experimental::erase(l, 0); std::list t{ 11, 22, 33, 44 }; diff --git a/libstdc++-v3/testsuite/experimental/map/erasure.cc b/libstdc++-v3/testsuite/experimental/map/erasure.cc index 5e4f0b51f68..4890b839081 100644 --- a/libstdc++-v3/testsuite/experimental/map/erasure.cc +++ b/libstdc++-v3/testsuite/experimental/map/erasure.cc @@ -28,8 +28,6 @@ auto is_odd_pair = [](const std::pair& p) void test01() { - bool test [[gnu::unused]] = true; - std::map m{ { 10, "A" }, { 11, "B" }, { 12, "C" }, { 14, "D" }, { 15, "E" }, { 17, "F" }, @@ -43,8 +41,6 @@ test01() void test02() { - bool test [[gnu::unused]] = true; - std::multimap mm{ { 20, "S" }, { 21, "T" }, { 22, "U" }, { 22, "V" }, { 23, "W" }, { 23, "X" }, diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/assign/assign.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/assign/assign.cc index deea575009b..4ad5a82eb50 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/assign/assign.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/assign/assign.cc @@ -60,7 +60,6 @@ void test01() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::experimental::shared_ptr a; std::experimental::shared_ptr a1; @@ -98,8 +97,6 @@ test01() void test02() { - bool test __attribute__((unused)) = true; - std::experimental::shared_ptr p(new A[5]); std::experimental::shared_ptr p1; std::experimental::shared_ptr p2; diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/comparison/comparison.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/comparison/comparison.cc index c313a3644f7..fafa6eb1364 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/comparison/comparison.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/comparison/comparison.cc @@ -36,8 +36,6 @@ struct B : A int test01() { - bool test __attribute__((unused)) = true; - // test empty shared_ptrs compare equivalent std::experimental::shared_ptr p1; std::experimental::shared_ptr p2; @@ -50,8 +48,6 @@ test01() int test02() { - bool test __attribute__((unused)) = true; - std::experimental::shared_ptr A_default; std::experimental::shared_ptr A_from_A(new A[5]); diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/alias_ctor.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/alias_ctor.cc index 2247a76c9ab..3e96139ef9c 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/alias_ctor.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/alias_ctor.cc @@ -43,7 +43,7 @@ struct B : A void test01() { - bool test __attribute__((unused)) = true; + bool test = true; std::experimental::shared_ptr a; std::experimental::shared_ptr b1(a, &test); @@ -59,8 +59,6 @@ test01() void test02() { - bool test __attribute__((unused)) = true; - std::experimental::shared_ptr a(new A[5]); std::experimental::shared_ptr i1(a, &a[0].i); VERIFY( i1.use_count() == 2 ); @@ -73,8 +71,6 @@ test02() void test03() { - bool test __attribute__((unused)) = true; - std::experimental::shared_ptr b(new B); std::experimental::shared_ptr a1(b, b.get()); std::experimental::shared_ptr a2(b, &b->a); diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/alloc_ctor.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/alloc_ctor.cc index 2ef8184df80..b0f0b1ecfb4 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/alloc_ctor.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/alloc_ctor.cc @@ -42,7 +42,6 @@ long D::delete_count = 0; int test01() { - bool test __attribute__((unused)) = true; tracker_allocator_counter::reset(); std::experimental::shared_ptr p1(new A[5], deletefunc, tracker_allocator()); diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor.cc index 9638f6277ab..1f1c70b7942 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor.cc @@ -63,7 +63,6 @@ int test01() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::experimental::shared_ptr a1; std::experimental::shared_ptr a2(a1); @@ -80,7 +79,6 @@ int test02() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::experimental::shared_ptr a1(new A[5]); std::experimental::shared_ptr a2(a1); @@ -97,7 +95,6 @@ int test03() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::experimental::shared_ptr a1(new A[5], &deleter); std::experimental::shared_ptr a2(a1); @@ -114,7 +111,6 @@ int test04() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::experimental::shared_ptr a1(std::experimental::shared_ptr (new A[5])); @@ -131,7 +127,6 @@ int test05() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::experimental::shared_ptr a1(new A[5]); std::experimental::shared_ptr a2(a1); @@ -150,7 +145,6 @@ int test06() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::experimental::shared_ptr a1(new B); std::experimental::shared_ptr a2(a1); diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/default_ctor.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/default_ctor.cc index 0ff79cf338a..e675c57cdfe 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/default_ctor.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/default_ctor.cc @@ -30,8 +30,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - std::experimental::shared_ptr a; VERIFY( a.get() == 0 ); diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/move_ctor.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/move_ctor.cc index 1297e21cb0f..f1040577a1d 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/move_ctor.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/move_ctor.cc @@ -55,7 +55,6 @@ struct reset_count_struct int test01() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::experimental::shared_ptr a1; std::experimental::shared_ptr a2(std::move(a1)); @@ -71,7 +70,6 @@ int test02() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::experimental::shared_ptr a1(new A[5]); std::experimental::shared_ptr a2(std::move(a1)); @@ -86,7 +84,6 @@ int test03() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::experimental::shared_ptr b(new A[5], D()); std::experimental::shared_ptr b1(std::move(b)); @@ -108,7 +105,6 @@ void test04() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::experimental::shared_ptr a(std::move(std::experimental ::shared_ptr @@ -123,7 +119,6 @@ void test05() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::experimental::shared_ptr a(std::move(std::experimental ::shared_ptr diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/pointer_ctor.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/pointer_ctor.cc index 53d54f55384..5a14f7cbb8b 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/pointer_ctor.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/pointer_ctor.cc @@ -31,8 +31,6 @@ struct B : A { }; int test01() { - bool test __attribute__((unused)) = true; - A * const a = 0; std::experimental::shared_ptr p(a); VERIFY( p.get() == 0 ); @@ -43,8 +41,6 @@ test01() int test02() { - bool test __attribute__((unused)) = true; - A * const a = new A[5]; std::experimental::shared_ptr p(a); VERIFY( p.get() == a ); @@ -55,8 +51,6 @@ test02() int test03() { - bool test __attribute__((unused)) = true; - B * const b = new B[5]; std::experimental::shared_ptr p(b); VERIFY( p.get() == b ); diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc index fcc910eb50a..5b4938b33ef 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc @@ -36,8 +36,6 @@ struct A : std::experimental::enable_shared_from_this int test01() { - bool test __attribute__((unused)) = true; - std::unique_ptr up(new A[5]); std::experimental::shared_ptr sp(std::move(up)); VERIFY( up.get() == 0 ); diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/weak_ptr_ctor.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/weak_ptr_ctor.cc index 69292c5d1f9..71cf583af32 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/weak_ptr_ctor.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/weak_ptr_ctor.cc @@ -30,8 +30,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - A * a = new A[5]; std::experimental::shared_ptr a1(a); std::experimental::weak_ptr wa(a1); diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/dest/dest.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/dest/dest.cc index 855a8e9b147..600c0c6c2c0 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/dest/dest.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/dest/dest.cc @@ -67,7 +67,6 @@ int test01() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; { std::experimental::shared_ptr a; @@ -85,7 +84,6 @@ int test02() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; { std::experimental::shared_ptr a; @@ -104,7 +102,6 @@ int test03() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; { std::experimental::shared_ptr a; diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/modifiers/reset.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/modifiers/reset.cc index 3f8f88ba1f5..e0be63bea4d 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/modifiers/reset.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/modifiers/reset.cc @@ -37,8 +37,6 @@ long D::delete_count = 0; int test01() { - bool test __attribute__((unused)) = true; - A * const a = new A[5]; std::experimental::shared_ptr p1(a); std::experimental::shared_ptr p2(p1); @@ -52,8 +50,6 @@ test01() int test02() { - bool test __attribute__((unused)) = true; - A * const a = new A[5]; B * const b = new B[5]; std::experimental::shared_ptr p1(a); @@ -68,8 +64,6 @@ test02() int test03() { - bool test __attribute__((unused)) = true; - { std::experimental::shared_ptr p1; p1.reset(new B[5], D()); diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/modifiers/swap.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/modifiers/swap.cc index 6169533cf9a..8d74422240d 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/modifiers/swap.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/modifiers/swap.cc @@ -30,8 +30,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - A * const a1 = new A[5]; A * const a2 = new A[5]; std::experimental::shared_ptr p1(a1); diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/bool_conv.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/bool_conv.cc index ca4bfbd5db1..75bb4903df3 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/bool_conv.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/bool_conv.cc @@ -30,8 +30,6 @@ struct A { }; void test01() { - bool test __attribute__((unused)) = true; - const std::experimental::shared_ptr p1; VERIFY( static_cast(p1) == false ); const std::experimental::shared_ptr p2(p1); @@ -41,8 +39,6 @@ test01() void test02() { - bool test __attribute__((unused)) = true; - std::experimental::shared_ptr p1(new A[5]); VERIFY( static_cast(p1) ); std::experimental::shared_ptr p2(p1); @@ -55,8 +51,6 @@ test02() void test03() { - bool test __attribute__((unused)) = true; - std::experimental::shared_ptr p1(new A[5]); std::experimental::shared_ptr p2(p1); p2.reset(new A[5]); diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/operators.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/operators.cc index bae6bfa7993..94a65889ae2 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/operators.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/operators.cc @@ -34,8 +34,6 @@ struct A void test01() { - bool test __attribute__((unused)) = true; - A * const a = new A[5]; const std::experimental::shared_ptr p(a); VERIFY( p.get() == a ); @@ -64,8 +62,6 @@ test02() void test03() { - bool test __attribute__((unused)) = true; - A * const a = new A[5]; const std::experimental::shared_ptr p(a); VERIFY( p.get() == a ); @@ -75,8 +71,6 @@ test03() void test04() { - bool test __attribute__((unused)) = true; - A * const a = new A[5]; const std::experimental::shared_ptr p(a); VERIFY( &p[0].i == &a[0].i ); diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/owner_before.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/owner_before.cc index 50c3be3d3b6..0303b1f73e7 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/owner_before.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/owner_before.cc @@ -36,8 +36,6 @@ struct B : A { }; void test01() { - bool test __attribute__((unused)) = true; - // test empty shared_ptrs compare equivalent std::experimental::shared_ptr p1; std::experimental::shared_ptr p2; @@ -47,8 +45,6 @@ test01() void test02() { - bool test __attribute__((unused)) = true; - std::experimental::shared_ptr a0; std::experimental::shared_ptr a1(new A[5]); @@ -69,8 +65,6 @@ test02() void test03() { - bool test __attribute__((unused)) = true; - std::experimental::shared_ptr p1(new A[5]); std::experimental::shared_ptr p2(p1, &p1[0].i); VERIFY( !p1.owner_before(p2) && !p2.owner_before(p1) ); diff --git a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/use_count.cc b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/use_count.cc index 7b8d8086d95..b591a7e319c 100644 --- a/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/use_count.cc +++ b/libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/use_count.cc @@ -31,8 +31,6 @@ struct B : A { }; void test01() { - bool test __attribute__((unused)) = true; - const std::experimental::shared_ptr p1; VERIFY( p1.use_count() == 0 ); const std::experimental::shared_ptr p2(p1); @@ -42,8 +40,6 @@ test01() void test02() { - bool test __attribute__((unused)) = true; - std::experimental::shared_ptr p1(new A[5]); std::experimental::shared_ptr p2(p1); p1.reset(); @@ -54,8 +50,6 @@ test02() void test03() { - bool test __attribute__((unused)) = true; - std::experimental::shared_ptr p1(new A[5]); std::experimental::shared_ptr p2(p1); p2.reset(new B[5]); diff --git a/libstdc++-v3/testsuite/experimental/memory_resource/1.cc b/libstdc++-v3/testsuite/experimental/memory_resource/1.cc index eba47a919e5..16007b900f9 100644 --- a/libstdc++-v3/testsuite/experimental/memory_resource/1.cc +++ b/libstdc++-v3/testsuite/experimental/memory_resource/1.cc @@ -86,8 +86,6 @@ void clear() void test01() { - bool test __attribute((unused)) = false; - memory_resource* r = new_delete_resource(); VERIFY(get_default_resource() == r); void *p = get_default_resource()->allocate(5); @@ -109,8 +107,6 @@ test01() void test02() { - bool test __attribute((unused)) = false; - clear(); { CountedResource cr; @@ -126,8 +122,6 @@ test02() void test03() { - bool test __attribute((unused)) = false; - clear(); CountedResource cr; polymorphic_allocator pa(&cr); @@ -144,8 +138,6 @@ test03() void test04() { - bool test __attribute((unused)) = false; - polymorphic_allocator pa1(get_default_resource()); polymorphic_allocator pa2(get_default_resource()); VERIFY(pa1 == pa2); diff --git a/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc b/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc index 3fc42a464ef..7d9b55f37e1 100644 --- a/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc +++ b/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc @@ -28,8 +28,6 @@ using std::experimental::pmr::new_delete_resource; void test06() { - bool test __attribute((unused)) = false; - memory_resource* r = null_memory_resource(); bool caught = false; diff --git a/libstdc++-v3/testsuite/experimental/memory_resource/resource_adaptor.cc b/libstdc++-v3/testsuite/experimental/memory_resource/resource_adaptor.cc index 63344282ac5..980dd5b88fd 100644 --- a/libstdc++-v3/testsuite/experimental/memory_resource/resource_adaptor.cc +++ b/libstdc++-v3/testsuite/experimental/memory_resource/resource_adaptor.cc @@ -43,7 +43,6 @@ template void test05() { - bool test __attribute((unused)) = false; using std::max_align_t; using std::uintptr_t; void* p = nullptr; diff --git a/libstdc++-v3/testsuite/experimental/set/erasure.cc b/libstdc++-v3/testsuite/experimental/set/erasure.cc index 82113da5c68..b534af4c947 100644 --- a/libstdc++-v3/testsuite/experimental/set/erasure.cc +++ b/libstdc++-v3/testsuite/experimental/set/erasure.cc @@ -25,8 +25,6 @@ auto is_odd = [](const int i) { return i % 2 != 0; }; void test01() { - bool test [[gnu::unused]] = true; - std::set s{ 10, 11, 12, 14, 15, 17, 18, 19 }; std::experimental::erase_if(s, is_odd); std::set t{ 10, 12, 14, 18 }; @@ -36,8 +34,6 @@ test01() void test02() { - bool test [[gnu::unused]] = true; - std::multiset ms{ 20, 21, 22, 22, 23, 23, 24, 25 }; std::experimental::erase_if(ms, is_odd); std::multiset t{ 20, 22, 22, 24 }; diff --git a/libstdc++-v3/testsuite/experimental/string/erasure.cc b/libstdc++-v3/testsuite/experimental/string/erasure.cc index 2709a3524e8..1d0c548e4c2 100644 --- a/libstdc++-v3/testsuite/experimental/string/erasure.cc +++ b/libstdc++-v3/testsuite/experimental/string/erasure.cc @@ -23,8 +23,6 @@ void test01() { - bool test [[gnu::unused]] = true; - auto is_vowel = [](const char c) { return c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'; @@ -38,8 +36,6 @@ test01() void test02() { - bool test [[gnu::unused]] = true; - std::string str = "cute fluffy kittens"; std::experimental::erase(str, 'f'); VERIFY( str == "cute luy kittens" ); diff --git a/libstdc++-v3/testsuite/experimental/string_view/capacity/1.cc b/libstdc++-v3/testsuite/experimental/string_view/capacity/1.cc index 47ccf9f6c65..f6cb3eae67e 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/capacity/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/capacity/1.cc @@ -126,8 +126,6 @@ namespace std void test01() { - bool test [[gnu::unused]] = true; - std::experimental::basic_string_view> str02; typedef std::experimental::basic_string_view< A >::size_type size_type_o; size_type_o sz03; diff --git a/libstdc++-v3/testsuite/experimental/string_view/cons/char/1.cc b/libstdc++-v3/testsuite/experimental/string_view/cons/char/1.cc index 6a48c5b2e41..a90d78a2641 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/cons/char/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/cons/char/1.cc @@ -27,7 +27,6 @@ void test01() { - bool test [[gnu::unused]] = true; typedef std::experimental::string_view::size_type csize_type; // basic_string_view() diff --git a/libstdc++-v3/testsuite/experimental/string_view/cons/char/2.cc b/libstdc++-v3/testsuite/experimental/string_view/cons/char/2.cc index 0ff8d5306ec..a40001ef7cd 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/cons/char/2.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/cons/char/2.cc @@ -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 diff --git a/libstdc++-v3/testsuite/experimental/string_view/cons/char/3.cc b/libstdc++-v3/testsuite/experimental/string_view/cons/char/3.cc index d35d8fb81ba..d2f3aafd6fc 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/cons/char/3.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/cons/char/3.cc @@ -21,13 +21,10 @@ #include #include -#include void test05() { - bool test [[gnu::unused]] = true; - char const * s = 0; std::experimental::string_view zero_length_built_with_NULL(s, 0); } diff --git a/libstdc++-v3/testsuite/experimental/string_view/cons/wchar_t/1.cc b/libstdc++-v3/testsuite/experimental/string_view/cons/wchar_t/1.cc index 4876d1d2985..515bde35661 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/cons/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/cons/wchar_t/1.cc @@ -27,7 +27,6 @@ void test01() { - bool test [[gnu::unused]] = true; typedef std::experimental::wstring_view::size_type csize_type; // basic_string_view() diff --git a/libstdc++-v3/testsuite/experimental/string_view/cons/wchar_t/2.cc b/libstdc++-v3/testsuite/experimental/string_view/cons/wchar_t/2.cc index 0625afdbf20..dfce0a482ae 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/cons/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/cons/wchar_t/2.cc @@ -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 diff --git a/libstdc++-v3/testsuite/experimental/string_view/cons/wchar_t/3.cc b/libstdc++-v3/testsuite/experimental/string_view/cons/wchar_t/3.cc index bfd3c614e6a..d8c24f692a1 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/cons/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/cons/wchar_t/3.cc @@ -20,13 +20,10 @@ // basic_string_view constructors. #include -#include void test05() { - bool test [[gnu::unused]] = true; - wchar_t const * s = 0; std::experimental::wstring_view zero_length_built_with_NULL(s, 0); } diff --git a/libstdc++-v3/testsuite/experimental/string_view/element_access/char/1.cc b/libstdc++-v3/testsuite/experimental/string_view/element_access/char/1.cc index 848d8a37fb1..1e8c99bfd93 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/element_access/char/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/element_access/char/1.cc @@ -23,11 +23,9 @@ #include #include -bool +void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::string_view::size_type csize_type; typedef std::experimental::string_view::const_reference cref; typedef std::experimental::string_view::reference ref; @@ -62,8 +60,6 @@ test01() { VERIFY( false ); } - - return test; } int diff --git a/libstdc++-v3/testsuite/experimental/string_view/element_access/char/empty.cc b/libstdc++-v3/testsuite/experimental/string_view/element_access/char/empty.cc index 9960edbfe4c..977e41e79ae 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/element_access/char/empty.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/element_access/char/empty.cc @@ -24,8 +24,6 @@ int main() { - bool test [[gnu::unused]] = true; - { std::experimental::string_view empty; VERIFY( empty.empty() ); diff --git a/libstdc++-v3/testsuite/experimental/string_view/element_access/char/front_back.cc b/libstdc++-v3/testsuite/experimental/string_view/element_access/char/front_back.cc index da97523ec38..352ceefd6d0 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/element_access/char/front_back.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/element_access/char/front_back.cc @@ -24,8 +24,6 @@ void test01() { - bool test [[gnu::unused]] = true; - std::experimental::string_view str("ramifications"); const std::experimental::string_view cstr("melodien"); diff --git a/libstdc++-v3/testsuite/experimental/string_view/element_access/wchar_t/1.cc b/libstdc++-v3/testsuite/experimental/string_view/element_access/wchar_t/1.cc index 419a6112947..c6b7f68744a 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/element_access/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/element_access/wchar_t/1.cc @@ -23,11 +23,9 @@ #include #include -bool +void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::wstring_view::size_type csize_type; typedef std::experimental::wstring_view::const_reference cref; typedef std::experimental::wstring_view::reference ref; @@ -62,8 +60,6 @@ test01() { VERIFY( false ); } - - return test; } int diff --git a/libstdc++-v3/testsuite/experimental/string_view/element_access/wchar_t/empty.cc b/libstdc++-v3/testsuite/experimental/string_view/element_access/wchar_t/empty.cc index 9e74e6983f7..d747cee2b02 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/element_access/wchar_t/empty.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/element_access/wchar_t/empty.cc @@ -24,8 +24,6 @@ int main() { - bool test [[gnu::unused]] = true; - { std::experimental::wstring_view empty; VERIFY( empty.empty() ); diff --git a/libstdc++-v3/testsuite/experimental/string_view/element_access/wchar_t/front_back.cc b/libstdc++-v3/testsuite/experimental/string_view/element_access/wchar_t/front_back.cc index bcd97983f19..49a81e21c01 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/element_access/wchar_t/front_back.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/element_access/wchar_t/front_back.cc @@ -24,8 +24,6 @@ void test01() { - bool test [[gnu::unused]] = true; - std::experimental::wstring_view str(L"ramifications"); const std::experimental::wstring_view cstr(L"melodien"); diff --git a/libstdc++-v3/testsuite/experimental/string_view/inserters/char/1.cc b/libstdc++-v3/testsuite/experimental/string_view/inserters/char/1.cc index 31830b504b5..285b2647963 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/inserters/char/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/inserters/char/1.cc @@ -30,11 +30,9 @@ #include #include -bool +void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::string_view::size_type csize_type; typedef std::experimental::string_view::const_reference cref; typedef std::experimental::string_view::reference ref; @@ -56,8 +54,6 @@ test01() std::experimental::string_view hello_world; std::cout << hello_world; - - return test; } int diff --git a/libstdc++-v3/testsuite/experimental/string_view/inserters/char/2.cc b/libstdc++-v3/testsuite/experimental/string_view/inserters/char/2.cc index c642af43686..8cb97f62809 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/inserters/char/2.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/inserters/char/2.cc @@ -36,8 +36,6 @@ void test05(std::size_t size) { - bool test [[gnu::unused]] = true; - const char filename[] = "inserters_extractors-2.txt"; const char fillc = 'f'; std::ofstream ofs(filename); @@ -51,11 +49,11 @@ test05(std::size_t size) // stress test ofs << str << std::endl; if (!ofs.good()) - test = false; + VERIFY( false ); ofs << str << std::endl; if (!ofs.good()) - test = false; + VERIFY( false ); VERIFY( str.size() == size ); VERIFY( ofs.good() ); diff --git a/libstdc++-v3/testsuite/experimental/string_view/inserters/char/3.cc b/libstdc++-v3/testsuite/experimental/string_view/inserters/char/3.cc index b85463c0e4d..f9011cd1d81 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/inserters/char/3.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/inserters/char/3.cc @@ -32,8 +32,6 @@ void test09() { - bool test [[gnu::unused]] = true; - std::experimental::string_view foo{"peace\0\0\0& love"}; std::ostringstream oss1; diff --git a/libstdc++-v3/testsuite/experimental/string_view/inserters/pod/10081-out.cc b/libstdc++-v3/testsuite/experimental/string_view/inserters/pod/10081-out.cc index 4156ec8b4fb..d16d003115e 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/inserters/pod/10081-out.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/inserters/pod/10081-out.cc @@ -37,8 +37,6 @@ test01() typedef basic_stringbuf stringbuf_type; typedef basic_ostream ostream_type; - bool test [[gnu::unused]] = true; - string_type str; stringbuf_type strbuf01; ostream_type stream(&strbuf01); diff --git a/libstdc++-v3/testsuite/experimental/string_view/inserters/wchar_t/1.cc b/libstdc++-v3/testsuite/experimental/string_view/inserters/wchar_t/1.cc index a07f57ae1ba..12ee3f91599 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/inserters/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/inserters/wchar_t/1.cc @@ -30,11 +30,9 @@ #include #include -bool +void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::wstring_view::size_type csize_type; typedef std::experimental::wstring_view::const_reference cref; typedef std::experimental::wstring_view::reference ref; @@ -61,8 +59,6 @@ test01() std::experimental::wstring_view hello_world; std::wcout << hello_world; - - return test; } int diff --git a/libstdc++-v3/testsuite/experimental/string_view/inserters/wchar_t/2.cc b/libstdc++-v3/testsuite/experimental/string_view/inserters/wchar_t/2.cc index 0f2b7798a9d..20ed9bcd56d 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/inserters/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/inserters/wchar_t/2.cc @@ -35,8 +35,6 @@ void test05(std::size_t size) { - bool test [[gnu::unused]] = true; - const char filename[] = "inserters_extractors-2.txt"; const wchar_t fillc = L'f'; std::wofstream ofs(filename); @@ -49,12 +47,12 @@ test05(std::size_t size) // stress test ofs << str << std::endl; - if (!ofs.good()) - test = false; + if (!ofs.good()) + VERIFY( false ); ofs << str << std::endl; - if (!ofs.good()) - test = false; + if (!ofs.good()) + VERIFY( false ); VERIFY( str.size() == size ); VERIFY( ofs.good() ); diff --git a/libstdc++-v3/testsuite/experimental/string_view/inserters/wchar_t/3.cc b/libstdc++-v3/testsuite/experimental/string_view/inserters/wchar_t/3.cc index 317b026282b..af9fc1c4c9b 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/inserters/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/inserters/wchar_t/3.cc @@ -31,8 +31,6 @@ void test09() { - bool test [[gnu::unused]] = true; - std::experimental::wstring_view foo{L"peace\0\0\0& love"}; std::wostringstream oss1; diff --git a/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc b/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc index 7de8c3d8de3..a0b5f3989df 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc @@ -23,8 +23,6 @@ void test01() { - bool test [[gnu::unused]] = true; - using namespace std::experimental; string_view str0{"olympus mons"}; diff --git a/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/1.cc b/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/1.cc index cdd0357aaf2..9ebff02155a 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/1.cc @@ -23,8 +23,6 @@ void test01() { - bool test [[gnu::unused]] = true; - using namespace std::experimental; wstring_view str0{L"olympus mons"}; diff --git a/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc b/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc index 5a439f749b9..ab0b396b4e8 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc @@ -23,8 +23,6 @@ void test01() { - bool test [[gnu::unused]] = true; - using namespace std::experimental; string_view str0{"olympus mons"}; diff --git a/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/1.cc b/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/1.cc index eed241577a2..48194586ac9 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/1.cc @@ -23,8 +23,6 @@ void test01() { - bool test [[gnu::unused]] = true; - using namespace std::experimental; wstring_view str0{L"olympus mons"}; diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/compare/char/1.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/compare/char/1.cc index daf764b9c57..4b4350fecce 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/compare/char/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/compare/char/1.cc @@ -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) { diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/compare/char/13650.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/compare/char/13650.cc index 16b0ba7e86a..3b5d02ff25c 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/compare/char/13650.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/compare/char/13650.cc @@ -27,7 +27,6 @@ void test01() { using namespace std::experimental; - bool test [[gnu::unused]] = true; const char lit_01[]{ 'w', 'e', '\0', 'r', 'd' }; const char lit_02[]{ 'w', 'e', 'i', '\0', 'd' }; diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/compare/wchar_t/1.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/compare/wchar_t/1.cc index 11a23d6e66d..772fb8969c9 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/compare/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/compare/wchar_t/1.cc @@ -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) { diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/compare/wchar_t/13650.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/compare/wchar_t/13650.cc index 270fc453dfb..696dd21cee1 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/compare/wchar_t/13650.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/compare/wchar_t/13650.cc @@ -27,7 +27,6 @@ void test01() { using namespace std::experimental; - bool test [[gnu::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' }; diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/copy/char/1.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/copy/char/1.cc index 80c3c1ca85f..9f33bd07c20 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/copy/char/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/copy/char/1.cc @@ -22,11 +22,9 @@ #include #include -bool +void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::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 diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/copy/wchar_t/1.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/copy/wchar_t/1.cc index c453faa887f..e14c375b707 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/copy/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/copy/wchar_t/1.cc @@ -22,11 +22,9 @@ #include #include -bool +void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::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 diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/data/char/1.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/data/char/1.cc index d40d16d921f..439cad62932 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/data/char/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/data/char/1.cc @@ -25,8 +25,6 @@ int test01() { - bool test [[gnu::unused]] = true; - std::experimental::string_view empty; VERIFY( empty.size() == 0 ); diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/data/wchar_t/1.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/data/wchar_t/1.cc index 1ae76d0dcf3..29a39aa1083 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/data/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/data/wchar_t/1.cc @@ -25,8 +25,6 @@ int test01() { - bool test [[gnu::unused]] = true; - std::experimental::wstring_view empty; VERIFY( empty.size() == 0 ); diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/1.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/1.cc index 439af60b724..f28534eee84 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/1.cc @@ -22,11 +22,9 @@ #include #include -bool +void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::string_view::size_type csize_type; typedef std::experimental::string_view::const_reference cref; typedef std::experimental::string_view::reference ref; @@ -85,8 +83,6 @@ test01() VERIFY( csz01 == csz02 ); csz01 = str01.find('/'); VERIFY( csz01 == npos ); - - return test; } int diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/2.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/2.cc index f5341676c81..facb3caec86 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/2.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/2.cc @@ -22,11 +22,9 @@ #include #include -bool +void test02() { - bool test [[gnu::unused]] = true; - typedef std::experimental::string_view::size_type csize_type; csize_type npos = std::experimental::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 diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/3.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/3.cc index bfc12b17328..54633ebac2a 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/3.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/3.cc @@ -22,11 +22,9 @@ #include #include -bool +void test03() { - bool test [[gnu::unused]] = true; - typedef std::experimental::string_view::size_type csize_type; csize_type npos = std::experimental::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 diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/4.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/4.cc index f497fb28036..330be3ebb2e 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/4.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/find/char/4.cc @@ -26,8 +26,6 @@ void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::string_view::size_type csize_type; csize_type npos = std::experimental::string_view::npos; diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/1.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/1.cc index 2ca16ef24c3..fb8151e2b17 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/1.cc @@ -22,11 +22,9 @@ #include #include -bool +void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::wstring_view::size_type csize_type; typedef std::experimental::wstring_view::const_reference cref; typedef std::experimental::wstring_view::reference ref; @@ -85,8 +83,6 @@ test01() VERIFY( csz01 == csz02 ); csz01 = str01.find(L'/'); VERIFY( csz01 == npos ); - - return test; } int diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/2.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/2.cc index 38eb3c20e6a..a25eee2e19b 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/2.cc @@ -22,11 +22,9 @@ #include #include -bool +void test02() { - bool test [[gnu::unused]] = true; - typedef std::experimental::wstring_view::size_type csize_type; csize_type npos = std::experimental::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 diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/3.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/3.cc index d9a7e679445..323bc69d690 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/3.cc @@ -22,11 +22,9 @@ #include #include -bool +void test03() { - bool test [[gnu::unused]] = true; - typedef std::experimental::wstring_view::size_type csize_type; csize_type npos = std::experimental::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 diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/4.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/4.cc index 0a4eb9ff2c9..68a0c44d5f5 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/4.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/find/wchar_t/4.cc @@ -26,8 +26,6 @@ void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::wstring_view::size_type csize_type; csize_type npos = std::experimental::wstring_view::npos; diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/char/1.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/char/1.cc index c94b1f5296a..e81cff0d480 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/char/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/char/1.cc @@ -22,11 +22,9 @@ // basic_string_view rfind -bool +void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::string_view::size_type csize_type; typedef std::experimental::string_view::const_reference cref; typedef std::experimental::string_view::reference ref; @@ -85,8 +83,6 @@ test01() VERIFY( csz01 == csz02 ); csz01 = str01.rfind('/'); VERIFY( csz01 == npos ); - - return test; } int diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/char/2.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/char/2.cc index 30ff7e8ec29..01fc6278ad6 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/char/2.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/char/2.cc @@ -22,11 +22,9 @@ // basic_string_view::find_last_of -bool +void test02() { - bool test [[gnu::unused]] = true; - std::experimental::string_view z("ab"); std::experimental::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::experimental::string_view::npos ); - - return test; } int diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/char/3.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/char/3.cc index 3199b2d3fbd..9fbb32676a8 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/char/3.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/char/3.cc @@ -22,11 +22,9 @@ // basic_string_view::find_last_not_of -bool +void test03() { - bool test [[gnu::unused]] = true; - typedef std::experimental::string_view::size_type csize_type; std::experimental::string_view::size_type pos; csize_type npos = std::experimental::string_view::npos; @@ -58,9 +56,8 @@ test03() VERIFY( pos == 0 ); pos = z.find_last_not_of("Xa"); VERIFY( pos == 1 ); - - return test; } + int main() { diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/1.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/1.cc index 4bf5cb583bd..f1686f40e7b 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/1.cc @@ -22,11 +22,9 @@ // basic_string_view rfind -bool +void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::wstring_view::size_type csize_type; typedef std::experimental::wstring_view::const_reference cref; typedef std::experimental::wstring_view::reference ref; @@ -85,8 +83,6 @@ test01() VERIFY( csz01 == csz02 ); csz01 = str01.rfind(L'/'); VERIFY( csz01 == npos ); - - return test; } int diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/2.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/2.cc index 5e9fab07742..8b9f8fd96a2 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/2.cc @@ -22,11 +22,9 @@ // basic_string_view::find_last_of -bool +void test02() { - bool test [[gnu::unused]] = true; - std::experimental::wstring_view::size_type pos; std::experimental::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::experimental::wstring_view::npos ); - - return test; } int diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc index 778d9de3ff8..1a2ccd555b2 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc @@ -22,11 +22,9 @@ // basic_string_view::find_last_not_of -bool +void test03() { - bool test [[gnu::unused]] = true; - typedef std::experimental::wstring_view::size_type csize_type; std::experimental::wstring_view::size_type pos; csize_type npos = std::experimental::wstring_view::npos; @@ -58,9 +56,8 @@ test03() VERIFY( pos == 0 ); pos = z.find_last_not_of(L"Xa"); VERIFY( pos == 1 ); - - return test; } + int main() { diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/substr/char/1.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/substr/char/1.cc index 69452c8962a..6763b987e79 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/substr/char/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/substr/char/1.cc @@ -23,11 +23,9 @@ #include #include -bool +void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::string_view::size_type csize_type; typedef std::experimental::string_view::const_reference cref; typedef std::experimental::string_view::reference ref; @@ -70,8 +68,6 @@ test01() { VERIFY( false ); } - - return test; } int diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/substr/wchar_t/1.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/substr/wchar_t/1.cc index 31f366864b7..8de2946dde4 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/substr/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/substr/wchar_t/1.cc @@ -23,11 +23,9 @@ #include #include -bool +void test01() { - bool test [[gnu::unused]] = true; - typedef std::experimental::wstring_view::size_type csize_type; typedef std::experimental::wstring_view::const_reference cref; typedef std::experimental::wstring_view::reference ref; @@ -70,8 +68,6 @@ test01() { VERIFY( false ); } - - return test; } int diff --git a/libstdc++-v3/testsuite/experimental/string_view/operations/to_string/1.cc b/libstdc++-v3/testsuite/experimental/string_view/operations/to_string/1.cc index 2c8c4882c04..6662de50a8e 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operations/to_string/1.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operations/to_string/1.cc @@ -24,11 +24,9 @@ #include #include -bool +void test01() { - bool test [[gnu::unused]] = true; - const char str_lit[] = "123456789A"; const std::experimental::string_view sv(str_lit); char buffer[4] = { 0 }; @@ -42,8 +40,6 @@ test01() VERIFY( std::equal(s1.begin(), s1.end(), s2.begin(), s2.end()) ); auto s3 = static_cast(sv); VERIFY( s3 == s1 ); - - return test; } int diff --git a/libstdc++-v3/testsuite/experimental/string_view/operators/char/2.cc b/libstdc++-v3/testsuite/experimental/string_view/operators/char/2.cc index eda2fa4bfa6..819f565c8b5 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operators/char/2.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operators/char/2.cc @@ -115,8 +115,6 @@ template int test01() { - bool test [[gnu::unused]] = true; - std::experimental::string_view str_0("costa rica"); std::experimental::string_view str_1("costa marbella"); std::experimental::string_view str_2("cost"); diff --git a/libstdc++-v3/testsuite/experimental/string_view/operators/wchar_t/2.cc b/libstdc++-v3/testsuite/experimental/string_view/operators/wchar_t/2.cc index 2c6addfedb0..cb8f57e8fbf 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/operators/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/operators/wchar_t/2.cc @@ -115,8 +115,6 @@ template int test01() { - bool test [[gnu::unused]] = true; - std::experimental::wstring_view str_0(L"costa rica"); std::experimental::wstring_view str_1(L"costa marbella"); std::experimental::wstring_view str_2(L"cost"); diff --git a/libstdc++-v3/testsuite/experimental/unordered_map/erasure.cc b/libstdc++-v3/testsuite/experimental/unordered_map/erasure.cc index 04ec5e18942..de603dbad1b 100644 --- a/libstdc++-v3/testsuite/experimental/unordered_map/erasure.cc +++ b/libstdc++-v3/testsuite/experimental/unordered_map/erasure.cc @@ -28,8 +28,6 @@ auto is_odd_pair = [](const std::pair& p) void test01() { - bool test [[gnu::unused]] = true; - std::unordered_map um{ { 10, "A" }, { 11, "B" }, { 12, "C" }, { 14, "D" }, { 15, "E" }, { 17, "F" }, @@ -43,8 +41,6 @@ test01() void test02() { - bool test [[gnu::unused]] = true; - std::unordered_multimap umm{ { 20, "S" }, { 21, "T" }, { 22, "U" }, { 22, "V" }, { 23, "W" }, { 23, "X" }, diff --git a/libstdc++-v3/testsuite/experimental/unordered_set/erasure.cc b/libstdc++-v3/testsuite/experimental/unordered_set/erasure.cc index df2c11a661b..8c35d077615 100644 --- a/libstdc++-v3/testsuite/experimental/unordered_set/erasure.cc +++ b/libstdc++-v3/testsuite/experimental/unordered_set/erasure.cc @@ -23,8 +23,6 @@ void test01() { - bool test [[gnu::unused]] = true; - auto is_odd = [](const int i) { return i % 2 != 0; }; std::unordered_set us{ 10, 11, 12, 14, 15, 17, 18, 19 }; @@ -36,8 +34,6 @@ test01() void test02() { - bool test [[gnu::unused]] = true; - auto is_odd = [](const int i) { return i % 2 != 0; }; std::unordered_multiset ums{ 20, 21, 22, 22, 23, 23, 24, 25 }; diff --git a/libstdc++-v3/testsuite/experimental/vector/erasure.cc b/libstdc++-v3/testsuite/experimental/vector/erasure.cc index 82359614b83..762527ef301 100644 --- a/libstdc++-v3/testsuite/experimental/vector/erasure.cc +++ b/libstdc++-v3/testsuite/experimental/vector/erasure.cc @@ -23,8 +23,6 @@ void test01() { - bool test [[gnu::unused]] = true; - auto is_odd = [](const int i) { return i % 2 != 0; }; std::vector v{ 10, 11, 12, 14, 15, 17, 18, 19 }; @@ -36,8 +34,6 @@ test01() void test02() { - bool test [[gnu::unused]] = true; - std::vector v{ 0, 11, 0, 0, 22, 33, 0, 0, 44, 0 }; std::experimental::erase(v, 0); std::vector t{ 11, 22, 33, 44 }; diff --git a/libstdc++-v3/testsuite/ext/array_allocator/1.cc b/libstdc++-v3/testsuite/ext/array_allocator/1.cc index 7ae128ffdd6..232ef1d0dcb 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/1.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/1.cc @@ -29,8 +29,6 @@ array_type extern_array; void test01() { - bool test __attribute__((unused)) = true; - using __gnu_cxx::__versa_string; typedef __gnu_cxx::array_allocator allocator_type; typedef __versa_string string_type; diff --git a/libstdc++-v3/testsuite/ext/array_allocator/2.cc b/libstdc++-v3/testsuite/ext/array_allocator/2.cc index fd9fabc183e..743485f232e 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/2.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/2.cc @@ -30,8 +30,6 @@ array_type extern_array; void test01() { - bool test __attribute__((unused)) = true; - using __gnu_cxx::__versa_string; typedef __gnu_cxx::array_allocator allocator_type; typedef __versa_string string_type; diff --git a/libstdc++-v3/testsuite/ext/array_allocator/3.cc b/libstdc++-v3/testsuite/ext/array_allocator/3.cc index 832d1bce064..4904d36b1d0 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/3.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/3.cc @@ -29,8 +29,6 @@ array_type extern_array; void test01() { - bool test __attribute__((unused)) = true; - using __gnu_cxx::__versa_string; typedef __gnu_cxx::array_allocator allocator_type; typedef __versa_string string_type; diff --git a/libstdc++-v3/testsuite/ext/array_allocator/variadic_construct.cc b/libstdc++-v3/testsuite/ext/array_allocator/variadic_construct.cc index 86ee8e5979c..d92501419ad 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/variadic_construct.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/variadic_construct.cc @@ -28,7 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; typedef std::pair pair_type; typedef std::tr1::array array_type; array_type store; diff --git a/libstdc++-v3/testsuite/ext/bitmap_allocator/variadic_construct.cc b/libstdc++-v3/testsuite/ext/bitmap_allocator/variadic_construct.cc index 0f608884096..5fed671ff2b 100644 --- a/libstdc++-v3/testsuite/ext/bitmap_allocator/variadic_construct.cc +++ b/libstdc++-v3/testsuite/ext/bitmap_allocator/variadic_construct.cc @@ -25,7 +25,6 @@ void test01() { - bool test __attribute__((unused)) = true; typedef std::pair pair_type; __gnu_cxx::bitmap_allocator alloc1; diff --git a/libstdc++-v3/testsuite/ext/codecvt/1.cc b/libstdc++-v3/testsuite/ext/codecvt/1.cc index 83c96c94fbf..48d243c48a1 100644 --- a/libstdc++-v3/testsuite/ext/codecvt/1.cc +++ b/libstdc++-v3/testsuite/ext/codecvt/1.cc @@ -37,7 +37,6 @@ void test01() typedef __gnu_cxx::encoding_state state_type; typedef codecvt unicode_codecvt; - bool test __attribute__((unused)) = true; const ext_type* e_lit = "black pearl jasmine tea"; int size = strlen(e_lit); diff --git a/libstdc++-v3/testsuite/ext/codecvt/char-1.cc b/libstdc++-v3/testsuite/ext/codecvt/char-1.cc index 8517b4bd5b7..aef05c45bf4 100644 --- a/libstdc++-v3/testsuite/ext/codecvt/char-1.cc +++ b/libstdc++-v3/testsuite/ext/codecvt/char-1.cc @@ -62,7 +62,6 @@ void test01() typedef char_traits int_traits; typedef char_traits ext_traits; - bool test __attribute__((unused)) = true; const ext_type* e_lit = "black pearl jasmine tea"; int size = strlen(e_lit); diff --git a/libstdc++-v3/testsuite/ext/codecvt/char-2.cc b/libstdc++-v3/testsuite/ext/codecvt/char-2.cc index c8059fb6b81..2b035f4c3f4 100644 --- a/libstdc++-v3/testsuite/ext/codecvt/char-2.cc +++ b/libstdc++-v3/testsuite/ext/codecvt/char-2.cc @@ -62,7 +62,6 @@ void test02() typedef char_traits int_traits; typedef char_traits ext_traits; - bool test __attribute__((unused)) = true; const ext_type* e_lit = "black pearl jasmine tea"; int size = strlen(e_lit); diff --git a/libstdc++-v3/testsuite/ext/codecvt/wchar_t.cc b/libstdc++-v3/testsuite/ext/codecvt/wchar_t.cc index 0e4a6794f25..62fde65fe80 100644 --- a/libstdc++-v3/testsuite/ext/codecvt/wchar_t.cc +++ b/libstdc++-v3/testsuite/ext/codecvt/wchar_t.cc @@ -39,7 +39,6 @@ void test01() typedef char_traits int_traits; typedef char_traits ext_traits; - bool test __attribute__((unused)) = true; int size = 23; char e_lit_base[96] __attribute__((aligned(__alignof__(ext_type)))) = { diff --git a/libstdc++-v3/testsuite/ext/enc_filebuf/char/13189.cc b/libstdc++-v3/testsuite/ext/enc_filebuf/char/13189.cc index 1bfc006b58f..c5a6d2e892c 100644 --- a/libstdc++-v3/testsuite/ext/enc_filebuf/char/13189.cc +++ b/libstdc++-v3/testsuite/ext/enc_filebuf/char/13189.cc @@ -28,7 +28,6 @@ void test01() typedef filebuf_type::state_type state_type; typedef codecvt enc_codecvt; - bool test __attribute__((unused)) = true; ios_base::openmode mode = ios_base::in | ios_base::out | ios_base::trunc; try { diff --git a/libstdc++-v3/testsuite/ext/enc_filebuf/char/13598.cc b/libstdc++-v3/testsuite/ext/enc_filebuf/char/13598.cc index d9e101e21b2..f83f478784c 100644 --- a/libstdc++-v3/testsuite/ext/enc_filebuf/char/13598.cc +++ b/libstdc++-v3/testsuite/ext/enc_filebuf/char/13598.cc @@ -29,7 +29,6 @@ int main() { - bool test __attribute__((unused)) = true; typedef char char_type; typedef __gnu_cxx::enc_filebuf filebuf_type; typedef filebuf_type::state_type state_type; diff --git a/libstdc++-v3/testsuite/ext/enc_filebuf/wchar_t/13189.cc b/libstdc++-v3/testsuite/ext/enc_filebuf/wchar_t/13189.cc index 965cac6e4ef..169af8d828c 100644 --- a/libstdc++-v3/testsuite/ext/enc_filebuf/wchar_t/13189.cc +++ b/libstdc++-v3/testsuite/ext/enc_filebuf/wchar_t/13189.cc @@ -28,7 +28,6 @@ void test01() typedef filebuf_type::state_type state_type; typedef codecvt enc_codecvt; - bool test __attribute__((unused)) = true; ios_base::openmode mode = ios_base::in | ios_base::out | ios_base::trunc; try { diff --git a/libstdc++-v3/testsuite/ext/ext_pointer/1.cc b/libstdc++-v3/testsuite/ext/ext_pointer/1.cc index 3c61866b978..f4160d92350 100644 --- a/libstdc++-v3/testsuite/ext/ext_pointer/1.cc +++ b/libstdc++-v3/testsuite/ext/ext_pointer/1.cc @@ -31,8 +31,6 @@ using __gnu_cxx::__const_pointer_cast; void test01() { - bool test __attribute__((unused)) = true; - typedef _Pointer_adapter<_Relative_pointer_impl > pointer; typedef _Pointer_adapter<_Relative_pointer_impl > const_pointer; @@ -100,8 +98,6 @@ void inc3(_Pointer_adapter<_Relative_pointer_impl > a) { } void test02() { - bool test __attribute__((unused)) = true; - B b; b.i = 2; b.j = 2; @@ -150,8 +146,6 @@ void test02() { } void test03() { - bool test __attribute__((unused)) = true; - B b; B* bPtr = &b; A* aPtr __attribute__((unused)) = __static_pointer_cast(bPtr); @@ -172,8 +166,6 @@ void test03() { // Confirm the usability of the __static_pointer_cast<> template function // to transform between _Pointer_adapter and standard versions. void test04() { - bool test __attribute__((unused)) = true; - B b; B_pointer bPtr = &b; diff --git a/libstdc++-v3/testsuite/ext/ext_pointer/1_neg.cc b/libstdc++-v3/testsuite/ext/ext_pointer/1_neg.cc index 7a2e79ba28a..d27f885cc96 100644 --- a/libstdc++-v3/testsuite/ext/ext_pointer/1_neg.cc +++ b/libstdc++-v3/testsuite/ext/ext_pointer/1_neg.cc @@ -45,8 +45,6 @@ typedef _Pointer_adapter<_Relative_pointer_impl > const_A_pointer; void test01(void) { - bool test __attribute__((unused)) = true; - A a; B b; diff --git a/libstdc++-v3/testsuite/ext/malloc_allocator/variadic_construct.cc b/libstdc++-v3/testsuite/ext/malloc_allocator/variadic_construct.cc index fd5050aab66..065c67a6daf 100644 --- a/libstdc++-v3/testsuite/ext/malloc_allocator/variadic_construct.cc +++ b/libstdc++-v3/testsuite/ext/malloc_allocator/variadic_construct.cc @@ -25,7 +25,6 @@ void test01() { - bool test __attribute__((unused)) = true; typedef std::pair pair_type; __gnu_cxx::malloc_allocator alloc1; diff --git a/libstdc++-v3/testsuite/ext/mt_allocator/check_allocate_big_per_type.cc b/libstdc++-v3/testsuite/ext/mt_allocator/check_allocate_big_per_type.cc index df2addac461..a29b2775b63 100644 --- a/libstdc++-v3/testsuite/ext/mt_allocator/check_allocate_big_per_type.cc +++ b/libstdc++-v3/testsuite/ext/mt_allocator/check_allocate_big_per_type.cc @@ -27,8 +27,6 @@ struct big { char array[256]; }; // __per_type_pool_policy void test01() { - bool test __attribute__((unused)) = true; - typedef big value_type; using __gnu_cxx::__pool; diff --git a/libstdc++-v3/testsuite/ext/mt_allocator/tune-1.cc b/libstdc++-v3/testsuite/ext/mt_allocator/tune-1.cc index 26f9e31713e..c75a08fcb96 100644 --- a/libstdc++-v3/testsuite/ext/mt_allocator/tune-1.cc +++ b/libstdc++-v3/testsuite/ext/mt_allocator/tune-1.cc @@ -32,8 +32,6 @@ // __common_pool_policy void test01() { - bool test __attribute__((unused)) = true; - using __gnu_cxx::__pool; using __gnu_cxx::__common_pool_policy; diff --git a/libstdc++-v3/testsuite/ext/mt_allocator/tune-2.cc b/libstdc++-v3/testsuite/ext/mt_allocator/tune-2.cc index edbcc09ad40..2480cf53875 100644 --- a/libstdc++-v3/testsuite/ext/mt_allocator/tune-2.cc +++ b/libstdc++-v3/testsuite/ext/mt_allocator/tune-2.cc @@ -32,8 +32,6 @@ // __per_type_pool_policy void test02() { - bool test __attribute__((unused)) = true; - typedef __gnu_test::pod_int value_type; using __gnu_cxx::__pool; diff --git a/libstdc++-v3/testsuite/ext/mt_allocator/tune-3.cc b/libstdc++-v3/testsuite/ext/mt_allocator/tune-3.cc index 6fe9dc2c955..d897f361e24 100644 --- a/libstdc++-v3/testsuite/ext/mt_allocator/tune-3.cc +++ b/libstdc++-v3/testsuite/ext/mt_allocator/tune-3.cc @@ -41,8 +41,6 @@ struct test_policy<__common_pool_policy<__pool, false> > template void test03() { - bool test __attribute__((unused)) = true; - typedef __gnu_cxx::__pool_base::_Tune tune_type; typedef _Tp value_type; typedef _Cp policy_type; diff --git a/libstdc++-v3/testsuite/ext/mt_allocator/tune-4.cc b/libstdc++-v3/testsuite/ext/mt_allocator/tune-4.cc index 26bc96ede57..780ebff9fc7 100644 --- a/libstdc++-v3/testsuite/ext/mt_allocator/tune-4.cc +++ b/libstdc++-v3/testsuite/ext/mt_allocator/tune-4.cc @@ -48,8 +48,6 @@ struct pod2 template void test04() { - bool test __attribute__((unused)) = true; - typedef __gnu_cxx::__pool_base::_Tune tune_type; typedef _Tp value_type; typedef _Cp policy_type; diff --git a/libstdc++-v3/testsuite/ext/mt_allocator/variadic_construct.cc b/libstdc++-v3/testsuite/ext/mt_allocator/variadic_construct.cc index b9bb5b4c958..b54e9efc1bc 100644 --- a/libstdc++-v3/testsuite/ext/mt_allocator/variadic_construct.cc +++ b/libstdc++-v3/testsuite/ext/mt_allocator/variadic_construct.cc @@ -25,7 +25,6 @@ void test01() { - bool test __attribute__((unused)) = true; typedef std::pair pair_type; __gnu_cxx::__mt_alloc alloc1; diff --git a/libstdc++-v3/testsuite/ext/new_allocator/variadic_construct.cc b/libstdc++-v3/testsuite/ext/new_allocator/variadic_construct.cc index 694e58a436f..cde3828b859 100644 --- a/libstdc++-v3/testsuite/ext/new_allocator/variadic_construct.cc +++ b/libstdc++-v3/testsuite/ext/new_allocator/variadic_construct.cc @@ -25,7 +25,6 @@ void test01() { - bool test __attribute__((unused)) = true; typedef std::pair pair_type; __gnu_cxx::new_allocator alloc1; diff --git a/libstdc++-v3/testsuite/ext/pod_char_traits.cc b/libstdc++-v3/testsuite/ext/pod_char_traits.cc index 0c6a70d744d..384c04e9539 100644 --- a/libstdc++-v3/testsuite/ext/pod_char_traits.cc +++ b/libstdc++-v3/testsuite/ext/pod_char_traits.cc @@ -32,7 +32,7 @@ int main() typedef character char_type; typedef std::char_traits traits_type; - bool test __attribute__((unused)) = true; + bool test = true; // 1 char_type <-> value_type conversions value_type uc1 = 'c'; diff --git a/libstdc++-v3/testsuite/ext/pool_allocator/variadic_construct.cc b/libstdc++-v3/testsuite/ext/pool_allocator/variadic_construct.cc index cbcba3efa5c..8e48eec6b3b 100644 --- a/libstdc++-v3/testsuite/ext/pool_allocator/variadic_construct.cc +++ b/libstdc++-v3/testsuite/ext/pool_allocator/variadic_construct.cc @@ -25,7 +25,6 @@ void test01() { - bool test __attribute__((unused)) = true; typedef std::pair pair_type; __gnu_cxx::__pool_alloc alloc1; diff --git a/libstdc++-v3/testsuite/ext/random/arcsine_distribution/cons/default.cc b/libstdc++-v3/testsuite/ext/random/arcsine_distribution/cons/default.cc index 8b1627a6278..dec037fdb50 100644 --- a/libstdc++-v3/testsuite/ext/random/arcsine_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/arcsine_distribution/cons/default.cc @@ -26,8 +26,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::arcsine_distribution<> u; VERIFY( u.a() == 0.0 ); VERIFY( u.b() == 1.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/arcsine_distribution/cons/parms.cc b/libstdc++-v3/testsuite/ext/random/arcsine_distribution/cons/parms.cc index 723c1366eb2..d01d550826a 100644 --- a/libstdc++-v3/testsuite/ext/random/arcsine_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/ext/random/arcsine_distribution/cons/parms.cc @@ -26,8 +26,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::arcsine_distribution<> u(-1.5, 3.0); VERIFY( u.a() == -1.5 ); VERIFY( u.b() == 3.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/arcsine_distribution/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/arcsine_distribution/operators/equal.cc index 090944bf594..55c4b24d8b1 100644 --- a/libstdc++-v3/testsuite/ext/random/arcsine_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/arcsine_distribution/operators/equal.cc @@ -26,8 +26,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::arcsine_distribution u(-2.0, 3.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/ext/random/arcsine_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/arcsine_distribution/operators/inequal.cc index 4305813ff45..abf678d82de 100644 --- a/libstdc++-v3/testsuite/ext/random/arcsine_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/arcsine_distribution/operators/inequal.cc @@ -26,8 +26,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::arcsine_distribution u(-2.0, 3.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/ext/random/arcsine_distribution/operators/serialize.cc b/libstdc++-v3/testsuite/ext/random/arcsine_distribution/operators/serialize.cc index 00fd52fd3b8..3c0faa394ff 100644 --- a/libstdc++-v3/testsuite/ext/random/arcsine_distribution/operators/serialize.cc +++ b/libstdc++-v3/testsuite/ext/random/arcsine_distribution/operators/serialize.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::stringstream str; __gnu_cxx::arcsine_distribution u(-1.5, 3.0), v; std::minstd_rand0 rng; diff --git a/libstdc++-v3/testsuite/ext/random/beta_distribution/cons/default.cc b/libstdc++-v3/testsuite/ext/random/beta_distribution/cons/default.cc index 505f544493b..713b20b255b 100644 --- a/libstdc++-v3/testsuite/ext/random/beta_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/beta_distribution/cons/default.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::beta_distribution<> u; VERIFY( u.alpha() == 1.0 ); VERIFY( u.beta() == 1.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/beta_distribution/cons/parms.cc b/libstdc++-v3/testsuite/ext/random/beta_distribution/cons/parms.cc index d3b91149fe0..56214393238 100644 --- a/libstdc++-v3/testsuite/ext/random/beta_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/ext/random/beta_distribution/cons/parms.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::beta_distribution<> u(1.5, 3.0); VERIFY( u.alpha() == 1.5 ); VERIFY( u.beta() == 3.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/beta_distribution/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/beta_distribution/operators/equal.cc index cae66984414..e304c5b5d03 100644 --- a/libstdc++-v3/testsuite/ext/random/beta_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/beta_distribution/operators/equal.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::beta_distribution u(1.5, 3.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/ext/random/beta_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/beta_distribution/operators/inequal.cc index 6bcabcf1865..e4ca655c431 100644 --- a/libstdc++-v3/testsuite/ext/random/beta_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/beta_distribution/operators/inequal.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::beta_distribution u(1.5, 3.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/ext/random/hoyt_distribution/cons/default.cc b/libstdc++-v3/testsuite/ext/random/hoyt_distribution/cons/default.cc index 938bbef5ed6..db823180380 100644 --- a/libstdc++-v3/testsuite/ext/random/hoyt_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/hoyt_distribution/cons/default.cc @@ -26,8 +26,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::hoyt_distribution<> u; VERIFY( u.q() == 0.5 ); VERIFY( u.omega() == 1.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/hoyt_distribution/cons/parms.cc b/libstdc++-v3/testsuite/ext/random/hoyt_distribution/cons/parms.cc index fd50f432cab..b6ea0b8dba9 100644 --- a/libstdc++-v3/testsuite/ext/random/hoyt_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/ext/random/hoyt_distribution/cons/parms.cc @@ -26,8 +26,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::hoyt_distribution<> u(0.05, 3.0); VERIFY( u.q() == 0.05 ); VERIFY( u.omega() == 3.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/hoyt_distribution/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/hoyt_distribution/operators/equal.cc index 95bb1871b09..03775f8c652 100644 --- a/libstdc++-v3/testsuite/ext/random/hoyt_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/hoyt_distribution/operators/equal.cc @@ -26,8 +26,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::hoyt_distribution u(0.05, 3.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/ext/random/hoyt_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/hoyt_distribution/operators/inequal.cc index daafddd15d8..1c07cfc1b6d 100644 --- a/libstdc++-v3/testsuite/ext/random/hoyt_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/hoyt_distribution/operators/inequal.cc @@ -26,8 +26,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::hoyt_distribution u(0.05, 3.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/ext/random/hoyt_distribution/operators/serialize.cc b/libstdc++-v3/testsuite/ext/random/hoyt_distribution/operators/serialize.cc index a9bd760b380..a2c1f2cfc86 100644 --- a/libstdc++-v3/testsuite/ext/random/hoyt_distribution/operators/serialize.cc +++ b/libstdc++-v3/testsuite/ext/random/hoyt_distribution/operators/serialize.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::stringstream str; __gnu_cxx::hoyt_distribution u(0.05, 3.0), v; std::minstd_rand0 rng; diff --git a/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/cons/default.cc b/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/cons/default.cc index f7a23dcad85..f17f081cef0 100644 --- a/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test [[gnu::unused]] = true; - __gnu_cxx::hypergeometric_distribution<> u; VERIFY( u.total_size() == 10 ); VERIFY( u.successful_size() == 5 ); diff --git a/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/cons/parms.cc b/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/cons/parms.cc index 2cd5ebeadf2..ac5ec68e024 100644 --- a/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test [[gnu::unused]] = true; - __gnu_cxx::hypergeometric_distribution<> u(15, 3, 2); VERIFY( u.total_size() == 15 ); VERIFY( u.successful_size() == 3 ); diff --git a/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/equal.cc index 55b798700b5..ed0072ba900 100644 --- a/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test [[gnu::unused]] = true; - __gnu_cxx::hypergeometric_distribution u(20, 3, 2), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/inequal.cc index 16a6bf646ad..b40a74a81da 100644 --- a/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test [[gnu::unused]] = true; - __gnu_cxx::hypergeometric_distribution u(20, 3, 5), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/serialize.cc b/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/serialize.cc index 14b785ce532..f4cdd0c2486 100644 --- a/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/serialize.cc +++ b/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/serialize.cc @@ -30,8 +30,6 @@ void test01() { - bool test [[gnu::unused]] = true; - std::stringstream str; __gnu_cxx::hypergeometric_distribution u(15, 3, 6), v; std::minstd_rand0 rng; diff --git a/libstdc++-v3/testsuite/ext/random/k_distribution/cons/default.cc b/libstdc++-v3/testsuite/ext/random/k_distribution/cons/default.cc index a7ec6608a68..cbe41714acd 100644 --- a/libstdc++-v3/testsuite/ext/random/k_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/k_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::k_distribution<> u; VERIFY( u.lambda() == 1.0 ); VERIFY( u.mu() == 1.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/k_distribution/cons/parms.cc b/libstdc++-v3/testsuite/ext/random/k_distribution/cons/parms.cc index beb87be3798..abdbe05f763 100644 --- a/libstdc++-v3/testsuite/ext/random/k_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/ext/random/k_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::k_distribution<> u(2.0, 1.5, 3.0); VERIFY( u.lambda() == 2.0 ); VERIFY( u.mu() == 1.5 ); diff --git a/libstdc++-v3/testsuite/ext/random/k_distribution/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/k_distribution/operators/equal.cc index e42361f31d5..d216d38eeb6 100644 --- a/libstdc++-v3/testsuite/ext/random/k_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/k_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::k_distribution u(2.0, 1.5, 3.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/ext/random/k_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/k_distribution/operators/inequal.cc index 06ae178e4a7..fae841704fb 100644 --- a/libstdc++-v3/testsuite/ext/random/k_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/k_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::k_distribution u(2.0, 1.5, 3.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/ext/random/k_distribution/operators/serialize.cc b/libstdc++-v3/testsuite/ext/random/k_distribution/operators/serialize.cc index bc518e8f53d..d572cc9b7ae 100644 --- a/libstdc++-v3/testsuite/ext/random/k_distribution/operators/serialize.cc +++ b/libstdc++-v3/testsuite/ext/random/k_distribution/operators/serialize.cc @@ -30,8 +30,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::stringstream str; __gnu_cxx::k_distribution u(2.0, 1.5, 3.0), v; std::minstd_rand0 rng; diff --git a/libstdc++-v3/testsuite/ext/random/logistic_distribution/cons/default.cc b/libstdc++-v3/testsuite/ext/random/logistic_distribution/cons/default.cc index 7f153aa96b1..b7340654cda 100644 --- a/libstdc++-v3/testsuite/ext/random/logistic_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/logistic_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test [[gnu::unused]] = true; - __gnu_cxx::logistic_distribution<> u; VERIFY( u.a() == 0.0 ); VERIFY( u.b() == 1.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/logistic_distribution/cons/parms.cc b/libstdc++-v3/testsuite/ext/random/logistic_distribution/cons/parms.cc index 7531ed5e7f4..b222fd7d43e 100644 --- a/libstdc++-v3/testsuite/ext/random/logistic_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/ext/random/logistic_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test [[gnu::unused]] = true; - __gnu_cxx::logistic_distribution<> u(1.5, 3.0); VERIFY( u.a() == 1.5 ); VERIFY( u.b() == 3.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/logistic_distribution/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/logistic_distribution/operators/equal.cc index 1248632a255..051ac58fe0d 100644 --- a/libstdc++-v3/testsuite/ext/random/logistic_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/logistic_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test [[gnu::unused]] = true; - __gnu_cxx::logistic_distribution u(2.0, 3.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/ext/random/logistic_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/logistic_distribution/operators/inequal.cc index a8794c90422..c4a7fc9d908 100644 --- a/libstdc++-v3/testsuite/ext/random/logistic_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/logistic_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test [[gnu::unused]] = true; - __gnu_cxx::logistic_distribution u(2.0, 3.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/ext/random/logistic_distribution/operators/serialize.cc b/libstdc++-v3/testsuite/ext/random/logistic_distribution/operators/serialize.cc index a3acbf254d5..4e1c4581637 100644 --- a/libstdc++-v3/testsuite/ext/random/logistic_distribution/operators/serialize.cc +++ b/libstdc++-v3/testsuite/ext/random/logistic_distribution/operators/serialize.cc @@ -30,8 +30,6 @@ void test01() { - bool test [[gnu::unused]] = true; - std::stringstream str; __gnu_cxx::logistic_distribution u(1.5, 3.0), v; std::minstd_rand0 rng; diff --git a/libstdc++-v3/testsuite/ext/random/nakagami_distribution/cons/default.cc b/libstdc++-v3/testsuite/ext/random/nakagami_distribution/cons/default.cc index 4877abca5da..08c650cfc52 100644 --- a/libstdc++-v3/testsuite/ext/random/nakagami_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/nakagami_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::nakagami_distribution<> u; VERIFY( u.mu() == 1.0 ); VERIFY( u.omega() == 1.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/nakagami_distribution/cons/parms.cc b/libstdc++-v3/testsuite/ext/random/nakagami_distribution/cons/parms.cc index 94727d844d2..4cdc4866f4d 100644 --- a/libstdc++-v3/testsuite/ext/random/nakagami_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/ext/random/nakagami_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::nakagami_distribution<> u(1.5, 3.0); VERIFY( u.mu() == 1.5 ); VERIFY( u.omega() == 3.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/nakagami_distribution/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/nakagami_distribution/operators/equal.cc index 60f6552d276..0b7de296954 100644 --- a/libstdc++-v3/testsuite/ext/random/nakagami_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/nakagami_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::nakagami_distribution u(2.0, 3.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/ext/random/nakagami_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/nakagami_distribution/operators/inequal.cc index 3fa865fe4f7..e9807a87489 100644 --- a/libstdc++-v3/testsuite/ext/random/nakagami_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/nakagami_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::nakagami_distribution u(2.0, 3.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/ext/random/nakagami_distribution/operators/serialize.cc b/libstdc++-v3/testsuite/ext/random/nakagami_distribution/operators/serialize.cc index 27e2ec4e20e..c2f90f56f51 100644 --- a/libstdc++-v3/testsuite/ext/random/nakagami_distribution/operators/serialize.cc +++ b/libstdc++-v3/testsuite/ext/random/nakagami_distribution/operators/serialize.cc @@ -30,8 +30,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::stringstream str; __gnu_cxx::nakagami_distribution u(1.5, 3.0), v; std::minstd_rand0 rng; diff --git a/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/cons/default.cc b/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/cons/default.cc index e78e85b4f8c..0c261118fd2 100644 --- a/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/cons/default.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::normal_mv_distribution<2> u; VERIFY( u.mean()[0] == 0.0 ); VERIFY( u.mean()[1] == 0.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/cons/parms.cc b/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/cons/parms.cc index b9d3166288e..33c4cfbe685 100644 --- a/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/cons/parms.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::normal_mv_distribution<2> u({5.0, 4.0}, {4.0, 9.0}); VERIFY( u.mean()[0] == 5.0 ); VERIFY( u.mean()[1] == 4.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/operators/equal.cc index 1196eedb67c..523d196df1b 100644 --- a/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/operators/equal.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::normal_mv_distribution<2,double> u({5.0, 4.0}, {2.0, 1.5}), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/operators/inequal.cc index ac154dd804b..0d11698f248 100644 --- a/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/normal_mv_distribution/operators/inequal.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::normal_mv_distribution<2,double> u({3.0, 5.0}, {1.0, 2.0}), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/ext/random/pareto_distribution/cons/default.cc b/libstdc++-v3/testsuite/ext/random/pareto_distribution/cons/default.cc index d5359e6bb07..8035023fc5c 100644 --- a/libstdc++-v3/testsuite/ext/random/pareto_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/pareto_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::pareto_distribution<> u; VERIFY( u.alpha() == 1.0 ); VERIFY( u.mu() == 1.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/pareto_distribution/cons/parms.cc b/libstdc++-v3/testsuite/ext/random/pareto_distribution/cons/parms.cc index ef25dc8c654..16c06f97a23 100644 --- a/libstdc++-v3/testsuite/ext/random/pareto_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/ext/random/pareto_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::pareto_distribution<> u(1.5, 3.0); VERIFY( u.alpha() == 1.5 ); VERIFY( u.mu() == 3.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/pareto_distribution/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/pareto_distribution/operators/equal.cc index 7a9d29b8b6a..9e254f9c7a9 100644 --- a/libstdc++-v3/testsuite/ext/random/pareto_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/pareto_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::pareto_distribution u(2.0, 3.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/ext/random/pareto_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/pareto_distribution/operators/inequal.cc index df6fda02552..3bfeccbdc0d 100644 --- a/libstdc++-v3/testsuite/ext/random/pareto_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/pareto_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::pareto_distribution u(2.0, 3.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/ext/random/pareto_distribution/operators/serialize.cc b/libstdc++-v3/testsuite/ext/random/pareto_distribution/operators/serialize.cc index 2485889d7e2..4143bd29df8 100644 --- a/libstdc++-v3/testsuite/ext/random/pareto_distribution/operators/serialize.cc +++ b/libstdc++-v3/testsuite/ext/random/pareto_distribution/operators/serialize.cc @@ -30,8 +30,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::stringstream str; __gnu_cxx::pareto_distribution u(1.5, 3.0), v; std::minstd_rand0 rng; diff --git a/libstdc++-v3/testsuite/ext/random/rice_distribution/cons/default.cc b/libstdc++-v3/testsuite/ext/random/rice_distribution/cons/default.cc index 72bf5c03f1c..f2c7766305e 100644 --- a/libstdc++-v3/testsuite/ext/random/rice_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/rice_distribution/cons/default.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::rice_distribution<> u; VERIFY( u.nu() == 0.0 ); VERIFY( u.sigma() == 1.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/rice_distribution/cons/parms.cc b/libstdc++-v3/testsuite/ext/random/rice_distribution/cons/parms.cc index 8636cbef1e5..fb1bd0cb522 100644 --- a/libstdc++-v3/testsuite/ext/random/rice_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/ext/random/rice_distribution/cons/parms.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::rice_distribution<> u(1.5, 3.0); VERIFY( u.nu() == 1.5 ); VERIFY( u.sigma() == 3.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/rice_distribution/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/rice_distribution/operators/equal.cc index b7ab05d4aa5..67a44d51e72 100644 --- a/libstdc++-v3/testsuite/ext/random/rice_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/rice_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::rice_distribution u(2.0, 3.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/ext/random/rice_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/rice_distribution/operators/inequal.cc index f2c4c830d08..f3a7871e670 100644 --- a/libstdc++-v3/testsuite/ext/random/rice_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/rice_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::rice_distribution u(2.0, 3.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/ext/random/rice_distribution/operators/serialize.cc b/libstdc++-v3/testsuite/ext/random/rice_distribution/operators/serialize.cc index 53a40048b41..c830fadf79e 100644 --- a/libstdc++-v3/testsuite/ext/random/rice_distribution/operators/serialize.cc +++ b/libstdc++-v3/testsuite/ext/random/rice_distribution/operators/serialize.cc @@ -30,8 +30,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::stringstream str; __gnu_cxx::rice_distribution u(1.5, 3.0), v; std::minstd_rand0 rng; diff --git a/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/default.cc b/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/default.cc index 82bbd8d9409..8e600ee538f 100644 --- a/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/default.cc @@ -49,8 +49,6 @@ void run_test(std::initializer_list vals) void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::sfmt19937 e; VERIFY( e.min() == 0 ); diff --git a/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/equal.cc index b1beb4572eb..d1b4943e16d 100644 --- a/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/equal.cc @@ -31,8 +31,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::sfmt19937 u, v; VERIFY( u == v ); diff --git a/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/inequal.cc index 86b7e303991..e0e2cd93229 100644 --- a/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/inequal.cc @@ -30,8 +30,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::sfmt19937 u, v; VERIFY( !(u != v) ); diff --git a/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/serialize.cc b/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/serialize.cc index 12efd7a9fab..7abba194f76 100644 --- a/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/serialize.cc +++ b/libstdc++-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/operators/serialize.cc @@ -32,8 +32,6 @@ void test01() { - bool test __attribute__((unused)) = true; - std::stringstream str; __gnu_cxx::sfmt19937 u, v; diff --git a/libstdc++-v3/testsuite/ext/random/triangular_distribution/cons/default.cc b/libstdc++-v3/testsuite/ext/random/triangular_distribution/cons/default.cc index f860532246c..3cc37685243 100644 --- a/libstdc++-v3/testsuite/ext/random/triangular_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/triangular_distribution/cons/default.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::triangular_distribution<> u; VERIFY( u.a() == 0.0 ); VERIFY( u.b() == 0.5 ); diff --git a/libstdc++-v3/testsuite/ext/random/triangular_distribution/cons/parms.cc b/libstdc++-v3/testsuite/ext/random/triangular_distribution/cons/parms.cc index 57d613a114b..400590a1980 100644 --- a/libstdc++-v3/testsuite/ext/random/triangular_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/ext/random/triangular_distribution/cons/parms.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::triangular_distribution<> u(1.5, 3.0, 3.5); VERIFY( u.a() == 1.5 ); VERIFY( u.b() == 3.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/triangular_distribution/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/triangular_distribution/operators/equal.cc index d57f73c2a56..84d547eb397 100644 --- a/libstdc++-v3/testsuite/ext/random/triangular_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/triangular_distribution/operators/equal.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::triangular_distribution u(1.5, 3.0, 4.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/ext/random/triangular_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/triangular_distribution/operators/inequal.cc index 19f36bc8d4f..eae39074f6c 100644 --- a/libstdc++-v3/testsuite/ext/random/triangular_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/triangular_distribution/operators/inequal.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::triangular_distribution u(1.5, 3.0, 5.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc b/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc index 6df971c9e07..b945357ed51 100644 --- a/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc @@ -24,13 +24,10 @@ // 26.5.1.6 Random number distribution requirements [rand.req.dist] #include -#include void test01() { - bool test [[gnu::unused]] = true; - __gnu_cxx::uniform_on_sphere_distribution<2> u2; __gnu_cxx::uniform_on_sphere_distribution<3> u3; __gnu_cxx::uniform_on_sphere_distribution<4, double> u4; diff --git a/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/equal.cc index 252c99aa6d9..3a3e3552ce4 100644 --- a/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/equal.cc @@ -28,8 +28,6 @@ void test01() { - bool test [[gnu::unused]] = true; - __gnu_cxx::uniform_on_sphere_distribution<3> u, v; VERIFY( u == v ); diff --git a/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/generate.cc b/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/generate.cc index b6fef7cf3ac..f7f584b75e9 100644 --- a/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/generate.cc +++ b/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/generate.cc @@ -30,7 +30,6 @@ void test01() { - bool test [[gnu::unused]] = true; std::minstd_rand0 rng; __gnu_cxx::uniform_on_sphere_distribution<3> u3; diff --git a/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/inequal.cc index 23366dde766..12433505350 100644 --- a/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/inequal.cc @@ -28,8 +28,6 @@ void test01() { - bool test [[gnu::unused]] = true; - __gnu_cxx::uniform_on_sphere_distribution<3> u, v; VERIFY( !(u != v) ); diff --git a/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/serialize.cc b/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/serialize.cc index 67265366dbe..1157e312956 100644 --- a/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/serialize.cc +++ b/libstdc++-v3/testsuite/ext/random/uniform_on_sphere_distribution/operators/serialize.cc @@ -30,8 +30,6 @@ void test01() { - bool test [[gnu::unused]] = true; - std::stringstream str; __gnu_cxx::uniform_on_sphere_distribution<3> u, v; std::minstd_rand0 rng; diff --git a/libstdc++-v3/testsuite/ext/random/von_mises_distribution/cons/default.cc b/libstdc++-v3/testsuite/ext/random/von_mises_distribution/cons/default.cc index 141e6faf5b0..022e51e4fe4 100644 --- a/libstdc++-v3/testsuite/ext/random/von_mises_distribution/cons/default.cc +++ b/libstdc++-v3/testsuite/ext/random/von_mises_distribution/cons/default.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::von_mises_distribution<> u; VERIFY( u.mu() == 0.0 ); VERIFY( u.kappa() == 1.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/von_mises_distribution/cons/parms.cc b/libstdc++-v3/testsuite/ext/random/von_mises_distribution/cons/parms.cc index b5657370c18..aee72f91bbc 100644 --- a/libstdc++-v3/testsuite/ext/random/von_mises_distribution/cons/parms.cc +++ b/libstdc++-v3/testsuite/ext/random/von_mises_distribution/cons/parms.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::von_mises_distribution<> u(1.5, 3.0); VERIFY( u.mu() == 1.5 ); VERIFY( u.kappa() == 3.0 ); diff --git a/libstdc++-v3/testsuite/ext/random/von_mises_distribution/operators/equal.cc b/libstdc++-v3/testsuite/ext/random/von_mises_distribution/operators/equal.cc index 88c26af2852..65fc6844462 100644 --- a/libstdc++-v3/testsuite/ext/random/von_mises_distribution/operators/equal.cc +++ b/libstdc++-v3/testsuite/ext/random/von_mises_distribution/operators/equal.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::von_mises_distribution u(1.5, 3.0), v, w; VERIFY( v == w ); diff --git a/libstdc++-v3/testsuite/ext/random/von_mises_distribution/operators/inequal.cc b/libstdc++-v3/testsuite/ext/random/von_mises_distribution/operators/inequal.cc index 997813ab846..cf19415555f 100644 --- a/libstdc++-v3/testsuite/ext/random/von_mises_distribution/operators/inequal.cc +++ b/libstdc++-v3/testsuite/ext/random/von_mises_distribution/operators/inequal.cc @@ -27,8 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::von_mises_distribution u(1.5, 3.0), v, w; VERIFY( u != v ); diff --git a/libstdc++-v3/testsuite/ext/rope/2.cc b/libstdc++-v3/testsuite/ext/rope/2.cc index dbe2e9eb00b..37447237623 100644 --- a/libstdc++-v3/testsuite/ext/rope/2.cc +++ b/libstdc++-v3/testsuite/ext/rope/2.cc @@ -25,7 +25,6 @@ test01() { using namespace std; using namespace __gnu_cxx; - bool test __attribute__((unused)) = true; crope r(10000, 'x'); crope r2 = r + "abc" + r; diff --git a/libstdc++-v3/testsuite/ext/rope/3.cc b/libstdc++-v3/testsuite/ext/rope/3.cc index 6eb5a658487..4277dfab8a7 100644 --- a/libstdc++-v3/testsuite/ext/rope/3.cc +++ b/libstdc++-v3/testsuite/ext/rope/3.cc @@ -79,7 +79,6 @@ void test01() { using namespace __gnu_cxx; - bool test __attribute__((unused)) = true; crope r; r = multiply(crope(base), 100000); diff --git a/libstdc++-v3/testsuite/ext/rope/4.cc b/libstdc++-v3/testsuite/ext/rope/4.cc index f73e8bffadc..39ef43445be 100644 --- a/libstdc++-v3/testsuite/ext/rope/4.cc +++ b/libstdc++-v3/testsuite/ext/rope/4.cc @@ -23,8 +23,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::crope r1("wibble"); __gnu_cxx::crope r2; std::copy( r1.begin(), r1.end(), diff --git a/libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc b/libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc index aa558164bbf..068f02328dd 100644 --- a/libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc +++ b/libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc @@ -44,7 +44,6 @@ void* thread_main(void *) // Please note that the memory leak in the rope implementation with // this test case, existed before and after fixing this bug... - bool test __attribute__((unused)) = true; VERIFY( !std::strcmp (data4, "barbazbonglehellohellohello") ); return 0; } @@ -52,8 +51,6 @@ void* thread_main(void *) int main() { - bool test __attribute__((unused)) = true; - pthread_t tid[max_thread_count]; #if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500 diff --git a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc index 6c4f8faad92..bffdb4e13d0 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc @@ -46,7 +46,6 @@ test01() long double d = __gnu_cxx::conf_hyperg(al, cl, xl); long double e = __gnu_cxx::conf_hypergl(al, cl, xl); - bool test [[gnu::unused]] = true; VERIFY(std::isnan(a)); VERIFY(std::isnan(b)); VERIFY(std::isnan(c)); @@ -77,7 +76,6 @@ test02() long double d = __gnu_cxx::conf_hyperg(al, cl, xl); long double e = __gnu_cxx::conf_hypergl(al, cl, xl); - bool test [[gnu::unused]] = true; VERIFY(std::isnan(a)); VERIFY(std::isnan(b)); VERIFY(std::isnan(c)); @@ -108,7 +106,6 @@ test03() long double d = __gnu_cxx::conf_hyperg(al, cl, xl); long double e = __gnu_cxx::conf_hypergl(al, cl, xl); - bool test [[gnu::unused]] = true; VERIFY(std::isnan(a)); VERIFY(std::isnan(b)); VERIFY(std::isnan(c)); diff --git a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc index d863ae8df93..b1001642ddd 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc @@ -3610,7 +3610,6 @@ template void test(const testcase_conf_hyperg (&data)[Num], Tp toler) { - bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); diff --git a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc index 31b81a69381..7127096f5c3 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc @@ -50,7 +50,6 @@ test01() long double d = __gnu_cxx::hyperg(al, bl, cl, xl); long double e = __gnu_cxx::hypergl(al, bl, cl, xl); - bool test [[gnu::unused]] = true; VERIFY(std::isnan(a)); VERIFY(std::isnan(b)); VERIFY(std::isnan(c)); @@ -85,7 +84,6 @@ test02() long double d = __gnu_cxx::hyperg(al, bl, cl, xl); long double e = __gnu_cxx::hypergl(al, bl, cl, xl); - bool test [[gnu::unused]] = true; VERIFY(std::isnan(a)); VERIFY(std::isnan(b)); VERIFY(std::isnan(c)); @@ -120,7 +118,6 @@ test03() long double d = __gnu_cxx::hyperg(al, bl, cl, xl); long double e = __gnu_cxx::hypergl(al, bl, cl, xl); - bool test [[gnu::unused]] = true; VERIFY(std::isnan(a)); VERIFY(std::isnan(b)); VERIFY(std::isnan(c)); @@ -155,7 +152,6 @@ test04() long double d = __gnu_cxx::hyperg(al, bl, cl, xl); long double e = __gnu_cxx::hypergl(al, bl, cl, xl); - bool test [[gnu::unused]] = true; VERIFY(std::isnan(a)); VERIFY(std::isnan(b)); VERIFY(std::isnan(c)); diff --git a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc index 5a7a4a6f670..e605b619aee 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc @@ -11558,7 +11558,6 @@ template void test(const testcase_hyperg (&data)[Num], Tp toler) { - bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); diff --git a/libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-1.cc b/libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-1.cc index 1f838529fef..ce9668461af 100644 --- a/libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-1.cc +++ b/libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-1.cc @@ -26,7 +26,6 @@ void test1() { using namespace std; - bool test __attribute__((unused)) = true; FILE* file = fopen("tmp_10063-1", "w"); putc('0', file); diff --git a/libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-2.cc b/libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-2.cc index ed664040b6b..35dee4e04c8 100644 --- a/libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-2.cc +++ b/libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-2.cc @@ -29,7 +29,6 @@ void test2() { using namespace std; - bool test __attribute__((unused)) = true; filebuf fbuf; fbuf.open("tmp_10063-2", ios_base::out | ios_base::trunc); diff --git a/libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-3.cc b/libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-3.cc index 46351fa7a1a..b4d5d02c188 100644 --- a/libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-3.cc +++ b/libstdc++-v3/testsuite/ext/stdio_filebuf/char/10063-3.cc @@ -29,7 +29,6 @@ void test3() { using namespace std; - bool test __attribute__((unused)) = true; filebuf fbuf; fbuf.open("tmp_10063-3", ios_base::out | ios_base::trunc); diff --git a/libstdc++-v3/testsuite/ext/stdio_filebuf/char/2.cc b/libstdc++-v3/testsuite/ext/stdio_filebuf/char/2.cc index 50c2f641cfb..0f35ee4d6e4 100644 --- a/libstdc++-v3/testsuite/ext/stdio_filebuf/char/2.cc +++ b/libstdc++-v3/testsuite/ext/stdio_filebuf/char/2.cc @@ -32,7 +32,6 @@ void test01() { using namespace std; - bool test __attribute__((unused)) = true; const char* name = "tmp_file1"; FILE* file = fopen(name, "w"); diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/1.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/1.cc index 347447bb5e0..00269941bb2 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/1.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/1.cc @@ -27,7 +27,6 @@ void test01() { using namespace std; - bool test __attribute__((unused)) = true; const char* c_lit = "black pearl jasmine tea"; unsigned size = strlen(c_lit); const char* name = "stdiobuf-1.txt"; diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-1.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-1.cc index d56b1aa8917..69156faef16 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-1.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-1.cc @@ -25,7 +25,6 @@ // libstdc++/12048 void test02() { - bool test __attribute__((unused)) = true; const char* name = "cin_unget-1.txt"; std::FILE* file = std::fopen(name, "r"); diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-2.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-2.cc index f970866fd37..6f9ad6910e6 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-2.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-2.cc @@ -25,7 +25,6 @@ // libstdc++/12048 void test03() { - bool test __attribute__((unused)) = true; const char* name = "cin_unget-1.txt"; std::FILE* file = std::fopen(name, "r"); diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-3.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-3.cc index 99033d5b845..943977d5f43 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-3.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-3.cc @@ -25,7 +25,6 @@ // libstdc++/12048 void test04() { - bool test __attribute__((unused)) = true; const char* name = "cin_unget-1.txt"; std::FILE* file = std::fopen(name, "r"); diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-4.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-4.cc index 3dd200b9c6c..309f40a7582 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-4.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-4.cc @@ -25,7 +25,6 @@ // libstdc++/12048 void test05() { - bool test __attribute__((unused)) = true; const char* name = "cin_unget-1.txt"; std::FILE* file = std::fopen(name, "r"); diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc index d8755aa60dc..08d2c0584d4 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc @@ -26,7 +26,6 @@ void test01() using namespace std; typedef char_traits traits_type; - bool test __attribute__((unused)) = true; const char* c_lit = "black pearl jasmine tea"; const wchar_t* w_lit = L"black pearl jasmine tea"; unsigned size = strlen(c_lit); diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc index 0319f3c4381..23e3a5e336d 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc @@ -26,7 +26,6 @@ void test01() { using namespace std; - bool test __attribute__((unused)) = true; const char* name = "tmp_12077"; diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc index 7614ce9ff2b..e6f93ab4a96 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc @@ -23,7 +23,6 @@ // libstdc++/12048 void test02() { - bool test __attribute__((unused)) = true; const char* name = "cin_unget-1.txt"; std::FILE* file = std::fopen(name, "r"); diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc index e0d69ed4175..a7ffdb2636b 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc @@ -23,7 +23,6 @@ // libstdc++/12048 void test03() { - bool test __attribute__((unused)) = true; const char* name = "cin_unget-1.txt"; std::FILE* file = std::fopen(name, "r"); diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc index 6b19abaa8b2..de79ded78a7 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc @@ -23,7 +23,6 @@ // libstdc++/12048 void test04() { - bool test __attribute__((unused)) = true; const char* name = "cin_unget-1.txt"; std::FILE* file = std::fopen(name, "r"); diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc index 4d3d4500e76..e6d79361550 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc @@ -23,7 +23,6 @@ // libstdc++/12048 void test05() { - bool test __attribute__((unused)) = true; const char* name = "cin_unget-1.txt"; std::FILE* file = std::fopen(name, "r"); diff --git a/libstdc++-v3/testsuite/ext/throw_allocator/variadic_construct.cc b/libstdc++-v3/testsuite/ext/throw_allocator/variadic_construct.cc index 438f2b17827..60fc96bd261 100644 --- a/libstdc++-v3/testsuite/ext/throw_allocator/variadic_construct.cc +++ b/libstdc++-v3/testsuite/ext/throw_allocator/variadic_construct.cc @@ -27,7 +27,6 @@ void test01() { - bool test __attribute__((unused)) = true; typedef std::pair pair_type; __gnu_cxx::throw_allocator_random alloc1; diff --git a/libstdc++-v3/testsuite/ext/type_traits/add_unsigned.cc b/libstdc++-v3/testsuite/ext/type_traits/add_unsigned.cc index f0a2b0818be..0825e2fa68f 100644 --- a/libstdc++-v3/testsuite/ext/type_traits/add_unsigned.cc +++ b/libstdc++-v3/testsuite/ext/type_traits/add_unsigned.cc @@ -25,7 +25,6 @@ template void check_add_unsigned() { - bool test __attribute__((unused)) = true; typedef typename __gnu_cxx::__add_unsigned::__type unsigned_type; VERIFY( std::tr1::is_unsigned::value ); } diff --git a/libstdc++-v3/testsuite/ext/type_traits/remove_unsigned.cc b/libstdc++-v3/testsuite/ext/type_traits/remove_unsigned.cc index ada9d3de6f8..013c5490404 100644 --- a/libstdc++-v3/testsuite/ext/type_traits/remove_unsigned.cc +++ b/libstdc++-v3/testsuite/ext/type_traits/remove_unsigned.cc @@ -25,7 +25,6 @@ template void check_remove_unsigned() { - bool test __attribute__((unused)) = true; typedef typename __gnu_cxx::__remove_unsigned::__type signed_type; VERIFY( std::tr1::is_signed::value ); } diff --git a/libstdc++-v3/testsuite/ext/vstring/capacity/29134.cc b/libstdc++-v3/testsuite/ext/vstring/capacity/29134.cc index b20d81616f6..779ab8523ca 100644 --- a/libstdc++-v3/testsuite/ext/vstring/capacity/29134.cc +++ b/libstdc++-v3/testsuite/ext/vstring/capacity/29134.cc @@ -23,8 +23,6 @@ // libstdc++/29134 void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::__vstring vs; VERIFY( vs.max_size() <= vs.get_allocator().max_size() ); diff --git a/libstdc++-v3/testsuite/ext/vstring/capacity/shrink_to_fit.cc b/libstdc++-v3/testsuite/ext/vstring/capacity/shrink_to_fit.cc index 5d0b6120fb3..604802f9cb3 100644 --- a/libstdc++-v3/testsuite/ext/vstring/capacity/shrink_to_fit.cc +++ b/libstdc++-v3/testsuite/ext/vstring/capacity/shrink_to_fit.cc @@ -25,8 +25,6 @@ // libstdc++/42573 void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::__vstring vs(100, 'a'); vs.push_back('b'); vs.push_back('b'); diff --git a/libstdc++-v3/testsuite/ext/vstring/cons/58415-1.cc b/libstdc++-v3/testsuite/ext/vstring/cons/58415-1.cc index e820382a165..bad61125a52 100644 --- a/libstdc++-v3/testsuite/ext/vstring/cons/58415-1.cc +++ b/libstdc++-v3/testsuite/ext/vstring/cons/58415-1.cc @@ -25,8 +25,6 @@ typedef __gnu_cxx::__versa_string string; void test01() { - bool test __attribute__((unused)) = true; - string s1("string"); string s2(""); std::swap(s1, s2); diff --git a/libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc b/libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc index ed645f522de..289735cbfcd 100644 --- a/libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc +++ b/libstdc++-v3/testsuite/ext/vstring/cons/moveable.cc @@ -29,8 +29,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::__sso_string a,b; a.push_back('1'); b = std::move(a); @@ -43,8 +41,6 @@ void test01() void test02() { - bool test __attribute__((unused)) = true; - __gnu_cxx::__rc_string a,b; a.push_back('1'); b = std::move(a); diff --git a/libstdc++-v3/testsuite/ext/vstring/element_access/char/58163.cc b/libstdc++-v3/testsuite/ext/vstring/element_access/char/58163.cc index 39daf7cba31..372861fb0fd 100644 --- a/libstdc++-v3/testsuite/ext/vstring/element_access/char/58163.cc +++ b/libstdc++-v3/testsuite/ext/vstring/element_access/char/58163.cc @@ -25,8 +25,6 @@ // PR c++/58163 void test01() { - bool test __attribute__((unused)) = true; - const __gnu_cxx::__vstring cs; __gnu_cxx::__vstring s; diff --git a/libstdc++-v3/testsuite/ext/vstring/element_access/char/front_back.cc b/libstdc++-v3/testsuite/ext/vstring/element_access/char/front_back.cc index 16ab94d207d..86765a08c68 100644 --- a/libstdc++-v3/testsuite/ext/vstring/element_access/char/front_back.cc +++ b/libstdc++-v3/testsuite/ext/vstring/element_access/char/front_back.cc @@ -26,7 +26,6 @@ void test01() { using namespace std; - bool test __attribute__((unused)) = true; __gnu_cxx::__vstring str("ramifications"); const __gnu_cxx::__vstring cstr("melodien"); diff --git a/libstdc++-v3/testsuite/ext/vstring/element_access/wchar_t/58163.cc b/libstdc++-v3/testsuite/ext/vstring/element_access/wchar_t/58163.cc index 75da0a80a4b..ff7890c0d07 100644 --- a/libstdc++-v3/testsuite/ext/vstring/element_access/wchar_t/58163.cc +++ b/libstdc++-v3/testsuite/ext/vstring/element_access/wchar_t/58163.cc @@ -25,8 +25,6 @@ // PR c++/58163 void test01() { - bool test __attribute__((unused)) = true; - const __gnu_cxx::__wvstring cs; __gnu_cxx::__wvstring s; diff --git a/libstdc++-v3/testsuite/ext/vstring/element_access/wchar_t/front_back.cc b/libstdc++-v3/testsuite/ext/vstring/element_access/wchar_t/front_back.cc index 4ac4a145725..ed26bb0e03b 100644 --- a/libstdc++-v3/testsuite/ext/vstring/element_access/wchar_t/front_back.cc +++ b/libstdc++-v3/testsuite/ext/vstring/element_access/wchar_t/front_back.cc @@ -26,7 +26,6 @@ void test01() { using namespace std; - bool test __attribute__((unused)) = true; __gnu_cxx::__wvstring str(L"ramifications"); const __gnu_cxx::__wvstring cstr(L"melodien"); diff --git a/libstdc++-v3/testsuite/ext/vstring/hash/char/1.cc b/libstdc++-v3/testsuite/ext/vstring/hash/char/1.cc index acbf36d0118..93caa1239a9 100644 --- a/libstdc++-v3/testsuite/ext/vstring/hash/char/1.cc +++ b/libstdc++-v3/testsuite/ext/vstring/hash/char/1.cc @@ -25,8 +25,6 @@ // libstdc++/47773 void test01() { - bool test __attribute__((unused)) = true; - typedef __gnu_cxx::__vstring vstring_t; typedef std::unordered_map map_t; diff --git a/libstdc++-v3/testsuite/ext/vstring/hash/wchar_t/1.cc b/libstdc++-v3/testsuite/ext/vstring/hash/wchar_t/1.cc index 6856451aac0..392f5ab6ce6 100644 --- a/libstdc++-v3/testsuite/ext/vstring/hash/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/ext/vstring/hash/wchar_t/1.cc @@ -25,8 +25,6 @@ // libstdc++/47773 void test01() { - bool test __attribute__((unused)) = true; - typedef __gnu_cxx::__wvstring vstring_t; typedef std::unordered_map map_t; diff --git a/libstdc++-v3/testsuite/ext/vstring/init-list.cc b/libstdc++-v3/testsuite/ext/vstring/init-list.cc index 1318ffe2edb..41ef3b37e88 100644 --- a/libstdc++-v3/testsuite/ext/vstring/init-list.cc +++ b/libstdc++-v3/testsuite/ext/vstring/init-list.cc @@ -22,10 +22,8 @@ #include #include -int test01(void) +void test01(void) { - bool test = true; - __gnu_cxx::__vstring s1 = { 'a', 'b', 'c' }; VERIFY(s1 == "abc"); @@ -59,8 +57,6 @@ int test01(void) i2 = i1+6; s1.replace(i1, i2, { 'y', 'z' }); VERIFY(s1 == "mnyzo"); - - return test; } int main() diff --git a/libstdc++-v3/testsuite/ext/vstring/inserters_extractors/char/28277.cc b/libstdc++-v3/testsuite/ext/vstring/inserters_extractors/char/28277.cc index 0b4a5cc79fe..fa26196cf2c 100644 --- a/libstdc++-v3/testsuite/ext/vstring/inserters_extractors/char/28277.cc +++ b/libstdc++-v3/testsuite/ext/vstring/inserters_extractors/char/28277.cc @@ -32,7 +32,6 @@ void test01() { using namespace std; - bool test __attribute__((unused)) = true; ostringstream oss_01; const __gnu_cxx::__vstring str_01(50, 'a'); diff --git a/libstdc++-v3/testsuite/ext/vstring/inserters_extractors/wchar_t/28277.cc b/libstdc++-v3/testsuite/ext/vstring/inserters_extractors/wchar_t/28277.cc index 67e02b1fb12..aa8c0d757c5 100644 --- a/libstdc++-v3/testsuite/ext/vstring/inserters_extractors/wchar_t/28277.cc +++ b/libstdc++-v3/testsuite/ext/vstring/inserters_extractors/wchar_t/28277.cc @@ -32,7 +32,6 @@ void test01() { using namespace std; - bool test __attribute__((unused)) = true; wostringstream oss_01; const __gnu_cxx::__wvstring str_01(50, L'a'); diff --git a/libstdc++-v3/testsuite/ext/vstring/modifiers/assign/move_assign.cc b/libstdc++-v3/testsuite/ext/vstring/modifiers/assign/move_assign.cc index fd09f3b6bd4..73a6559f322 100644 --- a/libstdc++-v3/testsuite/ext/vstring/modifiers/assign/move_assign.cc +++ b/libstdc++-v3/testsuite/ext/vstring/modifiers/assign/move_assign.cc @@ -28,8 +28,6 @@ void test01() { - bool test __attribute__((unused)) = true; - __gnu_cxx::__sso_string a, b; a.push_back('1'); b.assign(std::move(a)); @@ -38,8 +36,6 @@ void test01() void test02() { - bool test __attribute__((unused)) = true; - __gnu_cxx::__rc_string a, b; a.push_back('1'); b.assign(std::move(a)); diff --git a/libstdc++-v3/testsuite/ext/vstring/modifiers/pop_back/char/1.cc b/libstdc++-v3/testsuite/ext/vstring/modifiers/pop_back/char/1.cc index d1ceb5b8d17..eec61b243f9 100644 --- a/libstdc++-v3/testsuite/ext/vstring/modifiers/pop_back/char/1.cc +++ b/libstdc++-v3/testsuite/ext/vstring/modifiers/pop_back/char/1.cc @@ -22,10 +22,8 @@ #include template -int test01() +void test01() { - bool test __attribute__((unused)) = true; - const StrT cstr("Badger"); StrT str = cstr; str.pop_back(); @@ -33,8 +31,6 @@ int test01() str += cstr.back(); VERIFY( str == cstr ); - - return test; } int main() diff --git a/libstdc++-v3/testsuite/ext/vstring/modifiers/pop_back/wchar_t/1.cc b/libstdc++-v3/testsuite/ext/vstring/modifiers/pop_back/wchar_t/1.cc index a4716df1d49..9a2127f8844 100644 --- a/libstdc++-v3/testsuite/ext/vstring/modifiers/pop_back/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/ext/vstring/modifiers/pop_back/wchar_t/1.cc @@ -22,10 +22,8 @@ #include template -int test01() +void test01() { - bool test __attribute__((unused)) = true; - const StrT cstr(L"Badger"); StrT str = cstr; str.pop_back(); @@ -33,8 +31,6 @@ int test01() str += cstr.back(); VERIFY( str == cstr ); - - return test; } int main() diff --git a/libstdc++-v3/testsuite/ext/vstring/operators/1.cc b/libstdc++-v3/testsuite/ext/vstring/operators/1.cc index af403b74a45..b5b4da380b4 100644 --- a/libstdc++-v3/testsuite/ext/vstring/operators/1.cc +++ b/libstdc++-v3/testsuite/ext/vstring/operators/1.cc @@ -25,7 +25,6 @@ void test01() { - bool test __attribute__((unused)) = true; using __gnu_cxx::__vstring; VERIFY( (__vstring("abc") + __vstring("def") diff --git a/libstdc++-v3/testsuite/ext/vstring/operators/2.cc b/libstdc++-v3/testsuite/ext/vstring/operators/2.cc index 72127563c63..8196b4feff5 100644 --- a/libstdc++-v3/testsuite/ext/vstring/operators/2.cc +++ b/libstdc++-v3/testsuite/ext/vstring/operators/2.cc @@ -25,7 +25,6 @@ void test01() { - bool test __attribute__((unused)) = true; using __gnu_cxx::__vstring; using std::move; -- 2.30.2