+2016-10-14 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * 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 <jwakely@redhat.com>
PR libstdc++/65122
void
test01()
{
- bool test __attribute__((unused)) = true;
-
int res = std::accumulate(A, A + NA, 11);
VERIFY( res == 66 );
}
void
test02()
{
- bool test __attribute__((unused)) = true;
-
int res = std::accumulate(B, B + NB, 100);
VERIFY( res == 106 );
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
int D[N];
std::adjacent_difference(A, A + N, D);
void test01_do(T a, T b)
{
using namespace std;
- bool test __attribute__((unused)) = true;
typedef complex<T> cplx;
T eps = numeric_limits<T>::epsilon() * 100;
template<typename T>
void test01_do()
{
- bool test __attribute__((unused)) = true;
-
const std::complex<T> ca(T(-2), T(2));
const std::complex<T> cb(T(-2), T(0));
const std::complex<T> cc(T(-2), T(-2));
int main()
{
- bool test __attribute__((unused)) = true;
-
#if _GLIBCXX_HAVE_COMPLEX_H
double _Complex x = .5;
double _Complex y = cacos (x);
template<typename T>
void do_test01()
{
- bool test __attribute__((unused)) = true;
-
if (std::numeric_limits<T>::has_quiet_NaN)
{
std::complex<T> c1(T(0), std::numeric_limits<T>::quiet_NaN());
template<typename T>
void do_test01()
{
- bool test __attribute__((unused)) = true;
-
if (std::numeric_limits<T>::has_quiet_NaN)
{
std::complex<T> c1(T(0), std::numeric_limits<T>::quiet_NaN());
// DR 1137. Return type of conj and proj.
void test01()
{
- bool test __attribute__((unused)) = true;
using __gnu_test::check_ret_type;
typedef std::complex<float> cmplx_f_type;
// and also PR57974.
void test01()
{
- bool test __attribute__((unused)) = true;
using __gnu_test::check_ret_type;
typedef std::complex<float> cmplx_f_type;
int
test_good(std::string str, R x, R y)
{
- bool test __attribute__((unused)) = true;
std::complex<R> z;
char ch;
std::istringstream iss(str);
int
test_fail(std::string str)
{
- bool test __attribute__((unused)) = true;
std::complex<R> z;
std::istringstream iss(str);
iss >> z;
void test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
complex<float> cf01(-1.1, -333.2);
stringstream ss;
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;
int
test_good(std::wstring str, R x, R y)
{
- bool test __attribute__((unused)) = true;
std::complex<R> z;
wchar_t ch;
std::wistringstream iss(str);
int
test_fail(std::wstring str)
{
- bool test __attribute__((unused)) = true;
std::complex<R> z;
std::wistringstream iss(str);
iss >> z;
void test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
complex<float> cf01(-1.1, -333.2);
wstringstream ss;
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;
void test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
typedef complex<double> complex_type;
const double cd1 = -11.451;
const double cd2 = -442.1533;
void
do_test()
{
- bool test __attribute__((unused)) = true;
-
const T r = 1.0;
const T i = -1.0;
const T v = 0.0;
// libstdc++/19322
void test01()
{
- bool test __attribute__((unused)) = true;
-
VERIFY( !std::isnan(3.0) );
}
template <typename _Tp, typename _Up = _Tp>
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;
template <typename _Tp>
void test_c99_classify()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp fp_type;
fp_type f1 = 1.0;
fp_type f2 = 3.0;
int
test02()
{
- std::sin(static_cast<float>(0));
+ std::sin(static_cast<float>(0));
return 0;
}
int
test04()
{
- bool test __attribute__((unused)) = true;
float x[2] = {1, 2};
float y = 3.4;
std::modf(y, &x[0]);
// 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;
void
test(const testcase_hypot<Tp> (&data)[Num], Tp toler)
{
- bool test __attribute__((unused)) = true;
const Tp eps = std::numeric_limits<Tp>::epsilon();
Tp max_abs_diff = -Tp(1);
Tp max_abs_frac = -Tp(1);
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) );
void test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
VERIFY( llabs(-3) == 3 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
int res = std::inner_product(A1, A1 + NA, A2, 31);
VERIFY( res == 983 );
}
void
test02()
{
- bool test __attribute__((unused)) = true;
-
int res = std::inner_product(B1, B1 + NB, B2, 100);
VERIFY( res == 102 );
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::iota(A, A + N, 1);
VERIFY( std::equal(A, A + N, B) );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
int D[N];
std::partial_sum(B, B + N, D);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::bernoulli_distribution u;
VERIFY( u.p() == 0.5 );
VERIFY( u.min() == std::numeric_limits<bool>::min() );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::bernoulli_distribution u(0.75);
VERIFY( u.p() == 0.75 );
VERIFY( u.min() == std::numeric_limits<bool>::min() );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::bernoulli_distribution u(0.75), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::bernoulli_distribution u(0.75), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::binomial_distribution<> u;
VERIFY( u.t() == 1 );
VERIFY( u.p() == 0.5 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::binomial_distribution<> u(3, 0.75);
VERIFY( u.t() == 3 );
VERIFY( u.p() == 0.75 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::binomial_distribution<int> u(3, 0.75), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::binomial_distribution<int> u(3, 0.75), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::cauchy_distribution<> u;
VERIFY( u.a() == 0.0 );
VERIFY( u.b() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::cauchy_distribution<double> u(5.0, 2.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::cauchy_distribution<double> u(5.0, 2.0), v, w;
VERIFY( u != v );
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;
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;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::chi_squared_distribution<double> u(1.5), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::chi_squared_distribution<double> u(1.5), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::default_random_engine a;
a.discard(9999);
void test01()
{
- bool test __attribute__((unused)) = true;
-
const int f1 = f(0);
const int f2 = f(0);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::discard_block_engine
<
std::subtract_with_carry_engine<unsigned long, 24, 10, 24>,
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::discard_block_engine
<
std::subtract_with_carry_engine<unsigned long, 24, 10, 24>,
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::stringstream str;
std::discard_block_engine
<
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::discrete_distribution<> u;
std::vector<double> probablility = u.probabilities();
VERIFY( probablility.size() == 1 );
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<double> probablility = u.probabilities();
VERIFY( probablility.size() == 6 );
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<double> probablility = u.probabilities();
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<double> wt = {0.5, 1.0, 2.5, 1.5, 0.5};
std::discrete_distribution<> u(wt.begin(), wt.end());
std::vector<double> probablility = u.probabilities();
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<double> wt = { 0.5, 1.0, 2.5, 1.5, 0.5 };
std::discrete_distribution<int> u(wt.begin(), wt.end()), v, w;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<double> wt = { 0.5, 1.0, 2.5, 1.5, 0.5 };
std::discrete_distribution<int> u(wt.begin(), wt.end()), v, w;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::exponential_distribution<> u;
VERIFY( u.lambda() == 1.0 );
typedef std::exponential_distribution<>::result_type result_type;
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;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::exponential_distribution<double> u(0.5), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::exponential_distribution<double> u(0.5), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::extreme_value_distribution<> u;
VERIFY( u.a() == 0.0 );
VERIFY( u.b() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::extreme_value_distribution<double> u(5.0, 2.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::extreme_value_distribution<double> u(5.0, 2.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::fisher_f_distribution<> u;
VERIFY( u.m() == 1.0 );
VERIFY( u.n() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::fisher_f_distribution<double> u(2.0, 3.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::fisher_f_distribution<double> u(2.0, 3.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::gamma_distribution<> u;
VERIFY( u.alpha() == 1.0 );
VERIFY( u.beta() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::gamma_distribution<double> u(1.5, 3.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::gamma_distribution<double> u(1.5, 3.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::geometric_distribution<> u;
VERIFY( u.p() == 0.5 );
VERIFY( u.min() == 0 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::geometric_distribution<> u(0.75);
VERIFY( u.p() == 0.75 );
VERIFY( u.min() == 0 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::geometric_distribution<int> u(0.75), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::geometric_distribution<int> u(0.75), v, w;
VERIFY( u != v );
void test01()
{
- bool test __attribute__((unused)) = true;
-
const int f1 = f(0);
const int f2 = f(0);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::independent_bits_engine
<std::subtract_with_carry_engine<uint_fast64_t, 48, 5, 12>,
48, uint_fast64_t> u, v;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::independent_bits_engine
<std::subtract_with_carry_engine<uint_fast64_t, 48, 5, 12>,
48, uint_fast64_t> u, v;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::stringstream str;
std::independent_bits_engine
<std::subtract_with_carry_engine<uint_fast64_t, 48, 5, 12>,
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::knuth_b a;
a.discard(9999);
void test01()
{
- bool test __attribute__((unused)) = true;
-
const int f1 = f(0);
const int f2 = f(0);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::linear_congruential_engine<unsigned long, 48271, 0, 2147483647> x;
VERIFY( x.min() == 1 );
VERIFY( x.max() == 2147483647-1 );
void test01()
{
- bool test __attribute__((unused)) = true;
-
typedef std::linear_congruential_engine<std::uint64_t, 1103515245ULL,
12345, 2147483648ULL> engine;
engine eng(1103527590ULL);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::minstd_rand0 a;
std::minstd_rand0 b;
std::minstd_rand0 c(120);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::minstd_rand0 a;
std::minstd_rand0 b;
std::minstd_rand0 c(120);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::stringstream str;
std::minstd_rand0 u;
std::minstd_rand0 v;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::lognormal_distribution<> u;
VERIFY( u.m() == 0.0 );
VERIFY( u.s() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::lognormal_distribution<double> u(5.0, 2.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::lognormal_distribution<double> u(5.0, 2.0), v, w;
VERIFY( u != v );
void test01()
{
- bool test __attribute__((unused)) = true;
-
const int f1 = f(0);
const int f2 = f(0);
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef unsigned long value_type;
std::mersenne_twister_engine<
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::mersenne_twister_engine<
unsigned long, 32, 624, 397, 31,
0x9908b0dful, 11,
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::mersenne_twister_engine<
unsigned long, 32, 624, 397, 31,
0x9908b0dful, 11,
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::stringstream str;
std::mersenne_twister_engine<
unsigned long, 32, 624, 397, 31,
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::minstd_rand a;
a.discard(9999);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::minstd_rand0 a;
a.discard(9999);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::mt19937 a;
a.discard(9999);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::mt19937_64 a;
a.discard(9999);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::negative_binomial_distribution<> u;
VERIFY( u.k() == 1 );
VERIFY( u.p() == 0.5 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::negative_binomial_distribution<> u(3, 0.75);
VERIFY( u.k() == 3 );
VERIFY( u.p() == 0.75 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::negative_binomial_distribution<int> u(3, 0.75), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::negative_binomial_distribution<int> u(3, 0.75), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::normal_distribution<> u;
VERIFY( u.mean() == 0.0 );
VERIFY( u.stddev() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::normal_distribution<double> u(5.0, 2.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::normal_distribution<double> u(5.0, 2.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::piecewise_constant_distribution<> u;
std::vector<double> interval = u.intervals();
std::vector<double> density = u.densities();
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},
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<double> interval = u.intervals();
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<double> x = {0.0, 1.0, 2.0, 3.0, 4.0, 5.0};
std::vector<double> wt = {0.5, 1.0, 2.5, 1.5, 0.5};
std::piecewise_constant_distribution<> u(x.begin(), x.end(), wt.begin());
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<double> x = { 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 };
std::vector<double> wt = { 0.5, 1.0, 2.5, 1.5, 0.5 };
std::piecewise_constant_distribution<double>
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<double> x = { 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 };
std::vector<double> wt = { 0.5, 1.0, 2.5, 1.5, 0.5 };
std::piecewise_constant_distribution<double>
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::piecewise_linear_distribution<> u;
std::vector<double> interval = u.intervals();
std::vector<double> density = u.densities();
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},
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<double> interval = u.intervals();
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<double> x = {0.0, 1.0, 2.0, 3.0, 4.0, 5.0};
std::vector<double> wt = {0.0, 1.0, 2.5, 1.5, 3.5, 0.0};
std::piecewise_linear_distribution<> u(x.begin(), x.end(), wt.begin());
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<double> x = { 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 };
std::vector<double> wt = { 0.0, 1.0, 2.5, 1.5, 0.5, 0.0 };
std::piecewise_linear_distribution<double>
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<double> x = { 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 };
std::vector<double> wt = { 0.0, 1.0, 2.5, 1.5, 0.5, 0.0 };
std::piecewise_linear_distribution<double>
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::poisson_distribution<> u;
VERIFY( u.mean() == 1.0 );
VERIFY( u.min() == 0 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::poisson_distribution<> u(5.0);
VERIFY( u.mean() == 5.0 );
VERIFY( u.min() == 0 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::poisson_distribution<int> u(5.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::poisson_distribution<int> u(5.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::random_device x;
VERIFY( x.min() == std::numeric_limits<std::random_device::result_type>::min() );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
#ifdef _GLIBCXX_USE_RANDOM_TR1
std::random_device x("/dev/random");
#else
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::ranlux24 a;
a.discard(9999);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::ranlux24_base a;
a.discard(9999);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::ranlux48 a;
a.discard(9999);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::ranlux48_base a;
a.discard(9999);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::seed_seq seq({0, 1, 2, 3, 4, 5, 6, 7, 8, 9});
std::vector<unsigned> foo(10000);
void test01()
{
- bool test __attribute__((unused)) = true;
-
const int f1 = f(0);
const int f2 = f(0);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::shuffle_order_engine
<
std::linear_congruential_engine<uint_fast32_t,16807UL, 0UL, 2147483647UL>,
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::shuffle_order_engine
<
std::linear_congruential_engine<uint_fast32_t,16807UL, 0UL, 2147483647UL>,
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::stringstream str;
std::shuffle_order_engine
<
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;
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;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::student_t_distribution<double> u(1.5), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::student_t_distribution<double> u(1.5), v, w;
VERIFY( u != v );
void test01()
{
- bool test __attribute__((unused)) = true;
-
const int f1 = f(0);
const int f2 = f(0);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::subtract_with_carry_engine<unsigned long, 24, 10, 24> x;
VERIFY( x.min() == 0 );
VERIFY( x.max() == ((1UL << 24) - 1) );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::subtract_with_carry_engine<unsigned long, 24, 10, 24> u;
std::subtract_with_carry_engine<unsigned long, 24, 10, 24> v;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::subtract_with_carry_engine<unsigned long, 24, 10, 24> u;
std::subtract_with_carry_engine<unsigned long, 24, 10, 24> v;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::stringstream str;
std::subtract_with_carry_engine<unsigned long, 24, 10, 24> u;
std::subtract_with_carry_engine<unsigned long, 24, 10, 24> v;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::uniform_int_distribution<int> u;
VERIFY( u.a() == 0 );
VERIFY( u.b() == std::numeric_limits<int>::max() );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::uniform_int_distribution<int> u(1, 20);
VERIFY( u.a() == 1 );
VERIFY( u.b() == 20 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::uniform_int_distribution<int> u(1, 20), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::uniform_int_distribution<int> u(1, 20), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::uniform_real_distribution<double> u;
VERIFY( u.a() == 0.0 );
VERIFY( u.b() == 1.0 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::uniform_real_distribution<double> u(-5.0, 5.0);
VERIFY( u.a() == -5.0 );
VERIFY( u.b() == 5.0 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::uniform_real_distribution<double> u(-5.0, 5.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::uniform_real_distribution<double> u(-5.0, 5.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::weibull_distribution<> u;
VERIFY( u.a() == 1.0 );
VERIFY( u.b() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::weibull_distribution<double> u(2.0, 3.5), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::weibull_distribution<double> u(2.0, 3.5), v, w;
VERIFY( u != v );
int main()
{
- bool test __attribute__((unused)) = true;
std::srand(20020717);
using std::rand;
VERIFY(construction(rand(), rand(), rand()));
int main()
{
- bool test __attribute__((unused)) = true;
using std::valarray;
using std::slice;
valarray<int> v(1, 10), w(2, 10);
// libstdc++/27867
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::valarray<int> v1(100, 1);
std::valarray<int> v2(100, 1);
std::valarray<bool> v3(true, 1);
// libstdc++/28277
void test01()
{
- bool test __attribute__((unused)) = true;
-
const std::valarray<int> v1(1, MAX_SIZE);
const std::valarray<int> v2 = v1.shift(1);
// libstdc++/30416
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
// shift
// DR 543. valarray slice default constructor
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::valarray<int> v1(10);
std::valarray<int> v2 = v1[std::slice()];
VERIFY( v2.size() == 0 );
// DR 630.
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
valarray<int> v1;
// DR 630.
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
valarray<int> v1;
// libstdc++/57666
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::valarray<int> a(3), b(3), d1, d2;
d1 = a;
VERIFY( d1.size() == 3 );
using namespace std;
-int test01()
+void test01()
{
- bool test __attribute__((unused)) = true;
-
valarray<int> m({ 1, 5, 37 });
VERIFY(m.size() == 3);
VERIFY(m[0] == 1);
VERIFY(m[0] == 28);
VERIFY(m[1] == 37);
VERIFY(m[2] == 102);
-
- return test;
}
int main()
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::valarray<int> a(1, 1), b(-1, 2);
b = std::move(a);
VERIFY( b.size() == 1 && b[0] == 1 && a.size() == 0 );
void test01() // check unary operators
{
- bool test __attribute__((unused)) = true;
std::valarray<int> u(1);
u[0]=1;
void test02() // check binary operators
{
- bool test __attribute__((unused)) = true;
std::valarray<int> u(1), v(1);
u[0]=1;
v[0]=3;
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::valarray<int> a(1, 1), b(-1, 2);
b.swap(a);
VERIFY( b.size() == 1 && b[0] == 1
void
test01()
{
- bool test [[gnu::unused]] = true;
-
auto is_odd = [](const int i) { return i % 2 != 0; };
std::deque<int> d{ 10, 11, 12, 14, 15, 17, 18, 19 };
void
test02()
{
- bool test [[gnu::unused]] = true;
-
std::deque<int> d{ 10, 11, 12, 14, 15, 17, 18, 19 };
std::experimental::erase(d, 14);
std::deque<int> t{ 10, 11, 12, 15, 17, 18, 19 };
void
test01()
{
- bool test __attribute__((unused)) = false;
std::error_code ec;
// Test non-existent path.
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);
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);
void
test04()
{
- bool test __attribute__((unused)) = false;
-
const fs::directory_iterator it;
VERIFY( it == fs::directory_iterator() );
}
void
test05()
{
- bool test __attribute__((unused)) = false;
-
auto p = __gnu_test::nonexistent_path();
create_directory(p);
create_directory_symlink(p, p / "l");
void
test01()
{
- bool test __attribute__((unused)) = false;
std::error_code ec;
// Test non-existent path.
void
test02()
{
- bool test __attribute__((unused)) = false;
-
std::error_code ec;
const auto p = __gnu_test::nonexistent_path();
create_directories(p / "d1/d2", ec);
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);
void
test04()
{
- bool test __attribute__((unused)) = false;
-
// libstdc++/71004
const fs::recursive_directory_iterator it;
VERIFY( it == fs::recursive_directory_iterator() );
void
test05()
{
- bool test __attribute__((unused)) = false;
-
auto p = __gnu_test::nonexistent_path();
create_directory(p);
create_directory_symlink(p, p / "l");
void
test01()
{
- bool test __attribute__((unused)) = false;
-
for (const path& p : __gnu_test::test_paths)
VERIFY( absolute(p).is_absolute() );
}
void
test02()
{
- bool test __attribute__((unused)) = false;
-
path p1("/");
VERIFY( absolute(p1) == p1 );
VERIFY( absolute(p1, "/bar") == p1 );
void
test01()
{
- bool test __attribute__((unused)) = false;
-
std::error_code ec;
auto p = __gnu_test::nonexistent_path();
canonical( p, ec );
test02()
{
#if __cpp_exceptions
- bool test __attribute__((unused)) = false;
-
fs::path p = "rel", base = __gnu_test::nonexistent_path();
fs::path e1, e2;
try {
void
test01()
{
- bool test __attribute__((unused)) = false;
-
auto p = __gnu_test::nonexistent_path();
std::error_code ec;
void
test02()
{
- bool test __attribute__((unused)) = false;
-
auto from = __gnu_test::nonexistent_path();
auto to = __gnu_test::nonexistent_path();
std::error_code ec;
void
test03()
{
- bool test __attribute__((unused)) = false;
-
auto from = __gnu_test::nonexistent_path();
auto to = __gnu_test::nonexistent_path();
void
test04()
{
- bool test __attribute__((unused)) = false;
-
auto from = __gnu_test::nonexistent_path();
auto to = __gnu_test::nonexistent_path();
std::error_code ec;
void
test05()
{
- bool test __attribute__((unused)) = false;
-
auto to = __gnu_test::nonexistent_path();
std::error_code ec;
void
test01()
{
- bool test __attribute__((unused)) = false;
using std::experimental::filesystem::copy_options;
std::error_code ec;
void
test01()
{
- bool test __attribute__((unused)) = false;
std::error_code ec;
// Test empty path.
void
test01()
{
- bool test __attribute__((unused)) = false;
std::error_code ec;
// Test empty path.
void
test01()
{
- bool test __attribute__((unused)) = false;
-
fs::path dot(".");
fs::path cwd = fs::current_path();
std::error_code ec;
void
test02()
{
- bool test __attribute__((unused)) = false;
-
auto oldwd = fs::current_path();
auto tmpdir = fs::temp_directory_path();
current_path(tmpdir);
void
test01()
{
- bool test __attribute__((unused)) = false;
-
VERIFY( exists(path{"/"}) );
VERIFY( exists(path{"/."}) );
VERIFY( exists(path{"."}) );
void
test02()
{
- bool test __attribute__((unused)) = false;
-
path rel = __gnu_test::nonexistent_path();
VERIFY( !exists(rel) );
}
void
test03()
{
- bool test __attribute__((unused)) = false;
-
path abs = absolute(__gnu_test::nonexistent_path());
VERIFY( !exists(abs) );
}
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 );
void
test02()
{
- bool test __attribute__((unused)) = false;
-
fs::path p = __gnu_test::nonexistent_path();
std::error_code ec;
void
test01()
{
- bool test __attribute__((unused)) = true;
using time_type = std::experimental::filesystem::file_time_type;
auto p = __gnu_test::nonexistent_path();
void
test01()
{
- bool test __attribute__((unused)) = true;
using perms = std::experimental::filesystem::perms;
auto p = __gnu_test::nonexistent_path();
void
test01()
{
- bool test __attribute__((unused)) = false;
-
std::error_code ec;
fs::file_status st1 = fs::status(".", ec);
VERIFY( !ec );
void
test02()
{
- bool test __attribute__((unused)) = false;
-
fs::path p = __gnu_test::nonexistent_path();
std::error_code ec;
void
test01()
{
- bool test __attribute__((unused)) = false;
-
clean_env();
if (!fs::exists("/tmp"))
void
test02()
{
- bool test __attribute__((unused)) = false;
-
clean_env();
if (::setenv("TMPDIR", __gnu_test::nonexistent_path().string().c_str(), 1))
void
test01()
{
- bool test __attribute__((unused)) = true;
-
using namespace std::experimental::filesystem;
const std::string s = "abc";
path p(s);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
using namespace std::experimental::filesystem;
const char* s = "abc";
path p(s);
void
test01()
{
- bool test [[gnu::unused]] = true;
-
auto is_odd = [](const int i) { return i % 2 != 0; };
std::forward_list<int> fl{ 10, 11, 12, 14, 15, 17, 18, 19 };
void
test02()
{
- bool test [[gnu::unused]] = true;
-
std::forward_list<int> fl{ 10, 11, 12, 14, 15, 17, 18, 19 };
std::experimental::erase(fl, 14);
std::forward_list<int> t{ 10, 11, 12, 15, 17, 18, 19 };
void
test01()
{
- bool test [[gnu::unused]] = true;
-
auto is_odd = [](const int i) { return i % 2 != 0; };
std::list<int> l{ 10, 11, 12, 14, 15, 17, 18, 19 };
void
test02()
{
- bool test [[gnu::unused]] = true;
-
std::list<int> l{ 0, 11, 0, 0, 22, 33, 0, 0, 44, 0 };
std::experimental::erase(l, 0);
std::list<int> t{ 11, 22, 33, 44 };
void
test01()
{
- bool test [[gnu::unused]] = true;
-
std::map<int, std::string> m{ { 10, "A" }, { 11, "B" },
{ 12, "C" }, { 14, "D" },
{ 15, "E" }, { 17, "F" },
void
test02()
{
- bool test [[gnu::unused]] = true;
-
std::multimap<int, std::string> mm{ { 20, "S" }, { 21, "T" },
{ 22, "U" }, { 22, "V" },
{ 23, "W" }, { 23, "X" },
test01()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
std::experimental::shared_ptr<A[5]> a;
std::experimental::shared_ptr<A[]> a1;
void
test02()
{
- bool test __attribute__((unused)) = true;
-
std::experimental::shared_ptr<A[5]> p(new A[5]);
std::experimental::shared_ptr<A[5]> p1;
std::experimental::shared_ptr<A[]> p2;
int
test01()
{
- bool test __attribute__((unused)) = true;
-
// test empty shared_ptrs compare equivalent
std::experimental::shared_ptr<A[5]> p1;
std::experimental::shared_ptr<B[5]> p2;
int
test02()
{
- bool test __attribute__((unused)) = true;
-
std::experimental::shared_ptr<A[5]> A_default;
std::experimental::shared_ptr<A[5]> A_from_A(new A[5]);
void
test01()
{
- bool test __attribute__((unused)) = true;
+ bool test = true;
std::experimental::shared_ptr<A[5]> a;
std::experimental::shared_ptr<bool> b1(a, &test);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
std::experimental::shared_ptr<A[5]> a(new A[5]);
std::experimental::shared_ptr<int> i1(a, &a[0].i);
VERIFY( i1.use_count() == 2 );
void
test03()
{
- bool test __attribute__((unused)) = true;
-
std::experimental::shared_ptr<B> b(new B);
std::experimental::shared_ptr<A> a1(b, b.get());
std::experimental::shared_ptr<A> a2(b, &b->a);
int
test01()
{
- bool test __attribute__((unused)) = true;
tracker_allocator_counter::reset();
std::experimental::shared_ptr<A[5]> p1(new A[5], deletefunc, tracker_allocator<A[5]>());
test01()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
std::experimental::shared_ptr<A[5]> a1;
std::experimental::shared_ptr<A[5]> a2(a1);
test02()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
std::experimental::shared_ptr<A[5]> a1(new A[5]);
std::experimental::shared_ptr<A[5]> a2(a1);
test03()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
std::experimental::shared_ptr<A[5]> a1(new A[5], &deleter);
std::experimental::shared_ptr<A[5]> a2(a1);
test04()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
std::experimental::shared_ptr<A[5]> a1(std::experimental::shared_ptr<A[5]>
(new A[5]));
test05()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
std::experimental::shared_ptr<A[5]> a1(new A[5]);
std::experimental::shared_ptr<A[]> a2(a1);
test06()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
std::experimental::shared_ptr<B> a1(new B);
std::experimental::shared_ptr<A> a2(a1);
int
test01()
{
- bool test __attribute__((unused)) = true;
-
std::experimental::shared_ptr<A[5]> a;
VERIFY( a.get() == 0 );
int test01()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
std::experimental::shared_ptr<A[5]> a1;
std::experimental::shared_ptr<A[5]> a2(std::move(a1));
test02()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
std::experimental::shared_ptr<A[5]> a1(new A[5]);
std::experimental::shared_ptr<A[5]> a2(std::move(a1));
test03()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
std::experimental::shared_ptr<A[5]> b(new A[5], D());
std::experimental::shared_ptr<A[5]> b1(std::move(b));
test04()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
std::experimental::shared_ptr<A[5]> a(std::move(std::experimental
::shared_ptr<A[5]>
test05()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
std::experimental::shared_ptr<A[]> a(std::move(std::experimental
::shared_ptr<A[5]>
int
test01()
{
- bool test __attribute__((unused)) = true;
-
A * const a = 0;
std::experimental::shared_ptr<A> p(a);
VERIFY( p.get() == 0 );
int
test02()
{
- bool test __attribute__((unused)) = true;
-
A * const a = new A[5];
std::experimental::shared_ptr<A[5]> p(a);
VERIFY( p.get() == a );
int
test03()
{
- bool test __attribute__((unused)) = true;
-
B * const b = new B[5];
std::experimental::shared_ptr<A[5]> p(b);
VERIFY( p.get() == b );
int
test01()
{
- bool test __attribute__((unused)) = true;
-
std::unique_ptr<A[]> up(new A[5]);
std::experimental::shared_ptr<A> sp(std::move(up));
VERIFY( up.get() == 0 );
int
test01()
{
- bool test __attribute__((unused)) = true;
-
A * a = new A[5];
std::experimental::shared_ptr<A[5]> a1(a);
std::experimental::weak_ptr<A[5]> wa(a1);
test01()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
{
std::experimental::shared_ptr<A[5]> a;
test02()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
{
std::experimental::shared_ptr<B[5]> a;
test03()
{
reset_count_struct __attribute__((unused)) reset;
- bool test __attribute__((unused)) = true;
{
std::experimental::shared_ptr<B[]> a;
int
test01()
{
- bool test __attribute__((unused)) = true;
-
A * const a = new A[5];
std::experimental::shared_ptr<A[5]> p1(a);
std::experimental::shared_ptr<A[5]> p2(p1);
int
test02()
{
- bool test __attribute__((unused)) = true;
-
A * const a = new A[5];
B * const b = new B[5];
std::experimental::shared_ptr<A[5]> p1(a);
int
test03()
{
- bool test __attribute__((unused)) = true;
-
{
std::experimental::shared_ptr<A[5]> p1;
p1.reset(new B[5], D());
int
test01()
{
- bool test __attribute__((unused)) = true;
-
A * const a1 = new A[5];
A * const a2 = new A[5];
std::experimental::shared_ptr<A[5]> p1(a1);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
const std::experimental::shared_ptr<A[5]> p1;
VERIFY( static_cast<bool>(p1) == false );
const std::experimental::shared_ptr<A[5]> p2(p1);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
std::experimental::shared_ptr<A[5]> p1(new A[5]);
VERIFY( static_cast<bool>(p1) );
std::experimental::shared_ptr<A[5]> p2(p1);
void
test03()
{
- bool test __attribute__((unused)) = true;
-
std::experimental::shared_ptr<A[5]> p1(new A[5]);
std::experimental::shared_ptr<A[5]> p2(p1);
p2.reset(new A[5]);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
A * const a = new A[5];
const std::experimental::shared_ptr<A[5]> p(a);
VERIFY( p.get() == a );
void
test03()
{
- bool test __attribute__((unused)) = true;
-
A * const a = new A[5];
const std::experimental::shared_ptr<A[5]> p(a);
VERIFY( p.get() == a );
void
test04()
{
- bool test __attribute__((unused)) = true;
-
A * const a = new A[5];
const std::experimental::shared_ptr<A[5]> p(a);
VERIFY( &p[0].i == &a[0].i );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
// test empty shared_ptrs compare equivalent
std::experimental::shared_ptr<A[5]> p1;
std::experimental::shared_ptr<B[5]> p2;
void
test02()
{
- bool test __attribute__((unused)) = true;
-
std::experimental::shared_ptr<A[5]> a0;
std::experimental::shared_ptr<A[5]> a1(new A[5]);
void
test03()
{
- bool test __attribute__((unused)) = true;
-
std::experimental::shared_ptr<A[5]> p1(new A[5]);
std::experimental::shared_ptr<int> p2(p1, &p1[0].i);
VERIFY( !p1.owner_before(p2) && !p2.owner_before(p1) );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
const std::experimental::shared_ptr<A[5]> p1;
VERIFY( p1.use_count() == 0 );
const std::experimental::shared_ptr<A[5]> p2(p1);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
std::experimental::shared_ptr<A[5]> p1(new A[5]);
std::experimental::shared_ptr<A[5]> p2(p1);
p1.reset();
void
test03()
{
- bool test __attribute__((unused)) = true;
-
std::experimental::shared_ptr<A[5]> p1(new A[5]);
std::experimental::shared_ptr<A[5]> p2(p1);
p2.reset(new B[5]);
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);
void
test02()
{
- bool test __attribute((unused)) = false;
-
clear();
{
CountedResource cr;
void
test03()
{
- bool test __attribute((unused)) = false;
-
clear();
CountedResource cr;
polymorphic_allocator<A> pa(&cr);
void
test04()
{
- bool test __attribute((unused)) = false;
-
polymorphic_allocator<A> pa1(get_default_resource());
polymorphic_allocator<A> pa2(get_default_resource());
VERIFY(pa1 == pa2);
void
test06()
{
- bool test __attribute((unused)) = false;
-
memory_resource* r = null_memory_resource();
bool caught = false;
void
test05()
{
- bool test __attribute((unused)) = false;
using std::max_align_t;
using std::uintptr_t;
void* p = nullptr;
void
test01()
{
- bool test [[gnu::unused]] = true;
-
std::set<int> s{ 10, 11, 12, 14, 15, 17, 18, 19 };
std::experimental::erase_if(s, is_odd);
std::set<int> t{ 10, 12, 14, 18 };
void
test02()
{
- bool test [[gnu::unused]] = true;
-
std::multiset<int> ms{ 20, 21, 22, 22, 23, 23, 24, 25 };
std::experimental::erase_if(ms, is_odd);
std::multiset<int> t{ 20, 22, 22, 24 };
void
test01()
{
- bool test [[gnu::unused]] = true;
-
auto is_vowel = [](const char c)
{
return c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u';
void
test02()
{
- bool test [[gnu::unused]] = true;
-
std::string str = "cute fluffy kittens";
std::experimental::erase(str, 'f');
VERIFY( str == "cute luy kittens" );
void
test01()
{
- bool test [[gnu::unused]] = true;
-
std::experimental::basic_string_view<A<B>> str02;
typedef std::experimental::basic_string_view< A<B> >::size_type size_type_o;
size_type_o sz03;
void
test01()
{
- bool test [[gnu::unused]] = true;
typedef std::experimental::string_view::size_type csize_type;
// basic_string_view()
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
#include <experimental/string_view>
#include <vector>
-#include <testsuite_hooks.h>
void
test05()
{
- bool test [[gnu::unused]] = true;
-
char const * s = 0;
std::experimental::string_view zero_length_built_with_NULL(s, 0);
}
void
test01()
{
- bool test [[gnu::unused]] = true;
typedef std::experimental::wstring_view::size_type csize_type;
// basic_string_view()
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
// basic_string_view constructors.
#include <experimental/string_view>
-#include <testsuite_hooks.h>
void
test05()
{
- bool test [[gnu::unused]] = true;
-
wchar_t const * s = 0;
std::experimental::wstring_view zero_length_built_with_NULL(s, 0);
}
#include <stdexcept>
#include <testsuite_hooks.h>
-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;
{
VERIFY( false );
}
-
- return test;
}
int
int
main()
{
- bool test [[gnu::unused]] = true;
-
{
std::experimental::string_view empty;
VERIFY( empty.empty() );
void
test01()
{
- bool test [[gnu::unused]] = true;
-
std::experimental::string_view str("ramifications");
const std::experimental::string_view cstr("melodien");
#include <stdexcept>
#include <testsuite_hooks.h>
-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;
{
VERIFY( false );
}
-
- return test;
}
int
int
main()
{
- bool test [[gnu::unused]] = true;
-
{
std::experimental::wstring_view empty;
VERIFY( empty.empty() );
void
test01()
{
- bool test [[gnu::unused]] = true;
-
std::experimental::wstring_view str(L"ramifications");
const std::experimental::wstring_view cstr(L"melodien");
#include <iostream>
#include <testsuite_hooks.h>
-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;
std::experimental::string_view hello_world;
std::cout << hello_world;
-
- return test;
}
int
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);
// 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() );
void
test09()
{
- bool test [[gnu::unused]] = true;
-
std::experimental::string_view foo{"peace\0\0\0& love"};
std::ostringstream oss1;
typedef basic_stringbuf<pod_ushort> stringbuf_type;
typedef basic_ostream<pod_ushort> ostream_type;
- bool test [[gnu::unused]] = true;
-
string_type str;
stringbuf_type strbuf01;
ostream_type stream(&strbuf01);
#include <iostream>
#include <testsuite_hooks.h>
-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;
std::experimental::wstring_view hello_world;
std::wcout << hello_world;
-
- return test;
}
int
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);
// 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() );
void
test09()
{
- bool test [[gnu::unused]] = true;
-
std::experimental::wstring_view foo{L"peace\0\0\0& love"};
std::wostringstream oss1;
void
test01()
{
- bool test [[gnu::unused]] = true;
-
using namespace std::experimental;
string_view str0{"olympus mons"};
void
test01()
{
- bool test [[gnu::unused]] = true;
-
using namespace std::experimental;
wstring_view str0{L"olympus mons"};
void
test01()
{
- bool test [[gnu::unused]] = true;
-
using namespace std::experimental;
string_view str0{"olympus mons"};
void
test01()
{
- bool test [[gnu::unused]] = true;
-
using namespace std::experimental;
wstring_view str0{L"olympus mons"};
int
test_value(int result, want_value expected)
{
- bool test [[gnu::unused]] = true;
bool pass = false;
switch (expected) {
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' };
int
test_value(int result, want_value expected)
{
- bool test [[gnu::unused]] = true;
bool pass = false;
switch (expected) {
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' };
#include <experimental/string_view>
#include <testsuite_hooks.h>
-bool
+void
test01()
{
- bool test [[gnu::unused]] = true;
-
typedef std::experimental::string_view::size_type csize_type;
const char str_lit01[] = "123456789A";
csize_type len = str01.copy(buffer, sizeof(buffer), 8);
VERIFY( 2 == len );
VERIFY( '9' == buffer[0] );
-
- return test;
}
int
#include <experimental/string_view>
#include <testsuite_hooks.h>
-bool
+void
test01()
{
- bool test [[gnu::unused]] = true;
-
typedef std::experimental::wstring_view::size_type csize_type;
csize_type csz01;
csize_type len = str01.copy(buffer, sizeof(buffer), 8);
VERIFY( 2 == len );
VERIFY( L'9' == buffer[0] );
-
- return test;
}
int
int
test01()
{
- bool test [[gnu::unused]] = true;
-
std::experimental::string_view empty;
VERIFY( empty.size() == 0 );
int
test01()
{
- bool test [[gnu::unused]] = true;
-
std::experimental::wstring_view empty;
VERIFY( empty.size() == 0 );
#include <experimental/string_view>
#include <testsuite_hooks.h>
-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;
VERIFY( csz01 == csz02 );
csz01 = str01.find('/');
VERIFY( csz01 == npos );
-
- return test;
}
int
#include <experimental/string_view>
#include <testsuite_hooks.h>
-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;
csz01 = str01.find_first_of('z');
csz02 = str01.size() - 1;
VERIFY( csz01 == csz02 );
-
- return test;
}
int
#include <experimental/string_view>
#include <testsuite_hooks.h>
-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;
VERIFY( csz01 == 0 );
csz01 = str04.find_first_not_of('S');
VERIFY( csz01 == npos );
-
- return test;
}
int
void
test01()
{
- bool test [[gnu::unused]] = true;
-
typedef std::experimental::string_view::size_type csize_type;
csize_type npos = std::experimental::string_view::npos;
#include <experimental/string_view>
#include <testsuite_hooks.h>
-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;
VERIFY( csz01 == csz02 );
csz01 = str01.find(L'/');
VERIFY( csz01 == npos );
-
- return test;
}
int
#include <experimental/string_view>
#include <testsuite_hooks.h>
-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;
csz01 = str01.find_first_of(L'z');
csz02 = str01.size() - 1;
VERIFY( csz01 == csz02 );
-
- return test;
}
int
#include <experimental/string_view>
#include <testsuite_hooks.h>
-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;
VERIFY( csz01 == 0 );
csz01 = str04.find_first_not_of(L'S');
VERIFY( csz01 == npos );
-
- return test;
}
int
void
test01()
{
- bool test [[gnu::unused]] = true;
-
typedef std::experimental::wstring_view::size_type csize_type;
csize_type npos = std::experimental::wstring_view::npos;
// 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;
VERIFY( csz01 == csz02 );
csz01 = str01.rfind('/');
VERIFY( csz01 == npos );
-
- return test;
}
int
// 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");
VERIFY( pos == 1 );
pos = z.find_last_of('X');
VERIFY( pos == std::experimental::string_view::npos );
-
- return test;
}
int
// 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;
VERIFY( pos == 0 );
pos = z.find_last_not_of("Xa");
VERIFY( pos == 1 );
-
- return test;
}
+
int
main()
{
// 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;
VERIFY( csz01 == csz02 );
csz01 = str01.rfind(L'/');
VERIFY( csz01 == npos );
-
- return test;
}
int
// 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");
VERIFY( pos == 1 );
pos = z.find_last_of(L'X');
VERIFY( pos == std::experimental::wstring_view::npos );
-
- return test;
}
int
// 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;
VERIFY( pos == 0 );
pos = z.find_last_not_of(L"Xa");
VERIFY( pos == 1 );
-
- return test;
}
+
int
main()
{
#include <stdexcept>
#include <testsuite_hooks.h>
-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;
{
VERIFY( false );
}
-
- return test;
}
int
#include <stdexcept>
#include <testsuite_hooks.h>
-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;
{
VERIFY( false );
}
-
- return test;
}
int
#include <testsuite_hooks.h>
#include <testsuite_allocator.h>
-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 };
VERIFY( std::equal(s1.begin(), s1.end(), s2.begin(), s2.end()) );
auto s3 = static_cast<std::string>(sv);
VERIFY( s3 == s1 );
-
- return test;
}
int
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");
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");
void
test01()
{
- bool test [[gnu::unused]] = true;
-
std::unordered_map<int, std::string> um{ { 10, "A" }, { 11, "B" },
{ 12, "C" }, { 14, "D" },
{ 15, "E" }, { 17, "F" },
void
test02()
{
- bool test [[gnu::unused]] = true;
-
std::unordered_multimap<int, std::string> umm{ { 20, "S" }, { 21, "T" },
{ 22, "U" }, { 22, "V" },
{ 23, "W" }, { 23, "X" },
void
test01()
{
- bool test [[gnu::unused]] = true;
-
auto is_odd = [](const int i) { return i % 2 != 0; };
std::unordered_set<int> us{ 10, 11, 12, 14, 15, 17, 18, 19 };
void
test02()
{
- bool test [[gnu::unused]] = true;
-
auto is_odd = [](const int i) { return i % 2 != 0; };
std::unordered_multiset<int> ums{ 20, 21, 22, 22, 23, 23, 24, 25 };
void
test01()
{
- bool test [[gnu::unused]] = true;
-
auto is_odd = [](const int i) { return i % 2 != 0; };
std::vector<int> v{ 10, 11, 12, 14, 15, 17, 18, 19 };
void
test02()
{
- bool test [[gnu::unused]] = true;
-
std::vector<int> v{ 0, 11, 0, 0, 22, 33, 0, 0, 44, 0 };
std::experimental::erase(v, 0);
std::vector<int> t{ 11, 22, 33, 44 };
void test01()
{
- bool test __attribute__((unused)) = true;
-
using __gnu_cxx::__versa_string;
typedef __gnu_cxx::array_allocator<char_type, array_type> allocator_type;
typedef __versa_string<char_type, traits_type, allocator_type> string_type;
void test01()
{
- bool test __attribute__((unused)) = true;
-
using __gnu_cxx::__versa_string;
typedef __gnu_cxx::array_allocator<char_type, array_type> allocator_type;
typedef __versa_string<char_type, traits_type, allocator_type> string_type;
void test01()
{
- bool test __attribute__((unused)) = true;
-
using __gnu_cxx::__versa_string;
typedef __gnu_cxx::array_allocator<char_type, array_type> allocator_type;
typedef __versa_string<char_type, traits_type, allocator_type> string_type;
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::pair<int, char> pair_type;
typedef std::tr1::array<pair_type, 3> array_type;
array_type store;
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::pair<int, char> pair_type;
__gnu_cxx::bitmap_allocator<pair_type> alloc1;
typedef __gnu_cxx::encoding_state state_type;
typedef codecvt<int_type, ext_type, state_type> unicode_codecvt;
- bool test __attribute__((unused)) = true;
const ext_type* e_lit = "black pearl jasmine tea";
int size = strlen(e_lit);
typedef char_traits<int_type> int_traits;
typedef char_traits<ext_type> ext_traits;
- bool test __attribute__((unused)) = true;
const ext_type* e_lit = "black pearl jasmine tea";
int size = strlen(e_lit);
typedef char_traits<int_type> int_traits;
typedef char_traits<ext_type> ext_traits;
- bool test __attribute__((unused)) = true;
const ext_type* e_lit = "black pearl jasmine tea";
int size = strlen(e_lit);
typedef char_traits<int_type> int_traits;
typedef char_traits<ext_type> ext_traits;
- bool test __attribute__((unused)) = true;
int size = 23;
char e_lit_base[96] __attribute__((aligned(__alignof__(ext_type)))) =
{
typedef filebuf_type::state_type state_type;
typedef codecvt<char_type, char, state_type> enc_codecvt;
- bool test __attribute__((unused)) = true;
ios_base::openmode mode = ios_base::in | ios_base::out | ios_base::trunc;
try
{
int main()
{
- bool test __attribute__((unused)) = true;
typedef char char_type;
typedef __gnu_cxx::enc_filebuf<char_type> filebuf_type;
typedef filebuf_type::state_type state_type;
typedef filebuf_type::state_type state_type;
typedef codecvt<char_type, char, state_type> enc_codecvt;
- bool test __attribute__((unused)) = true;
ios_base::openmode mode = ios_base::in | ios_base::out | ios_base::trunc;
try
{
void
test01() {
- bool test __attribute__((unused)) = true;
-
typedef _Pointer_adapter<_Relative_pointer_impl<int> > pointer;
typedef _Pointer_adapter<_Relative_pointer_impl<const int> > const_pointer;
}
void test02() {
- bool test __attribute__((unused)) = true;
-
B b;
b.i = 2;
b.j = 2;
}
void test03() {
- bool test __attribute__((unused)) = true;
-
B b;
B* bPtr = &b;
A* aPtr __attribute__((unused)) = __static_pointer_cast<A*>(bPtr);
// 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;
void test01(void) {
- bool test __attribute__((unused)) = true;
-
A a;
B b;
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::pair<int, char> pair_type;
__gnu_cxx::malloc_allocator<pair_type> alloc1;
// __per_type_pool_policy
void test01()
{
- bool test __attribute__((unused)) = true;
-
typedef big value_type;
using __gnu_cxx::__pool;
// __common_pool_policy
void test01()
{
- bool test __attribute__((unused)) = true;
-
using __gnu_cxx::__pool;
using __gnu_cxx::__common_pool_policy;
// __per_type_pool_policy
void test02()
{
- bool test __attribute__((unused)) = true;
-
typedef __gnu_test::pod_int value_type;
using __gnu_cxx::__pool;
template<typename _Tp, typename _Cp>
void test03()
{
- bool test __attribute__((unused)) = true;
-
typedef __gnu_cxx::__pool_base::_Tune tune_type;
typedef _Tp value_type;
typedef _Cp policy_type;
template<typename _Tp, typename _Cp>
void test04()
{
- bool test __attribute__((unused)) = true;
-
typedef __gnu_cxx::__pool_base::_Tune tune_type;
typedef _Tp value_type;
typedef _Cp policy_type;
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::pair<int, char> pair_type;
__gnu_cxx::__mt_alloc<pair_type> alloc1;
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::pair<int, char> pair_type;
__gnu_cxx::new_allocator<pair_type> alloc1;
typedef character<value_type, int_type> char_type;
typedef std::char_traits<char_type> traits_type;
- bool test __attribute__((unused)) = true;
+ bool test = true;
// 1 char_type <-> value_type conversions
value_type uc1 = 'c';
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::pair<int, char> pair_type;
__gnu_cxx::__pool_alloc<pair_type> alloc1;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::arcsine_distribution<> u;
VERIFY( u.a() == 0.0 );
VERIFY( u.b() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::arcsine_distribution<double> u(-2.0, 3.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::arcsine_distribution<double> u(-2.0, 3.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::stringstream str;
__gnu_cxx::arcsine_distribution<double> u(-1.5, 3.0), v;
std::minstd_rand0 rng;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::beta_distribution<> u;
VERIFY( u.alpha() == 1.0 );
VERIFY( u.beta() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::beta_distribution<double> u(1.5, 3.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::beta_distribution<double> u(1.5, 3.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::hoyt_distribution<> u;
VERIFY( u.q() == 0.5 );
VERIFY( u.omega() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::hoyt_distribution<double> u(0.05, 3.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::hoyt_distribution<double> u(0.05, 3.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::stringstream str;
__gnu_cxx::hoyt_distribution<double> u(0.05, 3.0), v;
std::minstd_rand0 rng;
void
test01()
{
- bool test [[gnu::unused]] = true;
-
__gnu_cxx::hypergeometric_distribution<> u;
VERIFY( u.total_size() == 10 );
VERIFY( u.successful_size() == 5 );
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 );
void
test01()
{
- bool test [[gnu::unused]] = true;
-
__gnu_cxx::hypergeometric_distribution<unsigned int> u(20, 3, 2), v, w;
VERIFY( v == w );
void
test01()
{
- bool test [[gnu::unused]] = true;
-
__gnu_cxx::hypergeometric_distribution<unsigned int> u(20, 3, 5), v, w;
VERIFY( u != v );
void
test01()
{
- bool test [[gnu::unused]] = true;
-
std::stringstream str;
__gnu_cxx::hypergeometric_distribution<unsigned int> u(15, 3, 6), v;
std::minstd_rand0 rng;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::k_distribution<> u;
VERIFY( u.lambda() == 1.0 );
VERIFY( u.mu() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::k_distribution<double> u(2.0, 1.5, 3.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::k_distribution<double> u(2.0, 1.5, 3.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::stringstream str;
__gnu_cxx::k_distribution<double> u(2.0, 1.5, 3.0), v;
std::minstd_rand0 rng;
void
test01()
{
- bool test [[gnu::unused]] = true;
-
__gnu_cxx::logistic_distribution<> u;
VERIFY( u.a() == 0.0 );
VERIFY( u.b() == 1.0 );
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 );
void
test01()
{
- bool test [[gnu::unused]] = true;
-
__gnu_cxx::logistic_distribution<double> u(2.0, 3.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test [[gnu::unused]] = true;
-
__gnu_cxx::logistic_distribution<double> u(2.0, 3.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test [[gnu::unused]] = true;
-
std::stringstream str;
__gnu_cxx::logistic_distribution<double> u(1.5, 3.0), v;
std::minstd_rand0 rng;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::nakagami_distribution<> u;
VERIFY( u.mu() == 1.0 );
VERIFY( u.omega() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::nakagami_distribution<double> u(2.0, 3.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::nakagami_distribution<double> u(2.0, 3.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::stringstream str;
__gnu_cxx::nakagami_distribution<double> u(1.5, 3.0), v;
std::minstd_rand0 rng;
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 );
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 );
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 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::pareto_distribution<> u;
VERIFY( u.alpha() == 1.0 );
VERIFY( u.mu() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::pareto_distribution<double> u(2.0, 3.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::pareto_distribution<double> u(2.0, 3.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::stringstream str;
__gnu_cxx::pareto_distribution<double> u(1.5, 3.0), v;
std::minstd_rand0 rng;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::rice_distribution<> u;
VERIFY( u.nu() == 0.0 );
VERIFY( u.sigma() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::rice_distribution<double> u(2.0, 3.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::rice_distribution<double> u(2.0, 3.0), v, w;
VERIFY( u != v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::stringstream str;
__gnu_cxx::rice_distribution<double> u(1.5, 3.0), v;
std::minstd_rand0 rng;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::sfmt19937 e;
VERIFY( e.min() == 0 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::sfmt19937 u, v;
VERIFY( u == v );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::sfmt19937 u, v;
VERIFY( !(u != v) );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::stringstream str;
__gnu_cxx::sfmt19937 u, v;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::triangular_distribution<> u;
VERIFY( u.a() == 0.0 );
VERIFY( u.b() == 0.5 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::triangular_distribution<double> u(1.5, 3.0, 4.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::triangular_distribution<double> u(1.5, 3.0, 5.0), v, w;
VERIFY( u != v );
// 26.5.1.6 Random number distribution requirements [rand.req.dist]
#include <ext/random>
-#include <testsuite_hooks.h>
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;
void
test01()
{
- bool test [[gnu::unused]] = true;
-
__gnu_cxx::uniform_on_sphere_distribution<3> u, v;
VERIFY( u == v );
void
test01()
{
- bool test [[gnu::unused]] = true;
std::minstd_rand0 rng;
__gnu_cxx::uniform_on_sphere_distribution<3> u3;
void
test01()
{
- bool test [[gnu::unused]] = true;
-
__gnu_cxx::uniform_on_sphere_distribution<3> u, v;
VERIFY( !(u != v) );
void
test01()
{
- bool test [[gnu::unused]] = true;
-
std::stringstream str;
__gnu_cxx::uniform_on_sphere_distribution<3> u, v;
std::minstd_rand0 rng;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::von_mises_distribution<> u;
VERIFY( u.mu() == 0.0 );
VERIFY( u.kappa() == 1.0 );
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 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::von_mises_distribution<double> u(1.5, 3.0), v, w;
VERIFY( v == w );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::von_mises_distribution<double> u(1.5, 3.0), v, w;
VERIFY( u != v );
{
using namespace std;
using namespace __gnu_cxx;
- bool test __attribute__((unused)) = true;
crope r(10000, 'x');
crope r2 = r + "abc" + r;
test01()
{
using namespace __gnu_cxx;
- bool test __attribute__((unused)) = true;
crope r;
r = multiply(crope(base), 100000);
void test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::crope r1("wibble");
__gnu_cxx::crope r2;
std::copy( r1.begin(), r1.end(),
// 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;
}
int
main()
{
- bool test __attribute__((unused)) = true;
-
pthread_t tid[max_thread_count];
#if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
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));
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));
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));
void
test(const testcase_conf_hyperg<Tp> (&data)[Num], Tp toler)
{
- bool test __attribute__((unused)) = true;
const Tp eps = std::numeric_limits<Tp>::epsilon();
Tp max_abs_diff = -Tp(1);
Tp max_abs_frac = -Tp(1);
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));
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));
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));
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));
void
test(const testcase_hyperg<Tp> (&data)[Num], Tp toler)
{
- bool test __attribute__((unused)) = true;
const Tp eps = std::numeric_limits<Tp>::epsilon();
Tp max_abs_diff = -Tp(1);
Tp max_abs_frac = -Tp(1);
void test1()
{
using namespace std;
- bool test __attribute__((unused)) = true;
FILE* file = fopen("tmp_10063-1", "w");
putc('0', file);
void test2()
{
using namespace std;
- bool test __attribute__((unused)) = true;
filebuf fbuf;
fbuf.open("tmp_10063-2", ios_base::out | ios_base::trunc);
void test3()
{
using namespace std;
- bool test __attribute__((unused)) = true;
filebuf fbuf;
fbuf.open("tmp_10063-3", ios_base::out | ios_base::trunc);
void test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
const char* name = "tmp_file1";
FILE* file = fopen(name, "w");
{
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";
// libstdc++/12048
void test02()
{
- bool test __attribute__((unused)) = true;
const char* name = "cin_unget-1.txt";
std::FILE* file = std::fopen(name, "r");
// libstdc++/12048
void test03()
{
- bool test __attribute__((unused)) = true;
const char* name = "cin_unget-1.txt";
std::FILE* file = std::fopen(name, "r");
// libstdc++/12048
void test04()
{
- bool test __attribute__((unused)) = true;
const char* name = "cin_unget-1.txt";
std::FILE* file = std::fopen(name, "r");
// libstdc++/12048
void test05()
{
- bool test __attribute__((unused)) = true;
const char* name = "cin_unget-1.txt";
std::FILE* file = std::fopen(name, "r");
using namespace std;
typedef char_traits<wchar_t> 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);
void test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
const char* name = "tmp_12077";
// libstdc++/12048
void test02()
{
- bool test __attribute__((unused)) = true;
const char* name = "cin_unget-1.txt";
std::FILE* file = std::fopen(name, "r");
// libstdc++/12048
void test03()
{
- bool test __attribute__((unused)) = true;
const char* name = "cin_unget-1.txt";
std::FILE* file = std::fopen(name, "r");
// libstdc++/12048
void test04()
{
- bool test __attribute__((unused)) = true;
const char* name = "cin_unget-1.txt";
std::FILE* file = std::fopen(name, "r");
// libstdc++/12048
void test05()
{
- bool test __attribute__((unused)) = true;
const char* name = "cin_unget-1.txt";
std::FILE* file = std::fopen(name, "r");
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::pair<int, char> pair_type;
__gnu_cxx::throw_allocator_random<pair_type> alloc1;
void
check_add_unsigned()
{
- bool test __attribute__((unused)) = true;
typedef typename __gnu_cxx::__add_unsigned<T>::__type unsigned_type;
VERIFY( std::tr1::is_unsigned<unsigned_type>::value );
}
void
check_remove_unsigned()
{
- bool test __attribute__((unused)) = true;
typedef typename __gnu_cxx::__remove_unsigned<T>::__type signed_type;
VERIFY( std::tr1::is_signed<signed_type>::value );
}
// libstdc++/29134
void test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::__vstring vs;
VERIFY( vs.max_size() <= vs.get_allocator().max_size() );
// libstdc++/42573
void test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::__vstring vs(100, 'a');
vs.push_back('b');
vs.push_back('b');
void test01()
{
- bool test __attribute__((unused)) = true;
-
string s1("string");
string s2("");
std::swap(s1, s2);
void test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::__sso_string a,b;
a.push_back('1');
b = std::move(a);
void test02()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::__rc_string a,b;
a.push_back('1');
b = std::move(a);
// PR c++/58163
void test01()
{
- bool test __attribute__((unused)) = true;
-
const __gnu_cxx::__vstring cs;
__gnu_cxx::__vstring s;
void test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
__gnu_cxx::__vstring str("ramifications");
const __gnu_cxx::__vstring cstr("melodien");
// PR c++/58163
void test01()
{
- bool test __attribute__((unused)) = true;
-
const __gnu_cxx::__wvstring cs;
__gnu_cxx::__wvstring s;
void test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
__gnu_cxx::__wvstring str(L"ramifications");
const __gnu_cxx::__wvstring cstr(L"melodien");
// libstdc++/47773
void test01()
{
- bool test __attribute__((unused)) = true;
-
typedef __gnu_cxx::__vstring vstring_t;
typedef std::unordered_map<vstring_t, int> map_t;
// libstdc++/47773
void test01()
{
- bool test __attribute__((unused)) = true;
-
typedef __gnu_cxx::__wvstring vstring_t;
typedef std::unordered_map<vstring_t, int> map_t;
#include <ext/vstring.h>
#include <testsuite_hooks.h>
-int test01(void)
+void test01(void)
{
- bool test = true;
-
__gnu_cxx::__vstring s1 = { 'a', 'b', 'c' };
VERIFY(s1 == "abc");
i2 = i1+6;
s1.replace(i1, i2, { 'y', 'z' });
VERIFY(s1 == "mnyzo");
-
- return test;
}
int main()
void test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
ostringstream oss_01;
const __gnu_cxx::__vstring str_01(50, 'a');
void test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
wostringstream oss_01;
const __gnu_cxx::__wvstring str_01(50, L'a');
void test01()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::__sso_string a, b;
a.push_back('1');
b.assign(std::move(a));
void test02()
{
- bool test __attribute__((unused)) = true;
-
__gnu_cxx::__rc_string a, b;
a.push_back('1');
b.assign(std::move(a));
#include <testsuite_hooks.h>
template<typename StrT>
-int test01()
+void test01()
{
- bool test __attribute__((unused)) = true;
-
const StrT cstr("Badger");
StrT str = cstr;
str.pop_back();
str += cstr.back();
VERIFY( str == cstr );
-
- return test;
}
int main()
#include <testsuite_hooks.h>
template<typename StrT>
-int test01()
+void test01()
{
- bool test __attribute__((unused)) = true;
-
const StrT cstr(L"Badger");
StrT str = cstr;
str.pop_back();
str += cstr.back();
VERIFY( str == cstr );
-
- return test;
}
int main()
void test01()
{
- bool test __attribute__((unused)) = true;
using __gnu_cxx::__vstring;
VERIFY( (__vstring("abc") + __vstring("def")
void test01()
{
- bool test __attribute__((unused)) = true;
using __gnu_cxx::__vstring;
using std::move;