+2016-10-13 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * testsuite/24_iterators/container_access.cc: Remove 'test' variables.
+ * testsuite/24_iterators/istream_iterator/2.cc: Likewise.
+ * testsuite/24_iterators/istreambuf_iterator/2.cc: Likewise.
+ * testsuite/24_iterators/istreambuf_iterator/2627.cc: Likewise.
+ * testsuite/24_iterators/operations/next.cc: Likewise.
+ * testsuite/24_iterators/operations/prev.cc: Likewise.
+ * testsuite/24_iterators/ostreambuf_iterator/2.cc: Likewise.
+ * testsuite/24_iterators/random_access_iterator/26020.cc: Likewise.
+ * testsuite/24_iterators/range_access_cpp14.cc: Likewise.
+ * testsuite/24_iterators/reverse_iterator/11729.cc: Likewise.
+ * testsuite/24_iterators/reverse_iterator/3.cc: Likewise.
+ * testsuite/25_algorithms/adjacent_find/vectorbool.cc: Likewise.
+ * testsuite/25_algorithms/all_of/1.cc: Likewise.
+ * testsuite/25_algorithms/any_of/1.cc: Likewise.
+ * testsuite/25_algorithms/binary_search/2.cc: Likewise.
+ * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
+ * testsuite/25_algorithms/clamp/1.cc: Likewise.
+ * testsuite/25_algorithms/clamp/2.cc: Likewise.
+ * testsuite/25_algorithms/copy/1.cc: Likewise.
+ * testsuite/25_algorithms/copy/2.cc: Likewise.
+ * testsuite/25_algorithms/copy/3.cc: Likewise.
+ * testsuite/25_algorithms/copy/34595.cc: Likewise.
+ * testsuite/25_algorithms/copy/4.cc: Likewise.
+ * testsuite/25_algorithms/copy/deque_iterators/1.cc: Likewise.
+ * testsuite/25_algorithms/copy/move_iterators/1.cc: Likewise.
+ * testsuite/25_algorithms/copy/streambuf_iterators/char/1.cc: Likewise.
+ * testsuite/25_algorithms/copy/streambuf_iterators/char/2.cc: Likewise.
+ * testsuite/25_algorithms/copy/streambuf_iterators/char/3.cc: Likewise.
+ * testsuite/25_algorithms/copy/streambuf_iterators/char/4.cc: Likewise.
+ * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/1.cc:
+ Likewise.
+ * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/2.cc:
+ Likewise.
+ * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/3.cc:
+ Likewise.
+ * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/4.cc:
+ Likewise.
+ * testsuite/25_algorithms/copy_backward/deque_iterators/1.cc: Likewise.
+ * testsuite/25_algorithms/copy_backward/move_iterators/1.cc: Likewise.
+ * testsuite/25_algorithms/copy_n/1.cc: Likewise.
+ * testsuite/25_algorithms/copy_n/2.cc: Likewise.
+ * testsuite/25_algorithms/copy_n/3.cc: Likewise.
+ * testsuite/25_algorithms/copy_n/4.cc: Likewise.
+ * testsuite/25_algorithms/copy_n/50119.cc: Likewise.
+ * testsuite/25_algorithms/copy_n/move_iterators/1.cc: Likewise.
+ * testsuite/25_algorithms/equal_range/2.cc: Likewise.
+ * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
+ * testsuite/25_algorithms/fill/1.cc: Likewise.
+ * testsuite/25_algorithms/fill/2.cc: Likewise.
+ * testsuite/25_algorithms/fill/3.cc: Likewise.
+ * testsuite/25_algorithms/fill/4.cc: Likewise.
+ * testsuite/25_algorithms/fill_n/1.cc: Likewise.
+ * testsuite/25_algorithms/find/39546.cc: Likewise.
+ * testsuite/25_algorithms/find/istreambuf_iterators/char/1.cc: Likewise.
+ * testsuite/25_algorithms/find/istreambuf_iterators/char/2.cc: Likewise.
+ * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/1.cc:
+ Likewise.
+ * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/2.cc:
+ Likewise.
+ * testsuite/25_algorithms/find_if/1.cc: Likewise.
+ * testsuite/25_algorithms/find_if_not/1.cc: Likewise.
+ * testsuite/25_algorithms/for_each/1.cc: Likewise.
+ * testsuite/25_algorithms/heap/1.cc: Likewise.
+ * testsuite/25_algorithms/heap/moveable.cc: Likewise.
+ * testsuite/25_algorithms/heap/moveable2.cc: Likewise.
+ * testsuite/25_algorithms/heap/vectorbool.cc: Likewise.
+ * testsuite/25_algorithms/includes/1.cc: Likewise.
+ * testsuite/25_algorithms/inplace_merge/1.cc: Likewise.
+ * testsuite/25_algorithms/inplace_merge/49559.cc: Likewise.
+ * testsuite/25_algorithms/inplace_merge/moveable.cc: Likewise.
+ * testsuite/25_algorithms/inplace_merge/moveable2.cc: Likewise.
+ * testsuite/25_algorithms/is_heap/1.cc: Likewise.
+ * testsuite/25_algorithms/is_heap_until/1.cc: Likewise.
+ * testsuite/25_algorithms/is_partitioned/1.cc: Likewise.
+ * testsuite/25_algorithms/is_permutation/1.cc: Likewise.
+ * testsuite/25_algorithms/is_permutation/2.cc: Likewise.
+ * testsuite/25_algorithms/is_permutation/vectorbool.cc: Likewise.
+ * testsuite/25_algorithms/is_sorted/1.cc: Likewise.
+ * testsuite/25_algorithms/is_sorted_until/1.cc: Likewise.
+ * testsuite/25_algorithms/iter_swap/20577.cc: Likewise.
+ * testsuite/25_algorithms/lower_bound/2.cc: Likewise.
+ * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
+ * testsuite/25_algorithms/make_heap/complexity.cc: Likewise.
+ * testsuite/25_algorithms/max/1.cc: Likewise.
+ * testsuite/25_algorithms/max/2.cc: Likewise.
+ * testsuite/25_algorithms/max/3.cc: Likewise.
+ * testsuite/25_algorithms/max/37547.cc: Likewise.
+ * testsuite/25_algorithms/max/4.cc: Likewise.
+ * testsuite/25_algorithms/min/1.cc: Likewise.
+ * testsuite/25_algorithms/min/2.cc: Likewise.
+ * testsuite/25_algorithms/min/3.cc: Likewise.
+ * testsuite/25_algorithms/min/37547.cc: Likewise.
+ * testsuite/25_algorithms/min/4.cc: Likewise.
+ * testsuite/25_algorithms/minmax/1.cc: Likewise.
+ * testsuite/25_algorithms/minmax/2.cc: Likewise.
+ * testsuite/25_algorithms/minmax/3.cc: Likewise.
+ * testsuite/25_algorithms/minmax/37547.cc: Likewise.
+ * testsuite/25_algorithms/minmax_element/1.cc: Likewise.
+ * testsuite/25_algorithms/move/1.cc: Likewise.
+ * testsuite/25_algorithms/move/deque_iterators/1.cc: Likewise.
+ * testsuite/25_algorithms/move_backward/1.cc: Likewise.
+ * testsuite/25_algorithms/move_backward/deque_iterators/1.cc: Likewise.
+ * testsuite/25_algorithms/next_permutation/moveable.cc: Likewise.
+ * testsuite/25_algorithms/none_of/1.cc: Likewise.
+ * testsuite/25_algorithms/nth_element/1.cc: Likewise.
+ * testsuite/25_algorithms/nth_element/2.cc: Likewise.
+ * testsuite/25_algorithms/nth_element/3.cc: Likewise.
+ * testsuite/25_algorithms/nth_element/moveable.cc: Likewise.
+ * testsuite/25_algorithms/nth_element/random_test.cc: Likewise.
+ * testsuite/25_algorithms/partial_sort/2.cc: Likewise.
+ * testsuite/25_algorithms/partial_sort/check_compare_by_value.cc:
+ Likewise.
+ * testsuite/25_algorithms/partial_sort/moveable.cc: Likewise.
+ * testsuite/25_algorithms/partial_sort/random_test.cc: Likewise.
+ * testsuite/25_algorithms/partial_sort_copy/2.cc: Likewise.
+ * testsuite/25_algorithms/partial_sort_copy/random_test.cc: Likewise.
+ * testsuite/25_algorithms/partition/1.cc: Likewise.
+ * testsuite/25_algorithms/partition/moveable.cc: Likewise.
+ * testsuite/25_algorithms/partition_copy/1.cc: Likewise.
+ * testsuite/25_algorithms/partition_point/1.cc: Likewise.
+ * testsuite/25_algorithms/pop_heap/complexity.cc: Likewise.
+ * testsuite/25_algorithms/prev_permutation/moveable.cc: Likewise.
+ * testsuite/25_algorithms/push_heap/complexity.cc: Likewise.
+ * testsuite/25_algorithms/random_shuffle/1.cc: Likewise.
+ * testsuite/25_algorithms/random_shuffle/moveable.cc: Likewise.
+ * testsuite/25_algorithms/rotate/1.cc: Likewise.
+ * testsuite/25_algorithms/rotate/moveable.cc: Likewise.
+ * testsuite/25_algorithms/rotate/moveable2.cc: Likewise.
+ * testsuite/25_algorithms/rotate/rotate.cc: Likewise.
+ * testsuite/25_algorithms/search/1.cc: Likewise.
+ * testsuite/25_algorithms/search_n/58358.cc: Likewise.
+ * testsuite/25_algorithms/shuffle/1.cc: Likewise.
+ * testsuite/25_algorithms/sort/1.cc: Likewise.
+ * testsuite/25_algorithms/sort/check_compare_by_value.cc: Likewise.
+ * testsuite/25_algorithms/sort/moveable.cc: Likewise.
+ * testsuite/25_algorithms/sort/random_test.cc: Likewise.
+ * testsuite/25_algorithms/sort/vectorbool.cc: Likewise.
+ * testsuite/25_algorithms/sort_heap/check_compare_by_value.cc: Likewise.
+ * testsuite/25_algorithms/sort_heap/complexity.cc: Likewise.
+ * testsuite/25_algorithms/stable_partition/1.cc: Likewise.
+ * testsuite/25_algorithms/stable_partition/mem_check.cc: Likewise.
+ * testsuite/25_algorithms/stable_partition/moveable.cc: Likewise.
+ * testsuite/25_algorithms/stable_sort/2.cc: Likewise.
+ * testsuite/25_algorithms/stable_sort/3.cc: Likewise.
+ * testsuite/25_algorithms/stable_sort/49559.cc: Likewise.
+ * testsuite/25_algorithms/stable_sort/check_compare_by_value.cc:
+ Likewise.
+ * testsuite/25_algorithms/stable_sort/mem_check.cc: Likewise.
+ * testsuite/25_algorithms/stable_sort/moveable.cc: Likewise.
+ * testsuite/25_algorithms/stable_sort/moveable2.cc: Likewise.
+ * testsuite/25_algorithms/swap_ranges/1.cc: Likewise.
+ * testsuite/25_algorithms/unique/11480.cc: Likewise.
+ * testsuite/25_algorithms/unique/2.cc: Likewise.
+ * testsuite/25_algorithms/unique/moveable.cc: Likewise.
+ * testsuite/25_algorithms/unique_copy/1.cc: Likewise.
+ * testsuite/25_algorithms/unique_copy/2.cc: Likewise.
+ * testsuite/25_algorithms/unique_copy/26133.cc: Likewise.
+ * testsuite/25_algorithms/upper_bound/2.cc: Likewise.
+ * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_match/awk/cstring_01.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_match/basic/empty_range.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/basic/string_01.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/basic/
+ string_range_00_03.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_match/basic/
+ string_range_01_03.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_match/basic/
+ string_range_02_03.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/char/53622.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/char/57173.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/char/58576.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/char/68863.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/char/anymatcher.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/char/backref.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/char/empty_range.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/char/emptygroup.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/char/hex.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/char/quoted_char.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/char/ungreedy.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/63199.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/
+ anymatcher.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/cjk_match.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/hex.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/extended/cstring_plus.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/extended/
+ cstring_questionmark.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_match/extended/
+ cstring_range.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_match/extended/string_any.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_match/extended/
+ string_range_00_03.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_match/extended/
+ string_range_01_03.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_match/extended/
+ string_range_02_03.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_match/extended/
+ wstring_locale.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_replace/char/basic_replace.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_replace/char/dr2213.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_search/61720.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_search/basic/string_01.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_search/ecma/assertion.cc:
+ Likewise.
+ * testsuite/28_regex/algorithms/regex_search/ecma/flags.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_search/ecma/greedy.cc: Likewise.
+ * testsuite/28_regex/algorithms/regex_search/ecma/string_01.cc:
+ Likewise.
+ * testsuite/28_regex/basic_regex/assign/char/cstring.cc: Likewise.
+ * testsuite/28_regex/basic_regex/assign/char/cstring_op.cc: Likewise.
+ * testsuite/28_regex/basic_regex/assign/char/moveable.cc: Likewise.
+ * testsuite/28_regex/basic_regex/assign/char/pstring.cc: Likewise.
+ * testsuite/28_regex/basic_regex/assign/char/range.cc: Likewise.
+ * testsuite/28_regex/basic_regex/assign/char/string.cc: Likewise.
+ * testsuite/28_regex/basic_regex/assign/char/string_op.cc: Likewise.
+ * testsuite/28_regex/basic_regex/assign/wchar_t/cstring.cc: Likewise.
+ * testsuite/28_regex/basic_regex/assign/wchar_t/cstring_op.cc: Likewise.
+ * testsuite/28_regex/basic_regex/assign/wchar_t/pstring.cc: Likewise.
+ * testsuite/28_regex/basic_regex/assign/wchar_t/range.cc: Likewise.
+ * testsuite/28_regex/basic_regex/assign/wchar_t/string.cc: Likewise.
+ * testsuite/28_regex/basic_regex/assign/wchar_t/string_op.cc: Likewise.
+ * testsuite/28_regex/basic_regex/ctors/basic/pstring_wchar_t.cc:
+ Likewise.
+ * testsuite/28_regex/basic_regex/ctors/basic/string_range_01_02_03.cc:
+ Likewise.
+ * testsuite/28_regex/basic_regex/ctors/extended/cstring.cc: Likewise.
+ * testsuite/28_regex/basic_regex/ctors/extended/
+ string_range_01_02_03.cc: Likewise.
+ * testsuite/28_regex/basic_regex/ctors/move_char.cc: Likewise.
+ * testsuite/28_regex/basic_regex/ctors/string_wchar_t.cc: Likewise.
+ * testsuite/28_regex/basic_regex/ctors/wchar_t/cstring.cc: Likewise.
+ * testsuite/28_regex/basic_regex/ctors/wchar_t/default.cc: Likewise.
+ * testsuite/28_regex/basic_regex/ctors/wchar_t/range.cc: Likewise.
+ * testsuite/28_regex/basic_regex/imbue/string.cc: Likewise.
+ * testsuite/28_regex/constants/error_type.cc: Likewise.
+ * testsuite/28_regex/constants/match_flag_type.cc: Likewise.
+ * testsuite/28_regex/init-list.cc: Likewise.
+ * testsuite/28_regex/iterators/regex_iterator/char/64140.cc: Likewise.
+ * testsuite/28_regex/iterators/regex_iterator/char/string_01.cc:
+ Likewise.
+ * testsuite/28_regex/iterators/regex_iterator/char/
+ string_position_01.cc
+ * testsuite/28_regex/iterators/regex_iterator/ctors/char/default.cc:
+ Likewise.
+ * testsuite/28_regex/iterators/regex_iterator/ctors/wchar_t/
+ default.cc: Likewise.
+ * testsuite/28_regex/iterators/regex_iterator/typedefs.cc: Likewise.
+ * testsuite/28_regex/iterators/regex_iterator/wchar_t/string_01.cc:
+ Likewise.
+ * testsuite/28_regex/iterators/regex_iterator/wchar_t/string_02.cc:
+ Likewise.
+ * testsuite/28_regex/iterators/regex_token_iterator/64303.cc: Likewise.
+ * testsuite/28_regex/iterators/regex_token_iterator/char/string_01.cc:
+ Likewise.
+ * testsuite/28_regex/iterators/regex_token_iterator/ctors/char/
+ default.cc: Likewise.
+ * testsuite/28_regex/iterators/regex_token_iterator/ctors/wchar_t/
+ default.cc: Likewise.
+ * testsuite/28_regex/iterators/regex_token_iterator/typedefs.cc:
+ Likewise.
+ * testsuite/28_regex/iterators/regex_token_iterator/wchar_t/
+ string_01.cc: Likewise.
+ * testsuite/28_regex/iterators/regex_token_iterator/wchar_t/
+ wstring_02.cc: Likewise.
+ * testsuite/28_regex/match_results/ctors/char/default.cc: Likewise.
+ * testsuite/28_regex/match_results/ctors/wchar_t/default.cc: Likewise.
+ * testsuite/28_regex/match_results/format.cc: Likewise.
+ * testsuite/28_regex/match_results/out_of_range_submatches.cc: Likewise.
+ * testsuite/28_regex/match_results/swap.cc: Likewise.
+ * testsuite/28_regex/match_results/typedefs.cc: Likewise.
+ * testsuite/28_regex/regex_error/regex_error.cc: Likewise.
+ * testsuite/28_regex/regression.cc: Likewise.
+ * testsuite/28_regex/sub_match/cast_char.cc: Likewise.
+ * testsuite/28_regex/sub_match/cast_wchar_t.cc: Likewise.
+ * testsuite/28_regex/sub_match/embedded_zeros_cmp.cc: Likewise.
+ * testsuite/28_regex/sub_match/length.cc: Likewise.
+ * testsuite/28_regex/traits/char/ctor.cc: Likewise.
+ * testsuite/28_regex/traits/char/isctype.cc: Likewise.
+ * testsuite/28_regex/traits/char/length.cc: Likewise.
+ * testsuite/28_regex/traits/char/lookup_classname.cc: Likewise.
+ * testsuite/28_regex/traits/char/lookup_collatename.cc: Likewise.
+ * testsuite/28_regex/traits/char/transform.cc: Likewise.
+ * testsuite/28_regex/traits/char/transform_primary.cc: Likewise.
+ * testsuite/28_regex/traits/char/translate.cc: Likewise.
+ * testsuite/28_regex/traits/char/translate_nocase.cc: Likewise.
+ * testsuite/28_regex/traits/char/user_defined.cc: Likewise.
+ * testsuite/28_regex/traits/char/value.cc: Likewise.
+ * testsuite/28_regex/traits/wchar_t/ctor.cc: Likewise.
+ * testsuite/28_regex/traits/wchar_t/isctype.cc: Likewise.
+ * testsuite/28_regex/traits/wchar_t/length.cc: Likewise.
+ * testsuite/28_regex/traits/wchar_t/lookup_classname.cc: Likewise.
+ * testsuite/28_regex/traits/wchar_t/lookup_collatename.cc: Likewise.
+ * testsuite/28_regex/traits/wchar_t/transform.cc: Likewise.
+ * testsuite/28_regex/traits/wchar_t/transform_primary.cc: Likewise.
+ * testsuite/28_regex/traits/wchar_t/translate.cc: Likewise.
+ * testsuite/28_regex/traits/wchar_t/translate_nocase.cc: Likewise.
+ * testsuite/28_regex/traits/wchar_t/user_defined.cc: Likewise.
+ * testsuite/28_regex/traits/wchar_t/value.cc: Likewise.
+ * testsuite/29_atomics/atomic/60658.cc: Likewise.
+ * testsuite/29_atomics/atomic/operators/51811.cc: Likewise.
+ * testsuite/29_atomics/atomic_flag/clear/1.cc: Likewise.
+ * testsuite/backward/11460.cc: Likewise.
+ * testsuite/backward/hash_map/1.cc: Likewise.
+ * testsuite/backward/hash_map/25896.cc: Likewise.
+ * testsuite/backward/hash_set/1.cc: Likewise.
+ * testsuite/backward/hash_set/25896.cc: Likewise.
+ * testsuite/decimal/binary-arith.cc: Likewise.
+ * testsuite/decimal/comparison.cc: Likewise.
+ * testsuite/decimal/compound-assignment-memfunc.cc: Likewise.
+ * testsuite/decimal/compound-assignment.cc: Likewise.
+ * testsuite/decimal/conversion-from-float.cc: Likewise.
+ * testsuite/decimal/conversion-from-integral.cc: Likewise.
+ * testsuite/decimal/conversion-to-generic-float.cc: Likewise.
+ * testsuite/decimal/conversion-to-integral.cc: Likewise.
+ * testsuite/decimal/ctor.cc: Likewise.
+ * testsuite/decimal/incdec-memfunc.cc: Likewise.
+ * testsuite/decimal/incdec.cc: Likewise.
+ * testsuite/decimal/make-decimal.cc: Likewise.
+ * testsuite/decimal/pr54036-1.cc: Likewise.
+ * testsuite/decimal/pr54036-2.cc: Likewise.
+ * testsuite/decimal/pr54036-3.cc: Likewise.
+ * testsuite/decimal/unary-arith.cc: Likewise.
+ * testsuite/special_functions/01_assoc_laguerre/check_nan.cc: Likewise.
+ * testsuite/special_functions/01_assoc_laguerre/check_value.cc:
+ Likewise.
+ * testsuite/special_functions/02_assoc_legendre/check_nan.cc: Likewise.
+ * testsuite/special_functions/02_assoc_legendre/check_value.cc:
+ Likewise.
+ * testsuite/special_functions/03_beta/check_nan.cc: Likewise.
+ * testsuite/special_functions/03_beta/check_value.cc: Likewise.
+ * testsuite/special_functions/04_comp_ellint_1/check_nan.cc: Likewise.
+ * testsuite/special_functions/04_comp_ellint_1/check_value.cc: Likewise.
+ * testsuite/special_functions/05_comp_ellint_2/check_nan.cc: Likewise.
+ * testsuite/special_functions/05_comp_ellint_2/check_value.cc: Likewise.
+ * testsuite/special_functions/06_comp_ellint_3/check_nan.cc: Likewise.
+ * testsuite/special_functions/06_comp_ellint_3/check_value.cc: Likewise.
+ * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc: Likewise.
+ * testsuite/special_functions/07_cyl_bessel_i/check_value.cc: Likewise.
+ * testsuite/special_functions/07_cyl_bessel_i/pr56216.cc: Likewise.
+ * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc: Likewise.
+ * testsuite/special_functions/08_cyl_bessel_j/check_value.cc: Likewise.
+ * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc: Likewise.
+ * testsuite/special_functions/09_cyl_bessel_k/check_value.cc: Likewise.
+ * testsuite/special_functions/10_cyl_neumann/check_nan.cc: Likewise.
+ * testsuite/special_functions/10_cyl_neumann/check_value.cc: Likewise.
+ * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise.
+ * testsuite/special_functions/11_ellint_1/check_value.cc: Likewise.
+ * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise.
+ * testsuite/special_functions/12_ellint_2/check_value.cc: Likewise.
+ * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise.
+ * testsuite/special_functions/13_ellint_3/check_value.cc: Likewise.
+ * testsuite/special_functions/14_expint/check_nan.cc: Likewise.
+ * testsuite/special_functions/14_expint/check_value.cc: Likewise.
+ * testsuite/special_functions/15_hermite/check_nan.cc: Likewise.
+ * testsuite/special_functions/15_hermite/check_value.cc: Likewise.
+ * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise.
+ * testsuite/special_functions/16_laguerre/check_value.cc: Likewise.
+ * testsuite/special_functions/17_legendre/check_nan.cc: Likewise.
+ * testsuite/special_functions/17_legendre/check_value.cc: Likewise.
+ * testsuite/special_functions/18_riemann_zeta/check_nan.cc: Likewise.
+ * testsuite/special_functions/18_riemann_zeta/check_value.cc: Likewise.
+ * testsuite/special_functions/19_sph_bessel/check_nan.cc: Likewise.
+ * testsuite/special_functions/19_sph_bessel/check_value.cc: Likewise.
+ * testsuite/special_functions/20_sph_legendre/check_nan.cc: Likewise.
+ * testsuite/special_functions/20_sph_legendre/check_value.cc: Likewise.
+ * testsuite/special_functions/21_sph_neumann/check_nan.cc: Likewise.
+ * testsuite/special_functions/21_sph_neumann/check_value.cc: Likewise.
+ * testsuite/tr2/bases/value.cc: Likewise.
+ * testsuite/tr2/direct_bases/value.cc: Likewise.
+ * testsuite/util/debug/checks.h: Likewise.
+ * testsuite/util/debug/unordered_checks.h: Likewise.
+ * testsuite/util/testsuite_allocator.h: Likewise.
+ * testsuite/util/testsuite_api.h: Likewise.
+ * testsuite/util/testsuite_common_types.h: Likewise.
+ * testsuite/util/testsuite_random.h: Likewise.
+ * testsuite/util/testsuite_rvalref.h: Likewise.
+
2016-10-13 Jonathan Wakely <jwakely@redhat.com>
* include/bits/shared_ptr_base.h: Include <functional>.
#include <vector>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
void
test01()
{
void test02()
{
using namespace std;
- bool test __attribute__((unused)) = true;
string st("R.Rorty");
#include <iterator>
#include <testsuite_hooks.h>
-bool test02(void)
+void test02(void)
{
typedef std::istreambuf_iterator<char> cistreambuf_iter;
typedef cistreambuf_iter::streambuf_type cstreambuf_type;
- bool test __attribute__((unused)) = true;
const char slit01[] = "playa hermosa, liberia, guanacaste";
std::string str01(slit01);
std::istringstream istrs00(str01);
c = *++istrb_it28;
VERIFY( c == slit01[++i] );
}
- return test;
}
int main()
// libstdc++/2627
void test03()
{
- bool test __attribute__((unused)) = true;
const std::string s("free the vieques");
// 1
void test01()
{
- bool test __attribute__((unused)) = true;
std::vector<int> c(3);
std::vector<int>::iterator i = c.begin(), j;
void test02()
{
- bool test __attribute__((unused)) = true;
std::list<int> c(3);
std::list<int>::iterator i = c.begin(), j;
void test01()
{
- bool test __attribute__((unused)) = true;
std::vector<int> c(3);
std::vector<int>::iterator i = c.end(), j;
void test02()
{
- bool test __attribute__((unused)) = true;
std::list<int> c(3);
std::list<int>::iterator i = c.end(), j;
#include <iterator>
#include <testsuite_hooks.h>
-bool test02(void)
+void test02(void)
{
typedef std::ostreambuf_iterator<char> costreambuf_iter;
typedef costreambuf_iter::streambuf_type cstreambuf_type;
- bool test __attribute__((unused)) = true;
const char slit01[] = "playa hermosa, liberia, guanacaste";
const char slit02[] = "bodega bay, lost coast, california";
std::string str01(slit01);
tmp = ostrs00.str();
VERIFY ( tmp != str01 );
VERIFY ( tmp != str02 );
- return test;
}
int main()
void test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
list<int> ll;
ll.push_back(1);
#include <vector>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
void
test01()
{
// libstdc++/11729
void test01()
{
- bool test __attribute__((unused)) = true;
-
typedef std::vector<int> Vec;
typedef Vec::reverse_iterator reverse_iterator;
typedef Vec::const_reverse_iterator const_reverse_iterator;
// libstdc++/10783
void test03()
{
- bool test __attribute__((unused)) = true;
-
typedef std::vector<int> V;
VERIFY( sizeof(V::iterator) == sizeof(V::reverse_iterator) );
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<bool> v;
v.push_back(true);
v.push_back(false);
void
test1()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array);
VERIFY( std::all_of(con.begin(), con.end(), predicate) );
}
void
test2()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 1);
VERIFY( std::all_of(con.begin(), con.end(), predicate) );
}
void
test3()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 6);
VERIFY( !std::all_of(con.begin(), con.end(), predicate) );
}
void
test1()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array);
VERIFY( !std::any_of(con.begin(), con.end(), predicate) );
}
void
test2()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 1);
VERIFY( !std::any_of(con.begin(), con.end(), predicate) );
}
void
test3()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 6);
VERIFY( std::any_of(con.begin(), con.end(), predicate) );
}
#include <algorithm>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
const int A[] = {1, 2, 3, 3, 3, 5, 8};
const int C[] = {8, 5, 3, 3, 3, 2, 1};
const int N = sizeof(A) / sizeof(int);
void
test01()
{
- bool test __attribute((unused)) = true;
-
// Test with range that is partitioned, but not sorted.
X seq[] = { 1, 3, 5, 7, 1, 6, 4 };
test_container<X, forward_iterator_wrapper> c(seq);
void test01()
{
- bool test __attribute__((unused)) = true;
-
const int x = std::clamp(1, 2, 4);
const int y = std::clamp(3, 2, 4);
const int z = std::clamp(5, 2, 4);
void test02()
{
- bool test __attribute__((unused)) = true;
-
VERIFY( 3 == std::clamp(A<int>::a, 2, 4) );
VERIFY( 2 == std::clamp(A<int>::a, 1, 2) );
VERIFY( 4 == std::clamp(A<int>::a, 4, 6) );
test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int);
test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int);
test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int);
// libstdc++/34595
void test01()
{
- bool test __attribute__((unused)) = true;
-
int t[10] = {0,};
Counting_output_iterator cnt;
std::size_t res = std::copy(t+0, t+5, cnt).current_counter();
test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int);
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
deque<long> data(200);
void test01()
{
- bool test __attribute__((unused)) = true;
-
int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
const int size = sizeof(inarray) / sizeof(int);
// In the occasion of libstdc++/25482
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
typedef istreambuf_iterator<char> in_iterator_type;
// In the occasion of libstdc++/25482
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
typedef istreambuf_iterator<char> in_iterator_type;
// In the occasion of libstdc++/25482
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
typedef ostreambuf_iterator<char> out_iterator_type;
// In the occasion of libstdc++/25482
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
typedef istreambuf_iterator<char> in_iterator_type;
// In the occasion of libstdc++/25482
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
typedef istreambuf_iterator<wchar_t> in_iterator_type;
// In the occasion of libstdc++/25482
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
typedef istreambuf_iterator<wchar_t> in_iterator_type;
// In the occasion of libstdc++/25482
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
typedef ostreambuf_iterator<wchar_t> out_iterator_type;
// In the occasion of libstdc++/25482
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
typedef istreambuf_iterator<wchar_t> in_iterator_type;
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
deque<long> data(200);
void test01()
{
- bool test __attribute__((unused)) = true;
-
int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
const int size = sizeof(inarray) / sizeof(int);
test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int);
test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int);
test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int);
test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int N = sizeof(A) / sizeof(int);
void test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
vector<int> v;
istringstream s("1 2 3 4 5");
void test01()
{
- bool test __attribute__((unused)) = true;
-
int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
const int size = sizeof(inarray) / sizeof(int);
#include <algorithm>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
const int A[] = {1, 2, 3, 3, 3, 5, 8};
const int C[] = {8, 5, 3, 3, 3, 2, 1};
const int N = sizeof(A) / sizeof(int);
void
test01()
{
- bool test __attribute((unused)) = true;
-
// Test with range that is partitioned, but not sorted.
X seq[] = { 1, 3, 5, 7, 1, 6, 4, 2 };
test_container<X, forward_iterator_wrapper> c(seq);
// fill
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
const int val = 1;
// fill_n
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
const int val = 3;
void test01()
{
- bool test __attribute__((unused)) = true;
-
char ca[1] = { '\0' };
signed char sc = 1;
test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
const int A1[] = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3};
const int N1 = sizeof(A1) / sizeof(int);
test01()
{
using namespace std;
- bool test __attribute__((unused)) = true;
const int A1[] = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3};
const int N1 = sizeof(A1) / sizeof(int);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<std::string> dict;
dict.push_back("one");
dict.push_back("two");
// In the occasion of libstdc++/25482
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
typedef istreambuf_iterator<char> in_iterator_type;
// In the occasion of libstdc++/25482
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
typedef istreambuf_iterator<char> in_iterator_type;
// In the occasion of libstdc++/25482
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
typedef istreambuf_iterator<wchar_t> in_iterator_type;
// In the occasion of libstdc++/25482
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
typedef istreambuf_iterator<wchar_t> in_iterator_type;
void
test1()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array);
VERIFY( std::find_if(con.begin(), con.end(),
predicate).ptr == array );
void
test2()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 1);
VERIFY( std::find_if(con.begin(), con.end(),
predicate).ptr == array + 1 );
void
test3()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 6);
VERIFY( std::find_if(con.begin(), con.end(),
predicate).ptr == array + 3 );
void
test1()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array);
VERIFY( std::find_if_not(con.begin(), con.end(),
predicate).ptr == array );
void
test2()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 1);
VERIFY( std::find_if_not(con.begin(), con.end(),
predicate).ptr == array + 1 );
void
test3()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 6);
VERIFY( std::find_if_not(con.begin(), con.end(),
predicate).ptr == array + 3 );
void test01()
{
- bool test __attribute__((unused)) = true;
using __gnu_test::test_container;
using __gnu_test::input_iterator_wrapper;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
// sort array s1 using push_heap/pop_heap
int s1[N];
std::copy(A, A + N, s1);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
Gt gt;
#ifndef _GLIBCXX_DEBUG
void
check_make(int* array, int length)
{
- bool test __attribute__((unused)) = true;
-
rvalstruct makeheap[9];
int makeheap_ref[9];
std::copy(array, array + length, makeheap);
void
check_pop(int* array, int length)
{
- bool test __attribute__((unused)) = true;
-
rvalstruct popheap[9];
int popheap_ref[9];
std::copy(array, array + length, popheap);
void
check_sort(int* array, int length)
{
- bool test __attribute__((unused)) = true;
-
rvalstruct sortheap[9];
int sortheap_ref[9];
std::copy(array, array + length, sortheap);
void
check_push(int* array, int pushval, int length)
{
- bool test __attribute__((unused)) = true;
-
rvalstruct pushheap[10];
int pushheap_ref[10];
std::copy(array, array + length, pushheap);
void
check_make(int* array, int length)
{
- bool test __attribute__((unused)) = true;
-
rvalstruct makeheap[9];
int makeheap_ref[9];
std::copy(array, array + length, makeheap);
void
check_pop(int* array, int length)
{
- bool test __attribute__((unused)) = true;
-
rvalstruct popheap[9];
int popheap_ref[9];
std::copy(array, array + length, popheap);
void
check_sort(int* array, int length)
{
- bool test __attribute__((unused)) = true;
-
rvalstruct sortheap[9];
int sortheap_ref[9];
std::copy(array, array + length, sortheap);
void
check_push(int* array, int pushval, int length)
{
- bool test __attribute__((unused)) = true;
-
rvalstruct pushheap[10];
int pushheap_ref[10];
std::copy(array, array + length, pushheap);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
// sort array s1 using push_heap/pop_heap
std::vector<bool> s1;
std::copy(A, A + N, std::back_inserter(s1));
void
test02()
{
- bool test __attribute__((unused)) = true;
-
Gt gt;
#ifndef _GLIBCXX_DEBUG
void
test1()
{
- bool test __attribute__((unused)) = true;
int array[] = {0};
Container con1(array, array);
Container con2(array, array);
void
test2()
{
- bool test __attribute__((unused)) = true;
int array[] = {0, 1};
Container con1(array, array);
Container con2(array, array + 2);
void
test3()
{
- bool test __attribute__((unused)) = true;
int array[] = {0, 1};
Container con1(array, array + 2);
Container con2(array, array);
void
test4()
{
- bool test __attribute__((unused)) = true;
int array1[] = {1, 2, 3, 4, 6, 8, 9};
int array2[] = {2, 4, 6, 8};
Container con1(array1, array1 + 7);
void
test5()
{
- bool test __attribute__((unused)) = true;
int array1[] = {1, 2, 3, 5};
int array2[] = {2, 4, 6, 8};
Container con1(array1, array1 + 4);
void
test2()
{
- bool test __attribute__((unused)) = true;
-
int array[] = { 0, 2, 4, 1, 3, 5 };
container con(array, array + 6);
inplace_merge(con.begin(), con.it(3), con.end());
void
test3()
{
- bool test __attribute__((unused)) = true;
-
S s[8];
s[0].a = 0;
s[1].a = 1;
// libstdc++/49559
void test01()
{
- bool test __attribute__((unused)) = true;
-
rvalstruct s1[6];
std::copy(A, A + N, s1);
Container con1(s1, s1 + N);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
int array1[]={0,2,4,1,3,5};
rvalstruct rv_array1[6];
std::copy(array1, array1 + 6, rv_array1);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
int array1[]={0,2,4,1,3,5};
rvalstruct rv_array1[6];
std::copy(array1, array1 + 6, rv_array1);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
for (int i = 0; i <= N; ++i)
{
VERIFY( std::is_heap(A, A + i) );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
for (int i = 0; i <= N; ++i)
{
VERIFY( A + i == std::is_heap_until(A, A + i) );
void
test1()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array);
VERIFY( std::is_partitioned(con.begin(), con.end(), predicate) );
}
void
test2()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 1);
VERIFY( std::is_partitioned(con.begin(), con.end(), predicate) );
}
void
test3()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 8);
VERIFY( !std::is_partitioned(con.begin(), con.end(), predicate) );
}
void
test4()
{
- bool test __attribute__((unused)) = true;
-
Container con(array + 2, array + 7);
VERIFY( std::is_partitioned(con.begin(), con.end(), predicate) );
}
void
do_test(int arr1[5], bool np = true)
{
- bool test __attribute__((unused)) = true;
-
do
VERIFY( std::is_permutation(arr1, arr1 + 5, arr0) == np );
while (std::next_permutation(arr1, arr1 + 5));
void
do_test(int arr1[5], Predicate pred, bool np = true)
{
- bool test __attribute__((unused)) = true;
-
do
VERIFY( std::is_permutation(arr1, arr1 + 5, arr0, pred) == np );
while (std::next_permutation(arr1, arr1 + 5));
void
do_test(int arr1[5], bool np = true, unsigned N = 5)
{
- bool test __attribute__((unused)) = true;
-
do
VERIFY( std::is_permutation(arr1, arr1 + 5, arr0, arr0 + N) == np );
while (std::next_permutation(arr1, arr1 + 5));
void
do_test(int arr1[5], Predicate pred, bool np = true, unsigned N = 5)
{
- bool test __attribute__((unused)) = true;
-
do
VERIFY( std::is_permutation(arr1, arr1 + 5, arr0, arr0 + N, pred) == np );
while (std::next_permutation(arr1, arr1 + 5));
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<bool> v1 = { true, false, true, false, true };
std::vector<bool> v2 = { false, true, false, true, true };
VERIFY( std::is_permutation(v1.begin(), v1.end(), v2.begin()) );
void test02()
{
- bool test __attribute__((unused)) = true;
-
std::vector<bool> v1 = { true, false, true, false, true };
std::vector<bool> v2 = { false, true, false, true, true };
VERIFY( std::is_permutation(v1.begin(), v1.end(), v2.begin(), v2.end()) );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
for (int i = 0; i <= N; ++i)
{
VERIFY( std::is_sorted(A, A + i) );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
for (int i = 0; i <= N; ++i)
{
VERIFY( A + i == std::is_sorted_until(A, A + i) );
void
test1()
{
- bool test __attribute__((unused)) = true;
-
std::vector<bool> v;
v.push_back(true);
v.push_back(false);
void
test2()
{
- bool test __attribute__((unused)) = true;
-
std::vector<int> v;
v.push_back(1);
v.push_back(2);
void
test3()
{
- bool test __attribute__((unused)) = true;
-
int_swap_count = 0;
X i, j;
std::iter_swap(&i, &j);
#include <algorithm>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
const int A[] = {1, 2, 3, 3, 3, 5, 8};
const int C[] = {8, 5, 3, 3, 3, 2, 1};
const int N = sizeof(A) / sizeof(int);
void
test01()
{
- bool test __attribute((unused)) = true;
-
// Test with range that is partitioned, but not sorted.
X seq[] = { 1, 3, 5, 7, 1, 6, 4, 2 };
test_container<X, forward_iterator_wrapper> c(seq);
void
test02()
{
- bool test __attribute((unused)) = true;
-
// Test that Debug Mode checks don't fire (libstdc++/71545)
Y seq[] = { -0.1, 1.2, 5.0, 5.2, 5.1, 5.9, 5.5, 6.0 };
void test01()
{
- bool test __attribute__((unused)) = true;
-
using __gnu_test::counter_type;
const std::size_t nb_values = 1000;
void test01()
{
- bool test __attribute__((unused)) = true;
-
const int x = std::max(1, 2);
const int y = std::max(4, 3);
VERIFY( x == 2 );
void test02()
{
- bool test __attribute__((unused)) = true;
-
VERIFY( 3 == std::max(A<int>::a, 2) );
VERIFY( 4 == std::max(A<int>::a, 4) );
void test01()
{
- bool test __attribute__((unused)) = true;
-
const int& x = std::max({1, 3, 2});
const int& y = std::max({4, 3, 2});
const int& z = std::max({3, 2, 4});
// libstdc++/37547
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<int> v{1,2,3,4,5};
auto p = std::max({v});
void test01()
{
- bool test __attribute__((unused)) = true;
-
const int& z = std::max({1, 2, 3, 4, 5, 6, 7});
const double& w = std::max({2.0, 1.0, 3.2, 4.5, 5.0, 6.0, 7.0});
const int& y = std::max({2, 3, 1, 4, 5, 6, 7});
void test01()
{
- bool test __attribute__((unused)) = true;
-
const int z = std::min(1, 2);
const int w = std::min(4, 3);
VERIFY( z == 1 );
void test02()
{
- bool test __attribute__((unused)) = true;
-
VERIFY( 2 == std::min(A<int>::a, 2) );
VERIFY( 3 == std::min(A<int>::a, 4) );
void test01()
{
- bool test __attribute__((unused)) = true;
-
const int& z = std::min({1, 3, 2});
const int& w = std::min({4, 3, 5});
const int& y = std::min({4, 3, 2});
// libstdc++/37547
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<int> v{1,2,3,4,5};
auto p = std::min({v});
void test01()
{
- bool test __attribute__((unused)) = true;
-
const int& z = std::min({1, 2, 3, 4, 5, 6, 7});
const double& w = std::min({2.0, 1.0, 3.2, 4.5, 5.0, 6.0, 7.0});
const int& y = std::min({2, 3, 1, 4, 5, 6, 7});
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::pair<const int, const int> z = std::minmax(1, 2);
std::pair<const int, const int> w = std::minmax(4, 3);
VERIFY( z.first == 1 );
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::pair<int, int> z = std::minmax({1, 2, 3});
std::pair<int, int> w = std::minmax({4, 3, 5, 4});
std::pair<int, int> y = std::minmax({4, 5, 3, 7, 3});
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::minmax({1, 2, 3, 4, 5, 6, 7, 8}, compare_counter());
// If N is the number of arguments in the minmax function call,
// libstdc++/37547
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<int> v{1,2,3,4,5};
auto p = std::minmax({v});
void
test1()
{
- bool test __attribute__((unused)) = true;
-
int array[] = {0};
Container con(array, array);
pair_type p1 = minmax_element(con.begin(), con.end());
void
test2()
{
- bool test __attribute__((unused)) = true;
-
int array[] = {0};
Container con(array, array + 1);
pair_type p1 = minmax_element(con.begin(), con.end());
void
test3()
{
- bool test __attribute__((unused)) = true;
-
int array[] = {0, 3};
Container con(array, array + 2);
pair_type p1 = minmax_element(con.begin(), con.end());
void
test4()
{
- bool test __attribute__((unused)) = true;
-
int array[] = {3, 0};
Container con(array, array + 2);
pair_type p1 = minmax_element(con.begin(), con.end());
void
test5()
{
- bool test __attribute__((unused)) = true;
-
int array[] = {3, 3};
Container con(array, array + 2);
pair_type p1 = minmax_element(con.begin(), con.end());
void
test6()
{
- bool test __attribute__((unused)) = true;
-
int array[] = {6, 3, 0, 2, 6, 4, 0};
Container con(array, array + 7);
pair_type p1 = minmax_element(con.begin(), con.end());
void
test7()
{
- bool test __attribute__((unused)) = true;
-
int array[] = {4, 4, 4, 6, 6, 6, 1, 1, 0, 0, 0, 2, 2};
Container con(array, array + 13);
pair_type p1 = minmax_element(con.begin(), con.end());
void
test8()
{
- bool test __attribute__((unused)) = true;
-
int array[] = {1, 7, 5, 5, 10, 1, 0, 0, 8, 4, 4, 0, 10, 10, 10, 1};
Container con(array, array + 16);
pair_type p1 = minmax_element(con.begin(), con.end());
void test01()
{
- bool test __attribute__((unused)) = true;
-
int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
const int size = sizeof(inarray) / sizeof(int);
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
deque<long> data(200);
void test01()
{
- bool test __attribute__((unused)) = true;
-
int inarray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
const int size = sizeof(inarray) / sizeof(int);
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
deque<long> data(200);
void
test1()
{
- bool test __attribute__((unused)) = true;
-
// Note: The standard is unclear on what should happen in this case.
// This seems the only really sensible behaviour, and what is done.
rvalstruct array[] = {0};
void
test2()
{
- bool test __attribute__((unused)) = true;
-
rvalstruct array[] = {0};
Container con(array, array + 1);
VERIFY( !next_permutation(con.begin(), con.end()) );
void
test3()
{
- bool test __attribute__((unused)) = true;
-
rvalstruct array[] = {0, 3};
Container con(array, array + 2);
VERIFY( next_permutation(con.begin(), con.end()) );
void
test4()
{
- bool test __attribute__((unused)) = true;
-
int array[6] = {0, 1, 2, 3, 4, 5};
for(int i = 0 ; i < 719; ++i)
{
void
test5()
{
- bool test __attribute__((unused)) = true;
-
int array[6] = {0, 1, 2, 3, 4, 5};
for(int i = 0 ; i < 719; ++i)
{
void
test1()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array);
VERIFY( std::none_of(con.begin(), con.end(), predicate) );
}
void
test2()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 1);
VERIFY( std::none_of(con.begin(), con.end(), predicate) );
}
void
test3()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 6);
VERIFY( !std::none_of(con.begin(), con.end(), predicate) );
}
void
test3()
{
- bool test __attribute__((unused)) = true;
int array[] = {6, 5, 4, 3, 2, 1, 0};
Container con(array, array + 7);
nth_element(con.begin(), con.it(3), con.end());
void
test4()
{
- bool test __attribute__((unused)) = true;
int array[] = {0, 6, 1, 5, 2, 4, 3};
Container con(array,array + 7);
nth_element(con.begin(), con.it(3), con.end());
void
do_test01(unsigned size)
{
- bool test __attribute__((unused)) = true;
-
std::vector<unsigned> v, s;
for (unsigned j = 0; j < size; ++j)
#include <algorithm>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
const int B[] = {10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7, 17, 8, 18, 9, 19};
const int C[] = {20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
void
test1()
{
- bool test __attribute__((unused)) = true;
-
int intarray[] = {6, 5, 4, 3, 2, 1, 0};
rvalstruct array[7];
std::copy(intarray, intarray + 7, array);
void
test2()
{
- bool test __attribute__((unused)) = true;
-
int intarray[] = {0, 6, 1, 5, 2, 4, 3};
rvalstruct array[7];
std::copy(intarray, intarray + 7, array);
void
test3()
{
- bool test __attribute__((unused)) = true;
-
int intarray[] = {0, 6, 1, 5, 2, 4, 3};
rvalstruct array[7];
std::copy(intarray, intarray + 7, array);
template<typename Container, typename RandomGen>
void operator()(Container con, RandomGen& rg)
{
- bool test __attribute__((unused)) = true;
-
const int size = con.end() - con.begin();
auto dist = std::uniform_int_distribution<>(0, size);
const int element = dist(rg);
#include <algorithm>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
const int B[] = {10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7, 17, 8, 18, 9, 19};
const int C[] = {20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
void
test01()
{
- bool test __attribute__((unused)) = true;
-
V s1[] = { 10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7,
17, 8, 18, 9, 19 };
const int N = sizeof(s1) / sizeof(V);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
V s1[] = { 10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7,
17, 8, 18, 9, 19 };
const int N = sizeof(s1) / sizeof(V);
void
test03()
{
- bool test __attribute__((unused)) = true;
-
V vvs[] = { 2, 0 };
std::partial_sort(vvs, vvs + 2, vvs + 2);
VERIFY( vvs[0].ok && vvs[0].val == 0 );
void
test1()
{
- bool test __attribute__((unused)) = true;
-
int intarray[] = {6, 5, 4, 3, 2, 1, 0};
rvalstruct array[7];
std::copy(intarray, intarray + 7, array);
void
test2()
{
- bool test __attribute__((unused)) = true;
-
int intarray[] = {0, 6, 1, 5, 2, 4, 3};
rvalstruct array[7];
std::copy(intarray, intarray + 7, array);
void
test3()
{
- bool test __attribute__((unused)) = true;
-
int intarray[] = {0, 6, 1, 5, 2, 4, 3};
rvalstruct array[7];
std::copy(intarray, intarray + 7, array);
template<typename Container, typename RandomGen>
void operator()(Container con, RandomGen& rg)
{
- bool test __attribute__((unused)) = true;
-
const int size = con.end() - con.begin();
auto dist = std::uniform_int_distribution<>(0, size);
const int element = dist(rg);
#include <algorithm>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
const int B[] = {10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7, 17, 8, 18, 9, 19};
const int C[] = {20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
template<typename Container, typename RandomGen>
void operator()(Container con, RandomGen& rg)
{
- bool test __attribute__((unused)) = true;
-
const int size = con.end() - con.begin();
auto dist = std::uniform_int_distribution<>(0, size);
const int element = dist(rg);
#include <functional>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int B[] = {2, 4, 6, 8, 10, 12, 14, 16, 1, 3, 5, 7, 9, 11, 13, 15, 17};
const int N = sizeof(A) / sizeof(int);
typedef test_container<rvalstruct, forward_iterator_wrapper> Fcontainer;
typedef test_container<rvalstruct, bidirectional_iterator_wrapper> Bcontainer;
-bool test __attribute__((unused)) = true;
-
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int B[] = {2, 4, 6, 8, 10, 12, 14, 16, 1, 3, 5, 7, 9, 11, 13, 15, 17};
const int N = sizeof(A) / sizeof(int);
void
test1()
{
- bool test __attribute__((unused)) = true;
-
int true_out[1] = { -1 };
int false_out[1] = { -1 };
Icontainer in_con(array, array);
void
test2()
{
- bool test __attribute__((unused)) = true;
-
int true_out[1] = { -1 };
int false_out[1] = { -1 };
Icontainer in_con(array, array + 2);
void
test3()
{
- bool test __attribute__((unused)) = true;
-
int true_out[3] = { -1, -1, -1 };
int false_out[3] = { -1, -1, -1 };
Icontainer in_con(array, array + 6);
void
test1()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array);
forward_iterator_wrapper<int> mid =
void
test2()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 1);
forward_iterator_wrapper<int> mid =
void
test3()
{
- bool test __attribute__((unused)) = true;
-
Container con(array, array + 6);
forward_iterator_wrapper<int> mid =
void test01()
{
- bool test __attribute__((unused)) = true;
-
using __gnu_test::counter_type;
const std::size_t nb_values = 1000;
void
test1()
{
- bool test __attribute__((unused)) = true;
-
// Note: The standard is unclear on what should happen in this case.
// This seems the only really sensible behaviour, and what is done.
rvalstruct array[] = {0};
void
test2()
{
- bool test __attribute__((unused)) = true;
-
rvalstruct array[] = {0};
Container con(array, array + 1);
VERIFY( !prev_permutation(con.begin(), con.end()) );
void
test3()
{
- bool test __attribute__((unused)) = true;
-
rvalstruct array[] = {3, 0};
Container con(array, array + 2);
VERIFY( prev_permutation(con.begin(), con.end()) );
void
test4()
{
- bool test __attribute__((unused)) = true;
-
int array[6] = {5, 4, 3, 2, 1, 0};
for(int i = 0 ; i < 719; ++i)
{
void
test5()
{
- bool test __attribute__((unused)) = true;
-
int array[6] = {5, 4, 3, 2, 1, 0};
for(int i = 0 ; i < 719; ++i)
{
void test01()
{
- bool test __attribute__((unused)) = true;
-
using __gnu_test::counter_type;
const std::size_t nb_values = 1000;
#include <algorithm>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
const int N = 200000;
int A[N], s1[N];
void
test01()
{
- bool test __attribute__((unused)) = true;
-
fill_ascending();
rvalstruct rv[N];
std::copy(A, A + N, rv);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
rvalstruct rv[10] = {1,2,3,4,5,6,7,8,9,10};
int result[10] = {10,1,2,3,4,5,6,7,8,9};
Container con(rv, rv + 10);
void
test1()
{
- bool test __attribute__((unused)) = true;
int array[]={1};
Fcontainer fcon(array, array);
Bcontainer bcon(array, array);
void
test2()
{
- bool test __attribute__((unused)) = true;
int array[] = {1};
Fcontainer fcon(array, array + 1);
Bcontainer bcon(array, array + 1);
void
test3()
{
- bool test __attribute__((unused)) = true;
int array[] = {1, 2, 3, 4, 5};
Fcontainer fcon(array, array + 5);
Bcontainer bcon(array, array + 5);
void
test4()
{
- bool test __attribute__((unused)) = true;
int array[] = {1, 2, 3, 4};
Fcontainer fcon(array, array + 4);
Bcontainer bcon(array, array + 4);
void
test5()
{
- bool test __attribute__((unused)) = true;
int array[] = {1, 2, 3, 4};
Rcontainer con(array, array + 4);
std::rotate(con.begin(), con.it(2), con.end());
void
test1()
{
- bool test __attribute__((unused)) = true;
int data[] = {1, 2, 3, 4, 5};
rvalstruct array[5];
std::copy(data, data + 5, array);
void
test_con(int length, int rotate_pos)
{
- bool test __attribute__((unused)) = true;
-
/* Make sure the VLA upper bound is positive. */
rvalstruct array[length + 1];
for(int i = 0; i < length; ++i)
#include <testsuite_hooks.h>
#include <list>
-bool test __attribute__((unused)) = true;
-
int A[] = {1, 2, 3, 4, 5, 6, 7};
int B[] = {2, 3, 4, 5, 6, 7, 1};
int C[] = {1, 2, 3, 4, 5, 6, 7};
/* need a test for a forward iterator -- can't think of one that makes sense */
-/* biderectional iterator */
+/* bidirectional iterator */
void
test02()
{
void
test1()
{
- bool test __attribute__((unused)) = true;
Container con1(array1, array1);
Container con2(array1, array1 + 1);
VERIFY(search(con1.begin(), con1.end(), con2.begin(), con2.end()).ptr == array1);
void
test2()
{
- bool test __attribute__((unused)) = true;
Container con1(array1, array1 + 3);
Container con2(array2, array2 + 3);
VERIFY(search(con1.begin(), con1.end(), con2.begin(), con2.end()).ptr
void
test3()
{
- bool test __attribute__((unused)) = true;
Container con1(array1 + 3, array1 + 10);
Container con2(array2, array2 + 3);
VERIFY(search(con1.begin(), con1.end(), con2.begin(), con2.end()).ptr
void
test4()
{
- bool test __attribute__((unused)) = true;
Container con1(array1, array1 + 10);
Container con2(array2, array2 + 1);
VERIFY(search(con1.begin(), con1.end(), con2.begin(), con2.end()).ptr
void
test5()
{
- bool test __attribute__((unused)) = true;
Container con1(array1 + 6, array1 + 10);
Container con2(array2, array2 + 1);
VERIFY(search(con1.begin(), con1.end(), con2.begin(), con2.end()).ptr
void
test6()
{
- bool test __attribute__((unused)) = true;
int array3[]={2, 2, 1, 2, 3, 5};
int array4[]={1, 2, 3, 4};
Container con1(array3, array3 + 3);
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<int> a{2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
int count = 0;
std::search_n(a.begin(), a.end(), 10, 1,
void test01()
{
- bool test __attribute__((unused)) = true;
-
for (unsigned size = 0; size < 50; ++size)
{
std::vector<int> vref(size);
#include <algorithm>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
const int B[] = {10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7, 17, 8, 18, 9, 19};
const int C[] = {20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
void
test01()
{
- bool test __attribute__((unused)) = true;
-
V s1[] = { 10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7,
17, 8, 18, 9, 19 };
const int N = sizeof(s1) / sizeof(V);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
V s1[] = { 10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7,
17, 8, 18, 9, 19 };
const int N = sizeof(s1) / sizeof(V);
void test03()
{
- bool test __attribute__((unused)) = true;
-
V vvs[] = { 2, 0 };
std::sort(vvs, vvs + 2);
VERIFY( vvs[0].ok && vvs[0].val == 0 );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
rvalstruct s1[N];
std::copy(A, A + N, s1);
Container con(s1, s1 + N);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
rvalstruct s1[N];
std::copy(A, A + N, s1);
Container con(s1, s1 + N);
template<typename Container, typename RandomGen>
void operator()(Container con, RandomGen&)
{
- bool test __attribute__((unused)) = true;
-
std::sort(con.begin(), con.end());
VERIFY( std::is_sorted(con.begin(), con.end()) );
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::vector<bool> b;
b.push_back(false);
b.push_back(true);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
V s1[] = { 10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7,
17, 8, 18, 9, 19 };
const int N = sizeof(s1) / sizeof(V);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
V s1[] = { 10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7,
17, 8, 18, 9, 19 };
const int N = sizeof(s1) / sizeof(V);
void
test03()
{
- bool test __attribute__((unused)) = true;
-
V vvs[] = { 2, 0 };
std::make_heap(vvs, vvs + 2);
std::sort_heap(vvs, vvs + 2);
void test01()
{
- bool test __attribute__((unused)) = true;
-
using __gnu_test::counter_type;
const std::size_t nb_values = 1000;
#include <testsuite_new_operators.h>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
const int B[] = {2, 4, 6, 8, 10, 12, 14, 16, 1, 3, 5, 7, 9, 11, 13, 15, 17};
const int N = sizeof(A) / sizeof(int);
void
test1(int throw_count)
{
- bool test __attribute__((unused)) = true;
-
copy_tracker vals[30];
for(int i = 0; i < 30; ++i)
vals[i] = A[i];
void
test01()
{
- bool test __attribute__((unused)) = true;
-
rvalstruct s1[N];
std::copy(A, A + N, s1);
Container con(s1, s1 + N);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
rvalstruct s1[N2];
std::copy(A2, A2 + N2, s1);
Container con(s1, s1 + N2);
#include <algorithm>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
const int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
const int B[] = {10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7, 17, 8, 18, 9, 19};
const int C[] = {20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
void
test1()
{
- bool test __attribute__((unused)) = true;
-
std::vector<bool> bools;
bools.push_back(true);
bools.push_back(false);
// libstdc++/49559
void test01()
{
- bool test __attribute__((unused)) = true;
-
rvalstruct s1[1];
std::copy(A, A + 1, s1);
Container con1(s1, s1 + 1);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
V s1[] = { 10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7,
17, 8, 18, 9, 19 };
const int N = sizeof(s1) / sizeof(V);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
V s1[] = { 10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7,
17, 8, 18, 9, 19 };
const int N = sizeof(s1) / sizeof(V);
void
test03()
{
- bool test __attribute__((unused)) = true;
-
V vvs[] = { 2, 0 };
std::stable_sort(vvs, vvs + 2);
VERIFY( vvs[0].ok && vvs[0].val == 0 );
void
test_mem1(int throw_count)
{
- bool test __attribute__((unused)) = true;
-
copy_tracker vals[30];
for(int i = 0; i < 30; ++i)
vals[i] = A[i];
void
test_mem2(int throw_count)
{
- bool test __attribute__((unused)) = true;
-
copy_tracker vals[30];
for(int i = 0; i < 30; ++i)
vals[i] = A[i];
void
test01()
{
- bool test __attribute__((unused)) = true;
-
rvalstruct s1[N];
std::copy(A, A + N, s1);
Container con(s1, s1 + N);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
rvalstruct s1[N];
std::copy(A, A + N, s1);
Container con(s1, s1 + N);
void
test1()
{
- bool test __attribute__((unused)) = true;
int array1[]={1, 2};
int array2[]={3, 4};
Container con1(array1, array1 + 2);
void
test2()
{
- bool test __attribute__((unused)) = true;
int array1[] = {1};
int array2[] = {1};
Container con1(array1, array1);
// libstdc++/11480
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::unique(a, a+10, compare);
VERIFY( compare_count == 9 );
}
void test01()
{
- bool test __attribute__((unused)) = true;
using namespace std;
list<int>::iterator pos;
void test02()
{
- bool test __attribute__((unused)) = true;
using namespace std;
list<int>::iterator pos;
void test03()
{
- bool test __attribute__((unused)) = true;
using namespace std;
list<int>::iterator pos;
void test01()
{
- bool test __attribute__((unused)) = true;
-
int intarray1[] = {1, 4, 4, 6, 1, 2, 2, 3, 1, 6, 6, 6, 5, 7, 5, 4, 4};
int intarray2[] = {1, 1, 1, 2, 2, 1, 1, 7, 6, 6, 7, 8, 8, 8, 8, 9, 9};
void test02()
{
- bool test __attribute__((unused)) = true;
-
int intarray1[] = {1, 4, 4, 6, 1, 2, 2, 3, 1, 6, 6, 6, 5, 7, 5, 4, 4};
int intarray2[] = {1, 1, 1, 2, 2, 1, 1, 7, 6, 6, 7, 8, 8, 8, 8, 9, 9};
void
test1()
{
- bool test __attribute__((unused)) = true;
Icontainer con1(array1, array1);
Ocontainer con2(array2, array2);
VERIFY( unique_copy(con1.begin(), con1.end(), con2.begin()).ptr == array2 );
void
test2()
{
- bool test __attribute__((unused)) = true;
Icontainer con1(array1, array1 + 6);
Ocontainer con2(array2, array2 + 2);
VERIFY( unique_copy(con1.begin(), con1.end(), con2.begin()).ptr
void
test3()
{
- bool test __attribute__((unused)) = true;
Icontainer con1(array1, array1);
Fcontainer con2(array2, array2);
VERIFY( unique_copy(con1.begin(), con1.end(), con2.begin()).ptr == array2 );
void
test4()
{
- bool test __attribute__((unused)) = true;
Icontainer con1(array1, array1 + 6);
Fcontainer con2(array2, array2 + 2);
VERIFY( unique_copy(con1.begin(), con1.end(), con2.begin()).ptr
void
test1()
{
- bool test __attribute__((unused)) = true;
Fcontainer con1(array1, array1);
Ocontainer con2(array2, array2);
VERIFY( unique_copy(con1.begin(), con1.end(), con2.begin()).ptr == array2 );
void
test2()
{
- bool test __attribute__((unused)) = true;
Fcontainer con1(array1, array1 + 6);
Ocontainer con2(array2, array2 + 2);
VERIFY( unique_copy(con1.begin(), con1.end(), con2.begin()).ptr
void
test3()
{
- bool test __attribute__((unused)) = true;
Fcontainer con1(array1, array1);
Ocontainer con2(array2, array2);
VERIFY( unique_copy(con1.begin(), con1.end(), con2.begin(),
void
test4()
{
- bool test __attribute__((unused)) = true;
Fcontainer con1(array1, array1 + 6);
Ocontainer con2(array2, array2 + 2);
VERIFY( unique_copy(con1.begin(), con1.end(), con2.begin(),
// libstdc++/26133
void test01()
{
- bool test __attribute__((unused)) = true;
std::ostringstream oss1, oss2;
no_assign in[4];
#include <algorithm>
#include <testsuite_hooks.h>
-bool test __attribute__((unused)) = true;
-
const int A[] = {1, 2, 3, 3, 3, 5, 8};
const int C[] = {8, 5, 3, 3, 3, 2, 1};
const int N = sizeof(A) / sizeof(int);
void
test01()
{
- bool test __attribute((unused)) = true;
-
// Test with range that is partitioned, but not sorted.
X seq[] = { 1, 3, 5, 7, 1, 6, 4, 2 };
test_container<X, forward_iterator_wrapper> c(seq);
void
test02()
{
- bool test __attribute((unused)) = true;
-
// Test that Debug Mode checks don't fire (libstdc++/71545)
Y seq[] = { -0.1, 1.2, 5.0, 5.2, 5.1, 5.9, 5.5, 6.0 };
void
test01()
{
- bool test __attribute__((unused)) = true;
-
regex("\\[", regex_constants::awk);
VERIFY(regex_match_debug("\"", regex("[\\\"]", regex_constants::awk)));
VERIFY(regex_match_debug("/", regex("/", regex_constants::awk)));
void
test01()
{
- bool test __attribute__((unused)) = true;
-
#define FAIL(s) \
try\
{\
void
test01()
{
- bool test __attribute__((unused)) = true;
+ std::regex re("\\(a\\).*", std::regex::basic);
+ std::string target("aaba");
+ std::smatch m;
- std::regex re("\\(a\\).*", std::regex::basic);
- std::string target("aaba");
- std::smatch m;
+ VERIFY( regex_match_debug(target, m, re) );
- VERIFY( regex_match_debug(target, m, re) );
-
- VERIFY( m.size() == re.mark_count()+1 );
- VERIFY( m.empty() == false );
- VERIFY( m.prefix().first == target.begin() );
- VERIFY( m.prefix().second == target.begin() );
- VERIFY( m.prefix().matched == false );
- VERIFY( m.suffix().first == target.end() );
- VERIFY( m.suffix().second == target.end() );
- VERIFY( m.suffix().matched == false );
- VERIFY( m[0].first == target.begin() );
- VERIFY( m[0].second == target.end() );
- VERIFY( m[0].matched == true );
- VERIFY( m[1].first == target.begin() );
- VERIFY( m[1].second == target.begin()+1 );
- VERIFY( m[1].matched == true );
+ VERIFY( m.size() == re.mark_count()+1 );
+ VERIFY( m.empty() == false );
+ VERIFY( m.prefix().first == target.begin() );
+ VERIFY( m.prefix().second == target.begin() );
+ VERIFY( m.prefix().matched == false );
+ VERIFY( m.suffix().first == target.end() );
+ VERIFY( m.suffix().second == target.end() );
+ VERIFY( m.suffix().matched == false );
+ VERIFY( m[0].first == target.begin() );
+ VERIFY( m[0].second == target.end() );
+ VERIFY( m[0].matched == true );
+ VERIFY( m[1].first == target.begin() );
+ VERIFY( m[1].second == target.begin()+1 );
+ VERIFY( m[1].matched == true );
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
- std::regex re("a\\{0,3\\}", std::regex::basic);
- std::string target("aa");
- std::smatch m;
-
- VERIFY( regex_match_debug(target, m, re) );
-
- VERIFY( m.size() == re.mark_count()+1 );
- VERIFY( m.empty() == false );
- VERIFY( m.prefix().first == target.begin() );
- VERIFY( m.prefix().second == target.begin() );
- VERIFY( m.prefix().matched == false );
- VERIFY( m.suffix().first == target.end() );
- VERIFY( m.suffix().second == target.end() );
- VERIFY( m.suffix().matched == false );
- VERIFY( m[0].first == target.begin() );
- VERIFY( m[0].second == target.end() );
- VERIFY( m[0].matched == true );
+ std::regex re("a\\{0,3\\}", std::regex::basic);
+ std::string target("aa");
+ std::smatch m;
+
+ VERIFY( regex_match_debug(target, m, re) );
+
+ VERIFY( m.size() == re.mark_count()+1 );
+ VERIFY( m.empty() == false );
+ VERIFY( m.prefix().first == target.begin() );
+ VERIFY( m.prefix().second == target.begin() );
+ VERIFY( m.prefix().matched == false );
+ VERIFY( m.suffix().first == target.end() );
+ VERIFY( m.suffix().second == target.end() );
+ VERIFY( m.suffix().matched == false );
+ VERIFY( m[0].first == target.begin() );
+ VERIFY( m[0].second == target.end() );
+ VERIFY( m[0].matched == true );
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
- std::regex re("a\\{1,3\\}", std::regex::basic);
- std::string target("aa");
- std::smatch m;
-
- VERIFY( regex_match_debug(target, m, re) );
-
- VERIFY( m.size() == re.mark_count()+1 );
- VERIFY( m.empty() == false );
- VERIFY( m.prefix().first == target.begin() );
- VERIFY( m.prefix().second == target.begin() );
- VERIFY( m.prefix().matched == false );
- VERIFY( m.suffix().first == target.end() );
- VERIFY( m.suffix().second == target.end() );
- VERIFY( m.suffix().matched == false );
- VERIFY( m[0].first == target.begin() );
- VERIFY( m[0].second == target.end() );
- VERIFY( m[0].matched == true );
+ std::regex re("a\\{1,3\\}", std::regex::basic);
+ std::string target("aa");
+ std::smatch m;
+
+ VERIFY( regex_match_debug(target, m, re) );
+
+ VERIFY( m.size() == re.mark_count()+1 );
+ VERIFY( m.empty() == false );
+ VERIFY( m.prefix().first == target.begin() );
+ VERIFY( m.prefix().second == target.begin() );
+ VERIFY( m.prefix().matched == false );
+ VERIFY( m.suffix().first == target.end() );
+ VERIFY( m.suffix().second == target.end() );
+ VERIFY( m.suffix().matched == false );
+ VERIFY( m[0].first == target.begin() );
+ VERIFY( m[0].second == target.end() );
+ VERIFY( m[0].matched == true );
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
- std::regex re("a\\{2,3\\}", std::regex::basic);
- std::string target("aa");
- std::smatch m;
-
- VERIFY( regex_match_debug(target, m, re) );
-
- VERIFY( m.size() == re.mark_count()+1 );
- VERIFY( m.empty() == false );
- VERIFY( m.prefix().first == target.begin() );
- VERIFY( m.prefix().second == target.begin() );
- VERIFY( m.prefix().matched == false );
- VERIFY( m.suffix().first == target.end() );
- VERIFY( m.suffix().second == target.end() );
- VERIFY( m.suffix().matched == false );
- VERIFY( m[0].first == target.begin() );
- VERIFY( m[0].second == target.end() );
- VERIFY( m[0].matched == true );
+ std::regex re("a\\{2,3\\}", std::regex::basic);
+ std::string target("aa");
+ std::smatch m;
+
+ VERIFY( regex_match_debug(target, m, re) );
+
+ VERIFY( m.size() == re.mark_count()+1 );
+ VERIFY( m.empty() == false );
+ VERIFY( m.prefix().first == target.begin() );
+ VERIFY( m.prefix().second == target.begin() );
+ VERIFY( m.prefix().matched == false );
+ VERIFY( m.suffix().first == target.end() );
+ VERIFY( m.suffix().second == target.end() );
+ VERIFY( m.suffix().matched == false );
+ VERIFY( m[0].first == target.begin() );
+ VERIFY( m[0].second == target.end() );
+ VERIFY( m[0].matched == true );
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
{
std::regex re("pre/[za-x]", std::regex::extended);
VERIFY( regex_match_debug("pre/z", re) );
void
test02()
{
- bool test __attribute__((unused)) = true;
-
try
{
std::regex re("[-----]", std::regex::extended);
void
test03()
{
- bool test __attribute__((unused)) = true;
-
try
{
std::regex re("[z-a]", std::regex::extended);
void
test04()
{
- bool test __attribute__((unused)) = true;
-
std::regex re("[-0-9a-z]");
VERIFY(regex_match_debug("-", re));
VERIFY(regex_match_debug("1", re));
void
test05()
{
- bool test __attribute__((unused)) = true;
-
regex lanana_namespace("^[a-z0-9]+$", regex::extended);
regex lsb_namespace("^_?([a-z0-9_.]+-, regex::extended)+[a-z0-9]+$");
regex debian_dpkg_conffile_cruft("dpkg-(old|dist|new|tmp, regex::extended)$");
void
test06()
{
- bool test __attribute__((unused)) = true;
-
regex lanana_namespace("^[a-z0-9]+$");
regex lsb_namespace("^_?([a-z0-9_.]+-)+[a-z0-9]+$");
regex debian_dpkg_conffile_cruft("dpkg-(old|dist|new|tmp)$");
void
test01()
{
- bool test __attribute__((unused)) = true;
-
{
std::regex re("zxcv/(one.*)abc", std::regex::ECMAScript);
std::string target("zxcv/onetwoabc");
void
test01()
{
- bool test __attribute__((unused)) = true;
-
{
std::regex re("/asdf(/.*)", std::regex::ECMAScript);
std::string target("/asdf/qwerty");
void
test01()
{
- bool test __attribute__((unused)) = true;
-
string domain_name = "valid.hostname.org";
/**
* based on http://stackoverflow.com/questions/1418423/the-hostname-regex
void
test01()
{
- bool test __attribute__((unused)) = true;
-
VERIFY(!std::regex_match("aa", std::regex("(.)(?!\\1).")));
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
#define TEST(res, s) \
{\
regex re(res);\
void
test01()
{
- bool test __attribute__((unused)) = true;
-
regex re("([A-Z])\\1*");
smatch m;
{
void
test01()
{
- bool test __attribute__((unused)) = true;
-
VERIFY(!regex_match_debug("x", regex("[]")));
VERIFY(regex_match_debug("x", regex("[^]")));
VERIFY(!regex_match_debug("]", regex("[]]")));
void
test01()
{
- bool test __attribute__((unused)) = true;
-
{
regex re("()*\\1");
cmatch m;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
VERIFY(regex_match_debug(":", regex("\\x3a")));
try
{
void
test01()
{
- bool test __attribute__((unused)) = true;
-
VERIFY(regex_match_debug("01", regex("\\d*")));
VERIFY(regex_match_debug("asdfjkl", regex("\\D*")));
VERIFY(!regex_match_debug("asdfjkl0", regex("\\D*")));
void
test01()
{
- bool test __attribute__((unused)) = true;
-
regex re("(a*?)*?");
cmatch m;
VERIFY(regex_match("a", m, re));
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::setlocale(LC_ALL, "");
std::wstring current_token(L"II.");
void
test01()
{
- bool test __attribute__((unused)) = true;
-
#define TESTL(res, s) \
{\
wregex re(res);\
void
test01()
{
- bool test __attribute__((unused)) = true;
-
const wchar_t * s = L"\u4f60\u597d\u002c\u0020\u4e16\u002b\u754c";
wregex re(s);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
VERIFY(regex_match_debug(L"\u1234", wregex(L"\\u1234")));
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::regex re("(a+)", std::regex::extended);
const char target[] = "aa";
std::cmatch m;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::regex re("(aa?)", std::regex::extended);
char target[] = "a";
std::cmatch m;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
regex re;
re.assign("(ab){3}", std::regex::extended);
VERIFY(!regex_match_debug("abab", re));
void
test01()
{
- bool test __attribute__((unused)) = true;
-
- std::regex re(".*", std::regex::extended);
- std::string target("aaba");
- std::smatch m;
-
- VERIFY( regex_match_debug(target, m, re) );
-
- VERIFY( m.size() == re.mark_count()+1 );
- VERIFY( m.empty() == false );
- VERIFY( m.prefix().first == target.begin() );
- VERIFY( m.prefix().second == target.begin() );
- VERIFY( m.prefix().matched == false );
- VERIFY( m.suffix().first == target.end() );
- VERIFY( m.suffix().second == target.end() );
- VERIFY( m.suffix().matched == false );
- VERIFY( m[0].first == target.begin() );
- VERIFY( m[0].second == target.end() );
- VERIFY( m[0].matched == true );
+ std::regex re(".*", std::regex::extended);
+ std::string target("aaba");
+ std::smatch m;
+
+ VERIFY( regex_match_debug(target, m, re) );
+
+ VERIFY( m.size() == re.mark_count()+1 );
+ VERIFY( m.empty() == false );
+ VERIFY( m.prefix().first == target.begin() );
+ VERIFY( m.prefix().second == target.begin() );
+ VERIFY( m.prefix().matched == false );
+ VERIFY( m.suffix().first == target.end() );
+ VERIFY( m.suffix().second == target.end() );
+ VERIFY( m.suffix().matched == false );
+ VERIFY( m[0].first == target.begin() );
+ VERIFY( m[0].second == target.end() );
+ VERIFY( m[0].matched == true );
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::regex re("a{0,3}", std::regex::extended);
std::string target("aa");
std::smatch m;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
- std::regex re("a{1,3}", std::regex::extended);
- std::string target("aa");
- std::smatch m;
-
- VERIFY( regex_match_debug(target, m, re) );
-
- VERIFY( m.size() == re.mark_count()+1 );
- VERIFY( m.empty() == false );
- VERIFY( m.prefix().first == target.begin() );
- VERIFY( m.prefix().second == target.begin() );
- VERIFY( m.prefix().matched == false );
- VERIFY( m.suffix().first == target.end() );
- VERIFY( m.suffix().second == target.end() );
- VERIFY( m.suffix().matched == false );
- VERIFY( m[0].first == target.begin() );
- VERIFY( m[0].second == target.end() );
- VERIFY( m[0].matched == true );
+ std::regex re("a{1,3}", std::regex::extended);
+ std::string target("aa");
+ std::smatch m;
+
+ VERIFY( regex_match_debug(target, m, re) );
+
+ VERIFY( m.size() == re.mark_count()+1 );
+ VERIFY( m.empty() == false );
+ VERIFY( m.prefix().first == target.begin() );
+ VERIFY( m.prefix().second == target.begin() );
+ VERIFY( m.prefix().matched == false );
+ VERIFY( m.suffix().first == target.end() );
+ VERIFY( m.suffix().second == target.end() );
+ VERIFY( m.suffix().matched == false );
+ VERIFY( m[0].first == target.begin() );
+ VERIFY( m[0].second == target.end() );
+ VERIFY( m[0].matched == true );
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
- std::regex re("a{2,3}", std::regex::extended);
- std::string target("aa");
- std::smatch m;
-
- VERIFY( regex_match_debug(target, m, re) );
-
- VERIFY( m.size() == re.mark_count()+1 );
- VERIFY( m.empty() == false );
- VERIFY( m.prefix().first == target.begin() );
- VERIFY( m.prefix().second == target.begin() );
- VERIFY( m.prefix().matched == false );
- VERIFY( m.suffix().first == target.end() );
- VERIFY( m.suffix().second == target.end() );
- VERIFY( m.suffix().matched == false );
- VERIFY( m[0].first == target.begin() );
- VERIFY( m[0].second == target.end() );
- VERIFY( m[0].matched == true );
+ std::regex re("a{2,3}", std::regex::extended);
+ std::string target("aa");
+ std::smatch m;
+
+ VERIFY( regex_match_debug(target, m, re) );
+
+ VERIFY( m.size() == re.mark_count()+1 );
+ VERIFY( m.empty() == false );
+ VERIFY( m.prefix().first == target.begin() );
+ VERIFY( m.prefix().second == target.begin() );
+ VERIFY( m.prefix().matched == false );
+ VERIFY( m.suffix().first == target.end() );
+ VERIFY( m.suffix().second == target.end() );
+ VERIFY( m.suffix().matched == false );
+ VERIFY( m[0].first == target.begin() );
+ VERIFY( m[0].second == target.end() );
+ VERIFY( m[0].matched == true );
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::wstring str2 = L"ÃœBER";
std::wregex re2;
re2.imbue(std::locale("de_DE.UTF-8"));
void
test01()
{
- bool test __attribute__((unused)) = true;
-
VERIFY(regex_replace(string("This is a string"), regex("\\b\\w*\\b"), "|$0|")
== "|This||| |is||| |a||| |string|||");
VERIFY(regex_replace(string("This is a string"), regex("\\b\\w*\\b"), "|$0|",
void
test01()
{
- bool test __attribute__((unused)) = true;
-
char buff[4096] = {0};
regex re("asdf");
cmatch m;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
string s = R"("test\")";
VERIFY(!regex_search_debug(s, regex(R"("([^"]|\\")*[^\\]")")));
VERIFY(!regex_match_debug(s, regex(R"("([^"]|\\")*[^\\]")")));
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::regex re("as\\(df\\)", std::regex::basic);
std::string target("xxasdfyy");
std::smatch m;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
VERIFY(!regex_search_debug("2123456", regex("^1234")));
VERIFY(regex_search_debug("123456", regex("^1234")));
VERIFY(regex_search_debug("123456", regex("(5|^)1234")));
void
test01()
{
- bool test __attribute__((unused)) = true;
-
cmatch m;
regex re("((as)(df))", regex_constants::ECMAScript | regex_constants::nosubs);
VERIFY(regex_search_debug("asdf", m, re));
void
test01()
{
- bool test __attribute__((unused)) = true;
-
cmatch m;
#define TEST(i, s) VERIFY(m[i].matched && string(m[i].first, m[i].second) == s)
VERIFY(regex_search_debug("aaaa", m, regex("a*")));
void
test01()
{
- bool test __attribute__((unused)) = true;
-
VERIFY(regex_search_debug("", std::regex("")));
}
// basic_regex::operator=() resets flags. libstdc++/64680
void test02()
{
- bool test __attribute__((unused)) = true;
-
std::regex re("[[:alnum:]]", std::regex_constants::basic);
re = "\\w+";
}
// [28.8.3] class template basic_regex assign()
#include <regex>
-#include <testsuite_hooks.h>
// Tests basic_regex assign operator from a C-style null-terminated-string.
void test01()
// Tests assign operator of the basic_regex class for moveable rvalues.
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::regex src_re("aaba");
const unsigned mark_count = src_re.mark_count();
const std::regex::flag_type flags = src_re.flags();
// [28.8.3] class template basic_regex assign()
#include <regex>
-#include <testsuite_hooks.h>
// Tests assign operation from a Pascal-style counted-string.
void test01()
// [28.8.3] class template basic_regex assign()
#include <regex>
-#include <testsuite_hooks.h>
// Tests range assign of the basic_regex class.
void test01()
// Tests C++ string assignment of the basic_regex class.
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::basic_regex<char> test_type;
std::string s("a*b");
// libstdc++/64584
void test02()
{
- bool test __attribute__((unused)) = true;
std::regex re("", std::regex_constants::extended);
auto flags = re.flags();
try
#include <string>
#include <regex>
-#include <testsuite_hooks.h>
// Tests basic_regex assignment operator from a C++ string;
void test01()
// [28.8.3] class template basic_regex assign()
#include <regex>
-#include <testsuite_hooks.h>
// Tests assign operation from a C-style null-terminated-string.
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::basic_regex<wchar_t> test_type;
const wchar_t* cs = L"aab";
// [28.8.3] class template basic_regex assign()
#include <regex>
-#include <testsuite_hooks.h>
// Tests basic_regex assign operator from a C-style null-terminated-string.
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::basic_regex<wchar_t> test_type;
const wchar_t* cs = L"aab";
// [28.8.3] class template basic_regex assign()
#include <regex>
-#include <testsuite_hooks.h>
// Tests assign operation from a Pascal-style counted-string.
void test01()
// [28.8.3] class template basic_regex assign()
#include <regex>
-#include <testsuite_hooks.h>
// Tests range assign of the basic_regex class.
void test01()
{
typedef std::basic_regex<wchar_t> test_type;
- bool test __attribute__((unused)) = true;
wchar_t s[] = L"a+b|c";
test_type re;
#include <string>
#include <regex>
-#include <testsuite_hooks.h>
// Tests C++ string assignment of the basic_regex class.
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::basic_regex<wchar_t> test_type;
std::wstring s(L"a*b");
#include <string>
#include <regex>
-#include <testsuite_hooks.h>
// Tests basic_regex assignment operator from a C++ string;
void test01()
{
- bool test __attribute__((unused)) = true;
- typedef std::basic_regex<wchar_t> test_type;
+ typedef std::basic_regex<wchar_t> test_type;
std::wstring s(L"a*b");
test_type re;
// Tests Pascal-style counted-string constructor of the basic_regex class.
void test01()
{
- bool test __attribute__((unused)) = true;
-
const wchar_t* cs = L"aab";
std::wregex re(cs, 3, std::wregex::basic);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
- try
- {
- std::regex re("a\\{1,2,3\\}", std::regex::basic);
- }
- catch (std::regex_error& ex)
- {
- VERIFY( ex.code() == std::regex_constants::error_brace );
- }
+ try
+ {
+ std::regex re("a\\{1,2,3\\}", std::regex::basic);
+ }
+ catch (std::regex_error& ex)
+ {
+ VERIFY( ex.code() == std::regex_constants::error_brace );
+ }
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::regex re("(wee|week)(knights|night)", std::regex::extended);
VERIFY( re.flags() == std::regex::extended );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
- try
- {
- std::regex re("a{1,2,3}", std::regex::extended);
- }
- catch (std::regex_error& ex)
- {
- VERIFY( ex.code() == std::regex_constants::error_brace );
- }
+ try
+ {
+ std::regex re("a{1,2,3}", std::regex::extended);
+ }
+ catch (std::regex_error& ex)
+ {
+ VERIFY( ex.code() == std::regex_constants::error_brace );
+ }
}
// Tests move constructor of the basic_regex class.
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::basic_regex<char> test_type;
test_type src_re("aaba");
const unsigned mark_count = src_re.mark_count();
- const test_type::flag_type flags = src_re.flags();
+ const test_type::flag_type flags = src_re.flags();
test_type target_re = std::move(src_re);
- VERIFY( target_re.flags() == flags );
- VERIFY( target_re.mark_count() == mark_count );
+ VERIFY( target_re.flags() == flags );
+ VERIFY( target_re.mark_count() == mark_count );
}
int
// Tests C++ string constructor of the basic_regex class.
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::basic_regex<wchar_t> test_type;
std::wstring s(L"a*b");
// [28.8.2] class template basic_regex constructor
#include <regex>
-#include <testsuite_hooks.h>
// Tests C-style null-terminated-string constructor of the basic_regex class.
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::basic_regex<wchar_t> test_type;
const wchar_t* cs = L"aab";
// [28.8.2] class template basic_regex constructor
#include <regex>
-#include <testsuite_hooks.h>
// Tests default constructor of the basic_regex class.
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::basic_regex<wchar_t> test_type;
// default constructor
// [28.8.2] class template basic_regex constructor
#include <regex>
-#include <testsuite_hooks.h>
// Tests range constructor of the basic_regex class.
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::basic_regex<wchar_t> test_type;
wchar_t s[] = L"a+b|c";
// libstdc++/64585
void test01()
{
- bool test __attribute__((unused)) = true;
-
static const char s[] = "a";
std::regex re("a");
VERIFY(std::regex_search(s, re));
// 28.5.3
#include <regex>
-#include <testsuite_hooks.h>
void
test01()
{
- bool test __attribute__((unused)) = true;
+ std::regex_constants::error_type err __attribute__((unused));
- std::regex_constants::error_type err __attribute__((unused));
-
- err = std::regex_constants::error_collate;
- err = std::regex_constants::error_ctype;
- err = std::regex_constants::error_escape;
- err = std::regex_constants::error_backref;
- err = std::regex_constants::error_brack;
- err = std::regex_constants::error_paren;
- err = std::regex_constants::error_brace;
- err = std::regex_constants::error_badbrace;
- err = std::regex_constants::error_range;
- err = std::regex_constants::error_space;
- err = std::regex_constants::error_badrepeat;
- err = std::regex_constants::error_complexity;
- err = std::regex_constants::error_stack;
+ err = std::regex_constants::error_collate;
+ err = std::regex_constants::error_ctype;
+ err = std::regex_constants::error_escape;
+ err = std::regex_constants::error_backref;
+ err = std::regex_constants::error_brack;
+ err = std::regex_constants::error_paren;
+ err = std::regex_constants::error_brace;
+ err = std::regex_constants::error_badbrace;
+ err = std::regex_constants::error_range;
+ err = std::regex_constants::error_space;
+ err = std::regex_constants::error_badrepeat;
+ err = std::regex_constants::error_complexity;
+ err = std::regex_constants::error_stack;
}
int main()
// 28.5.1
#include <regex>
-#include <testsuite_hooks.h>
void
test01()
{
- bool test __attribute__((unused)) = true;
+ std::regex_constants::match_flag_type flag = std::regex_constants::match_default;
- std::regex_constants::match_flag_type flag = std::regex_constants::match_default;
-
- flag |= std::regex_constants::match_not_bol;
- flag |= std::regex_constants::match_not_eol;
- flag |= std::regex_constants::match_not_bow;
- flag |= std::regex_constants::match_not_eow;
- flag |= std::regex_constants::match_any;
- flag |= std::regex_constants::match_not_null;
- flag |= std::regex_constants::match_continuous;
- flag |= std::regex_constants::match_prev_avail;
- flag |= std::regex_constants::format_default;
- flag |= std::regex_constants::format_sed;
- flag |= std::regex_constants::format_no_copy;
- flag |= std::regex_constants::format_first_only;
+ flag |= std::regex_constants::match_not_bol;
+ flag |= std::regex_constants::match_not_eol;
+ flag |= std::regex_constants::match_not_bow;
+ flag |= std::regex_constants::match_not_eow;
+ flag |= std::regex_constants::match_any;
+ flag |= std::regex_constants::match_not_null;
+ flag |= std::regex_constants::match_continuous;
+ flag |= std::regex_constants::match_prev_avail;
+ flag |= std::regex_constants::format_default;
+ flag |= std::regex_constants::format_sed;
+ flag |= std::regex_constants::format_no_copy;
+ flag |= std::regex_constants::format_first_only;
}
int main()
using namespace std;
-int test01(void)
+void test01(void)
{
- bool test = true;
-
regex r = { 'a', 'b', 'c' };
cmatch res;
VERIFY(regex_match ("abc", res, r));
r = { 'd', 'e', 'f' };
VERIFY(regex_match ("def", res, r));
VERIFY(!regex_match ("abc", res, r));
-
- return test;
}
int main()
void
test01()
{
- bool test __attribute__((unused)) = true;
-
const std::regex e("z*");
const std::string s("ab");
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::basic_regex<char> re("asdf");
const char s[] = "ffasdf88asdf99asdf00asdf77";
int cnt = 0;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::regex re("asdf");
std::string s("asdfasdfasdf");
int i = 0;
void
test02()
{
- bool test __attribute__((unused)) = true;
-
std::regex re("\\w+");
std::string s("-a-b-c-");
void
test03()
{
- bool test __attribute__((unused)) = true;
-
std::smatch m;
std::string s = "abcde";
std::regex_search(s, m, std::regex("bcd"));
void
test01()
{
- bool test __attribute__((unused)) = true;
std::regex_iterator<char*> it;
std::cregex_iterator cit;
std::sregex_iterator sit;
void
test01()
{
- bool test __attribute__((unused)) = true;
std::regex_iterator<wchar_t*> it;
std::wcregex_iterator cit;
std::wsregex_iterator sit;
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef std::regex_iterator<char*> it;
typedef it::regex_type regex_type;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::basic_regex<wchar_t> re(L"asdf");
const wchar_t s[] = L"ffasdf88asdf99asdf00asdf77";
int cnt = 0;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::setlocale(LC_ALL, "en_US.UTF-8");
std::wstring str2 = L"ä\u2009Ä\u2009ö\u2009Ö\u2009ü\u2009Ü";
void
test01()
{
- bool test __attribute__((unused)) = true;
-
const std::string s(" 111 222 ");
const std::regex re("\\w+");
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::basic_regex<char> re(" ");
const char s[] = "Quick brown fox.";
int cnt = 0;
void
test01()
{
- bool test __attribute__((unused)) = true;
std::regex_token_iterator<char*> it;
std::cregex_token_iterator cit;
std::sregex_token_iterator sit;
void
test01()
{
- bool test __attribute__((unused)) = true;
std::regex_token_iterator<wchar_t*> it;
std::wcregex_token_iterator cit;
std::wsregex_token_iterator sit;
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef std::regex_token_iterator<char*> it;
typedef it::regex_type regex_type;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::basic_regex<wchar_t> re(L" ");
const wchar_t s[] = L"Quick brown fox.";
int cnt = 0;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::setlocale(LC_ALL, "en_US.UTF-8");
std::wstring str2 = L"öäü";
// Tests default constructor of the match_result class.
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::cmatch cm;
VERIFY( cm.size() == 0 );
VERIFY( !cm.ready() );
void test02()
{
- bool test __attribute__((unused)) = true;
-
std::smatch sm;
VERIFY( sm.size() == 0 );
VERIFY( !sm.ready() );
// Tests default constructor of the match_result class.
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::wcmatch cm;
VERIFY( cm.size() == 0 );
VERIFY( !cm.ready() );
void test02()
{
- bool test __attribute__((unused)) = true;
-
std::wsmatch sm;
VERIFY( sm.size() == 0 );
VERIFY( !sm.ready() );
void
test01()
{
- bool test __attribute__((unused)) = true;
-
cmatch m;
VERIFY(regex_search_debug("*** this is a string !!!", m,
regex("(\\w+) (\\w+) (\\w+) (\\w+)")));
void
test02()
{
- bool test __attribute__((unused)) = true;
-
regex re("asdf");
cmatch m;
regex_match("asdf", m, re);
void
test01()
{
- bool test __attribute__((unused)) = true;
-
const char s[] = "abc";
const std::regex re("(\\d+)|(\\w+)");
void
test02()
{
- bool test __attribute__((unused)) = true;
-
std::match_results<const char*> m;
const char s[] = "a";
VERIFY(regex_search_debug(s, m, std::regex("a")));
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::cmatch m;
std::regex_match("a", m, std::regex("a"));
std::cmatch mm1 = m, mm2;
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef std::match_results<char*> mr;
typedef mr::value_type value_type;
void
test01()
{
- bool test __attribute__((unused)) = true;
+ std::regex_error error(std::regex_constants::error_collate);
+ VERIFY(error.code() == std::regex_constants::error_collate);
- std::regex_error error(std::regex_constants::error_collate);
- VERIFY(error.code() == std::regex_constants::error_collate);
-
- try
- {
- throw error;
- }
- catch (std::runtime_error& ex)
- {
- }
+ try
+ {
+ throw error;
+ }
+ catch (std::runtime_error& ex)
+ {
+ }
}
int main()
void
test01()
{
- bool test __attribute__((unused)) = true;
-
regex re("((.)", regex_constants::basic);
}
void
test02()
{
- bool test __attribute__((unused)) = true;
-
std::string re_str
{
"/abcd" "\n"
void
test03()
{
- bool test __attribute__((unused)) = true;
-
VERIFY(regex_match_debug("a.", regex(R"(a\b.)"), regex_constants::match_not_eow));
VERIFY(regex_match_debug(".a", regex(R"(.\ba)"), regex_constants::match_not_bow));
VERIFY(regex_search_debug("a", regex(R"(^\b)")));
void
test04()
{
- bool test __attribute__((unused)) = true;
-
static const char* kNumericAnchor ="(\\$|usd)(usd|\\$|to|and|up to|[0-9,\\.\\-\\sk])+";
const std::regex re(kNumericAnchor);
(void)re;
void
test05()
{
- bool test __attribute__((unused)) = true;
-
VERIFY(regex_match_debug("!", std::regex("[![:alnum:]]")));
VERIFY(regex_match_debug("-", std::regex("[a-]", regex_constants::basic)));
VERIFY(regex_match_debug("-", std::regex("[a-]")));
int main()
{
- bool test __attribute__((unused)) = true;
-
typedef char value_type;
typedef std::basic_string<value_type> string_type;
typedef std::sub_match<value_type*> sub_match_type;
value_type test_data[] = "cabbage";
- sub_match_type sm;
- sm.first = std::begin(test_data);
- sm.second = std::end(test_data) - 1;
- sm.matched = true;
+ sub_match_type sm;
+ sm.first = std::begin(test_data);
+ sm.second = std::end(test_data) - 1;
+ sm.matched = true;
- string_type sm_string = sm;
+ string_type sm_string = sm;
- VERIFY( sm_string == string_type(test_data) );
+ VERIFY( sm_string == string_type(test_data) );
}
int main()
{
- bool test __attribute__((unused)) = true;
-
typedef wchar_t value_type;
typedef std::basic_string<value_type> string_type;
typedef std::sub_match<value_type*> sub_match_type;
value_type test_data[] = L"cabbage";
- sub_match_type sm;
- sm.first = std::begin(test_data);
- sm.second = std::end(test_data) - 1;
- sm.matched = true;
+ sub_match_type sm;
+ sm.first = std::begin(test_data);
+ sm.second = std::end(test_data) - 1;
+ sm.matched = true;
- string_type sm_string = sm;
+ string_type sm_string = sm;
- VERIFY( sm_string == string_type(test_data) );
+ VERIFY( sm_string == string_type(test_data) );
}
int main()
{
- bool test __attribute__((unused)) = true;
-
typedef char value_type;
typedef std::basic_string<value_type> string_type;
typedef std::sub_match<value_type*> sub_match_type;
value_type test_data2[] = {'a', 'b', 'c'};
const string_type test_data3("abc");
- sub_match_type sm;
- sm.first = std::begin(test_data2);
- sm.second = std::end(test_data2);
- sm.matched = true;
-
- VERIFY( test_data1 != sm );
- VERIFY( sm != test_data1 );
- VERIFY( sm < test_data1 );
- VERIFY( !(test_data1 < sm) );
- VERIFY( test_data1 > sm );
-
- VERIFY( test_data3 == sm );
- VERIFY( sm == test_data3 );
- VERIFY( !(sm < test_data3) );
- VERIFY( !(test_data3 < sm) );
+ sub_match_type sm;
+ sm.first = std::begin(test_data2);
+ sm.second = std::end(test_data2);
+ sm.matched = true;
+
+ VERIFY( test_data1 != sm );
+ VERIFY( sm != test_data1 );
+ VERIFY( sm < test_data1 );
+ VERIFY( !(test_data1 < sm) );
+ VERIFY( test_data1 > sm );
+
+ VERIFY( test_data3 == sm );
+ VERIFY( sm == test_data3 );
+ VERIFY( !(sm < test_data3) );
+ VERIFY( !(test_data3 < sm) );
}
void
test01()
{
- bool test __attribute__((unused)) = true;
-
typedef std::sub_match<const char*> sm_t;
const char* test_data = "cabbage";
sm_t::difference_type test_len = 3;
- sm_t sm1;
- sm1.first = test_data + 0;
- sm1.second = test_data + test_len;
- sm1.matched = true;
+ sm_t sm1;
+ sm1.first = test_data + 0;
+ sm1.second = test_data + test_len;
+ sm1.matched = true;
- sm_t sm2;
- sm2.matched = false;
+ sm_t sm2;
+ sm2.matched = false;
- VERIFY( sm1.length() == test_len );
- VERIFY( sm2.length() == 0 );
+ VERIFY( sm1.length() == test_len );
+ VERIFY( sm2.length() == 0 );
}
int main()
// [28.7] class template regex_traits
#include <regex>
-#include <testsuite_hooks.h>
// Tests default constructor of the regex_traits class. There is only the
// default constructor.
void test01()
{
- bool test __attribute__((unused)) = true;
typedef std::regex_traits<char> test_type;
// required default constructor
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef char CharT;
typedef std::regex_traits<CharT> traits;
{
typedef char CharT;
typedef std::regex_traits<CharT> traits;
- bool test __attribute__((unused)) = true;
const CharT* p = "";
- std::size_t i = traits::length(p);
+ std::size_t i = traits::length(p);
- VERIFY( i == 0 );
+ VERIFY( i == 0 );
}
int main()
{
- test01();
- return 0;
+ test01();
+ return 0;
}
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef char CharT;
typedef std::regex_traits<CharT> traits;
- char n1[] = "lower";
- char n2[] = "alpha";
- traits t;
+ char n1[] = "lower";
+ char n2[] = "alpha";
+ traits t;
traits::char_class_type c1 = t.lookup_classname(n1, n1+sizeof(n1)-1);
VERIFY( c1 != 0 );
traits::char_class_type c2 = t.lookup_classname(n1, n1+sizeof(n1)-1, true);
traits::char_class_type c3 = t.lookup_classname(n2, n2+sizeof(n2)-1, true);
- VERIFY( c2 == c3 );
+ VERIFY( c2 == c3 );
}
// Test forward iterator
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef char CharT;
typedef std::regex_traits<CharT> traits;
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef char CharT;
typedef std::regex_traits<CharT> traits;
- traits t;
- traits::string_type G = "abc";
- traits::string_type H = "def";
+ traits t;
+ traits::string_type G = "abc";
+ traits::string_type H = "def";
VERIFY( G < H );
VERIFY( t.transform(G.begin(), G.end()) < t.transform(H.begin(), H.end()) );
int main()
{
- test01();
- return 0;
+ test01();
+ return 0;
}
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef char CharT;
typedef std::regex_traits<CharT> traits;
- traits t;
- traits::string_type G = "abc";
- traits::string_type H = "def";
- traits::string_type J = "ABC";
+ traits t;
+ traits::string_type G = "abc";
+ traits::string_type H = "def";
+ traits::string_type J = "ABC";
VERIFY( G < H );
VERIFY( t.transform_primary(G.begin(), G.end())
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef char CharT;
std::regex_traits<CharT> t;
// Verifies the workings of the regex_traits translate_nocase function.
void test01()
{
- bool test __attribute__((unused)) = true;
typedef char CharT;
std::regex_traits<CharT> t;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
basic_regex<char, MyRegexTraits<char>> re(".");
VERIFY(!regex_match("\n", re));
VERIFY(!regex_match("\r", re));
// Tests the value() function of the regex_traits<char> class.
void test01()
{
- bool test __attribute__((unused)) = true;
std::regex_traits<char> t;
VERIFY( t.value('7', 8) == 7 );
VERIFY( t.value('7', 10) == 7 );
// [28.7] class template regex_traits
#include <regex>
-#include <testsuite_hooks.h>
// Tests default constructor of the regex_traits class. There is only the
// default constructor.
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef wchar_t CharT;
typedef std::regex_traits<CharT> traits;
{
typedef wchar_t CharT;
typedef std::regex_traits<CharT> traits;
- bool test __attribute__((unused)) = true;
const CharT* p = L"";
- std::size_t i = traits::length(p);
+ std::size_t i = traits::length(p);
- VERIFY( i == 0 );
+ VERIFY( i == 0 );
}
int main()
{
- test01();
- return 0;
+ test01();
+ return 0;
}
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef wchar_t CharT;
typedef std::regex_traits<CharT> traits;
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef wchar_t CharT;
typedef std::regex_traits<CharT> traits;
int main()
{
- test01();
- return 0;
+ test01();
+ return 0;
}
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef wchar_t CharT;
typedef std::regex_traits<CharT> traits;
- traits t;
- traits::string_type G = L"abc";
- traits::string_type H = L"def";
+ traits t;
+ traits::string_type G = L"abc";
+ traits::string_type H = L"def";
VERIFY( G < H );
VERIFY( t.transform(G.begin(), G.end()) < t.transform(H.begin(), H.end()) );
int main()
{
- test01();
- return 0;
+ test01();
+ return 0;
}
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef wchar_t CharT;
typedef std::regex_traits<CharT> traits;
- traits t;
- traits::string_type G = L"abc";
- traits::string_type H = L"def";
- traits::string_type J = L"ABC";
+ traits t;
+ traits::string_type G = L"abc";
+ traits::string_type H = L"def";
+ traits::string_type J = L"ABC";
VERIFY( G < H );
VERIFY( t.transform_primary(G.begin(), G.end())
int main()
{
- test01();
- return 0;
+ test01();
+ return 0;
}
void
test01()
{
- bool test __attribute__((unused)) = true;
typedef wchar_t CharT;
std::regex_traits<CharT> t;
int main()
{
- test01();
- return 0;
+ test01();
+ return 0;
}
// Verifies the workings of the regex_traits translate_nocase function.
void test01()
{
- bool test __attribute__((unused)) = true;
typedef wchar_t CharT;
std::regex_traits<CharT> t;
void
test01()
{
- bool test __attribute__((unused)) = true;
-
basic_regex<wchar_t, MyRegexTraits<wchar_t>> re(L".");
VERIFY(!regex_match(L"\n", re));
VERIFY(!regex_match(L"\r", re));
// Tests the value() function of the regex_traits<wchar_t> class.
void test01()
{
- bool test __attribute__((unused)) = true;
std::regex_traits<wchar_t> t;
VERIFY( t.value(L'7', 8) == 7 );
VERIFY( t.value(L'7', 10) == 7 );
int
main ()
{
- bool test __attribute__((unused)) = true;
-
std::atomic<Foo*> a;
std::atomic<Bar*> b;
// pointer arithimetic vs. atomic<_Tp*> specialization
int main(void)
{
- bool test __attribute__((unused)) = true;
-
using namespace std;
typedef int value_type;
int main()
{
- bool test __attribute__((unused)) = true;
std::atomic_flag f = ATOMIC_FLAG_INIT;
f.clear(); // set to false
// libstdc++/11460
void test01()
{
- bool test __attribute__((unused)) = true;
-
typedef std::strstreambuf::traits_type Traits;
const char str[] = "a\xff";
void test01()
{
const int Size = 5;
- bool test __attribute__((unused)) = true;
using std::string;
using std::pair;
void test01()
{
- bool test __attribute__((unused)) = true;
-
typedef __gnu_cxx::hash_map<std::string, int> Map;
typedef Map::iterator iterator;
typedef Map::const_iterator const_iterator;
void
test01()
{
- bool test __attribute__((unused)) = true;
const int werte[] = { 1, 25, 9, 16, -36};
const int anzahl = sizeof(werte) / sizeof(int);
__gnu_cxx::hash_set<int> intTable(werte, werte + anzahl);
void test01()
{
- bool test __attribute__((unused)) = true;
-
typedef __gnu_cxx::hash_set<std::string> Set;
typedef Set::iterator iterator;
typedef Set::const_iterator const_iterator;
void
binary_add_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = si + a; VERIFY (b == 980);
void
binary_subtract_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a - si; VERIFY (b == 1020);
void
binary_multiply_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a * si; VERIFY (b == -20000);
void
binary_divide_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a / si; VERIFY (b == -50);
void
binary_add_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a + si; VERIFY (b == 980);
void
binary_subtract_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a - si; VERIFY (b == 1020);
void
binary_multiply_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a * si; VERIFY (b == -20000);
void
binary_divide_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a / si; VERIFY (b == -50);
void
binary_add_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a + si; VERIFY (b == 980);
void
binary_subtract_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a - si; VERIFY (b == 1020);
void
binary_multiply_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a * si; VERIFY (b == -20000);
void
binary_divide_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a / si; VERIFY (b == -50);
void
compare_eq_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a;
a = si; VERIFY (a == si); VERIFY (si == a);
void
compare_ne_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a = 100;
VERIFY (a != si); VERIFY (si != a);
void
compare_lt_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a = -100;
VERIFY (a < si);
void
compare_le_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a;
a = si; VERIFY (a <= si); VERIFY (si <= a);
void
compare_gt_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a = 100;
VERIFY (a > si);
void
compare_ge_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a;
a = si; VERIFY (a >= si); VERIFY (si <= a);
void
compare_eq_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a;
a = si; VERIFY (a == si); VERIFY (si == a);
void
compare_ne_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a = 100;
VERIFY (a != si); VERIFY (si != a);
void
compare_lt_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a = -100;
VERIFY (a < si);
void
compare_le_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a;
a = si; VERIFY (a <= si); VERIFY (si <= a);
void
compare_gt_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a = 100;
VERIFY (a > si);
void
compare_ge_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a;
a = si; VERIFY (a >= si); VERIFY (si <= a);
void
compare_eq_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a;
a = si; VERIFY (a == si); VERIFY (si == a);
void
compare_ne_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a = 100;
VERIFY (a != si); VERIFY (si != a);
void
compare_lt_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a = -100;
VERIFY (a < si);
void
compare_le_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a;
a = si; VERIFY (a <= si); VERIFY (si <= a);
void
compare_gt_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a = 100;
VERIFY (a > si);
void
compare_ge_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a;
a = si; VERIFY (a >= si); VERIFY (si <= a);
void
compound_assignment_add_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a; b.operator+=(d32); VERIFY (b == 1005);
void
compound_assignment_subtract_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a; b.operator-=(d32); VERIFY (b == 995);
void
compound_assignment_multiply_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a; b.operator*=(d32); VERIFY (b == 5000);
void
compound_assignment_divide_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a; b.operator/=(d32); VERIFY (b == 200);
void
compound_assignment_add_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a; b.operator+=(d32); VERIFY (b == 1005);
void
compound_assignment_subtract_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a; b.operator-=(d32); VERIFY (b == 995);
void
compound_assignment_multiply_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a; b.operator*=(d32); VERIFY (b == 5000);
void
compound_assignment_divide_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a; b.operator/=(d32); VERIFY (b == 200);
void
compound_assignment_add_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a; b.operator+=(d32); VERIFY (b == 1005);
void
compound_assignment_subtract_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a; b.operator-=(d32); VERIFY (b == 995);
void
compound_assignment_multiply_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a; b.operator*=(d32); VERIFY (b == 5000);
void
compound_assignment_divide_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a; b.operator/=(d32); VERIFY (b == 200);
void
compound_assignment_add_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a; b += d32; VERIFY (b == 1005);
void
compound_assignment_subtract_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a; b -= d32; VERIFY (b == 995);
void
compound_assignment_multiply_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a; b *= d32; VERIFY (b == 5000);
void
compound_assignment_divide_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a; b /= d32; VERIFY (b == 200);
void
compound_assignment_add_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a; b += d32; VERIFY (b == 1005);
void
compound_assignment_subtract_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a; b -= d32; VERIFY (b == 995);
void
compound_assignment_multiply_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a; b *= d32; VERIFY (b == 5000);
void
compound_assignment_divide_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a; b /= d32; VERIFY (b == 200);
void
compound_assignment_add_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a; b += d32; VERIFY (b == 1005);
void
compound_assignment_subtract_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a; b -= d32; VERIFY (b == 995);
void
compound_assignment_multiply_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a; b *= d32; VERIFY (b == 5000);
void
compound_assignment_divide_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a; b /= d32; VERIFY (b == 200);
void
conversion_from_float_32 ()
{
- bool test __attribute__((unused)) = true;
decimal32 d32(123);
decimal64 d64(234);
decimal128 d128(345);
void
conversion_from_float_64 ()
{
- bool test __attribute__((unused)) = true;
decimal32 d32(123);
decimal64 d64(234);
decimal128 d128(345);
void
conversion_from_float_128 ()
{
- bool test __attribute__((unused)) = true;
decimal32 d32(123);
decimal64 d64(234);
decimal128 d128(345);
void
conversion_from_integral_p32 ()
{
- bool test __attribute__((unused)) = true;
decimal32 d;
decimal32 from_si (1);
decimal32 from_ui (2U);
void
conversion_from_integral_m32 ()
{
- bool test __attribute__((unused)) = true;
decimal32 d;
decimal32 from_si (-1);
decimal32 from_sl (-2L);
void
conversion_from_integral_p64 ()
{
- bool test __attribute__((unused)) = true;
decimal64 d;
decimal64 from_si (1);
decimal64 from_ui (2U);
void
conversion_from_integral_m64 ()
{
- bool test __attribute__((unused)) = true;
decimal64 d;
decimal64 from_si (-1);
decimal64 from_sl (-2L);
void
conversion_from_integral_p128 ()
{
- bool test __attribute__((unused)) = true;
decimal128 d;
decimal128 from_si (1);
decimal128 from_ui (2U);
void
conversion_from_integral_m128 ()
{
- bool test __attribute__((unused)) = true;
decimal128 d;
decimal128 from_si (-1);
decimal128 from_sl (-2L);
void
conversion_to_generic_float_32 ()
{
- bool test __attribute__((unused)) = true;
decimal32 d32(123);
float f;
double d;
void
conversion_to_generic_float_64 ()
{
- bool test __attribute__((unused)) = true;
decimal64 d64(234);
float f;
double d;
void
conversion_to_generic_float_128 ()
{
- bool test __attribute__((unused)) = true;
decimal128 d128(345);
float f;
double d;
{
#undef MAXVAL
#define MAXVAL 999999LL
- bool test __attribute__((unused)) = true;
decimal32 a, b (1), c (-1), d (MAXVAL), e (-MAXVAL);
long long ll;
{
#undef MAXVAL
#define MAXVAL 999999999999999LL
- bool test __attribute__((unused)) = true;
decimal64 a, b (1), c (-1), d (MAXVAL), e (-MAXVAL);
long long ll;
{
#undef MAXVAL
#define MAXVAL LONG_LONG_MAX
- bool test __attribute__((unused)) = true;
decimal128 a, b (1), c (-1), d (MAXVAL), e (-MAXVAL);
long long ll;
void
ctor_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a;
float b __attribute__((mode(SD))) = 0.e-101DF;
void
ctor_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a;
float b __attribute__((mode(DD))) = 0.e-398DD;
void
ctor_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a;
float b __attribute__((mode(TD))) = 0.e-6176DL;
void
incdec32 (void)
{
- bool test __attribute__((unused)) = true;
int ival;
decimal32 a(11), b, c;
void
incdec64 (void)
{
- bool test __attribute__((unused)) = true;
int ival;
decimal64 a(11), b, c;
void
incdec128 (void)
{
- bool test __attribute__((unused)) = true;
int ival;
decimal128 a(11), b, c;
void
incdec32 (void)
{
- bool test __attribute__((unused)) = true;
int ival;
decimal32 a(11), b, c;
void
incdec64 (void)
{
- bool test __attribute__((unused)) = true;
int ival;
decimal64 a(11), b, c;
void
incdec128 (void)
{
- bool test __attribute__((unused)) = true;
int ival;
decimal128 a(11), b, c;
void
make_decimal_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a, b, c, d;
float x __attribute__((mode(SD)));
int i;
void
make_decimal_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a, b, c, d;
float x __attribute__((mode(DD)));
int i;
void
make_decimal_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a, b, c, d;
float x __attribute__((mode(TD)));
int i;
int
main ()
{
- bool test __attribute__((unused)) = true;
decimal32 v;
v = my_nan32 ();
int
main ()
{
- bool test __attribute__((unused)) = true;
decimal64 v;
v = my_nan64 ();
int
main ()
{
- bool test __attribute__((unused)) = true;
decimal128 v;
v = my_nan128 ();
void
unary_plus_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a;
a = +a32; VERIFY (a == a32);
void
unary_minus_32 (void)
{
- bool test __attribute__((unused)) = true;
decimal32 a;
a = -a32; VERIFY (a == b32);
void
unary_plus_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a;
a = +a64; VERIFY (a == a64);
void
unary_minus_64 (void)
{
- bool test __attribute__((unused)) = true;
decimal64 a;
a = -a64; VERIFY (a == b64);
void
unary_plus_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a;
a = +a128; VERIFY (a == a128);
void
unary_minus_128 (void)
{
- bool test __attribute__((unused)) = true;
decimal128 a;
a = -a128; VERIFY (a == b128);
void
test01()
{
- bool test [[gnu::unused]] = true;
float xf = std::numeric_limits<float>::quiet_NaN();
double xd = std::numeric_limits<double>::quiet_NaN();
long double xl = std::numeric_limits<long double>::quiet_NaN();
void
test(const testcase_assoc_laguerre<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 = std::assoc_legendre(l, m, xl);
long double e = std::assoc_legendrel(l, m, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_assoc_legendre<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 = std::beta(xl, yl);
long double e = std::betal(xl, yl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
long double d = std::beta(xl, yl);
long double e = std::betal(xl, yl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_beta<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 = std::comp_ellint_1(kl);
long double e = std::comp_ellint_1l(kl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_comp_ellint_1<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 = std::comp_ellint_2(kl);
long double e = std::comp_ellint_2l(kl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_comp_ellint_2<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 = std::comp_ellint_3(kl, nul);
long double e = std::comp_ellint_3l(kl, nul);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
long double d = std::comp_ellint_3(kl, nul);
long double e = std::comp_ellint_3l(kl, nul);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_comp_ellint_3<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 = std::cyl_bessel_i(nul, xl);
long double e = std::cyl_bessel_il(nul, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
long double d = std::cyl_bessel_i(nul, xl);
long double e = std::cyl_bessel_il(nul, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_cyl_bessel_i<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);
double j1 = std::cyl_bessel_j(1.0, 0.0);
double i1 = std::cyl_bessel_i(1.0, 0.0);
- bool test [[gnu::unused]] = true;
VERIFY(j0 == 1.0);
VERIFY(i0 == 1.0);
VERIFY(j1 == 0.0);
long double d = std::cyl_bessel_j(nul, xl);
long double e = std::cyl_bessel_jl(nul, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
long double d = std::cyl_bessel_j(nul, xl);
long double e = std::cyl_bessel_jl(nul, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_cyl_bessel_j<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 = std::cyl_bessel_k(nul, xl);
long double e = std::cyl_bessel_kl(nul, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
long double d = std::cyl_bessel_k(nul, xl);
long double e = std::cyl_bessel_kl(nul, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_cyl_bessel_k<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 = std::cyl_neumann(nul, xl);
long double e = std::cyl_neumannl(nul, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
long double d = std::cyl_neumann(nul, xl);
long double e = std::cyl_neumannl(nul, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_cyl_neumann<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 = std::ellint_1(kl, phil);
long double e = std::ellint_1l(kl, phil);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
long double d = std::ellint_1(kl, phil);
long double e = std::ellint_1l(kl, phil);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_ellint_1<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 = std::ellint_2(kl, phil);
long double e = std::ellint_2l(kl, phil);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
long double d = std::ellint_2(kl, phil);
long double e = std::ellint_2l(kl, phil);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_ellint_2<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 = std::ellint_3(kl, nul, phil);
long double e = std::ellint_3l(kl, nul, phil);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
long double d = std::ellint_3(kl, nul, phil);
long double e = std::ellint_3l(kl, nul, phil);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
long double d = std::ellint_3(kl, nul, phil);
long double e = std::ellint_3l(kl, nul, phil);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_ellint_3<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 = std::expint(xl);
long double e = std::expintl(xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_expint<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 = std::hermite(n, xl);
long double e = std::hermitel(n, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_hermite<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 = std::laguerre(n, xl);
long double e = std::laguerrel(n, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_laguerre<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 = std::legendre(l, xl);
long double e = std::legendrel(l, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_legendre<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 = std::riemann_zeta(xl);
long double e = std::riemann_zetal(xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_riemann_zeta<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 = std::sph_bessel(n, xl);
long double e = std::sph_bessell(n, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_sph_bessel<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 = std::sph_legendre(l, m, thetal);
long double e = std::sph_legendrel(l, m, thetal);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_sph_legendre<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 = std::sph_neumann(n, xl);
long double e = std::sph_neumannl(n, xl);
- bool test [[gnu::unused]] = true;
VERIFY(std::isnan(a));
VERIFY(std::isnan(b));
VERIFY(std::isnan(c));
void
test(const testcase_sph_neumann<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 test()
{
- bool test __attribute__((unused)) = true;
-
// 1
{
typedef std::tr2::bases<A>::type tl;
void test()
{
- bool test __attribute__((unused)) = true;
-
// 1
{
typedef std::tr2::direct_bases<A>::type tl;
void
check_assign1()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
void
check_assign2()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
void
check_assign3()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
void
check_construct1()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
void
check_construct2()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
void
check_construct3()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
void
check_insert1()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
void
check_insert2()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
void
check_insert3()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
void
check_insert4()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
template<typename _Tp>
void use_invalid_iterator()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
template<typename _Tp>
void use_erased_local_iterator()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
template<typename _Tp>
void use_invalid_local_iterator()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
template<typename _Tp>
void invalid_local_iterator_compare()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
template<typename _Tp>
void invalid_local_iterator_range()
{
- bool test __attribute__((unused)) = true;
-
typedef _Tp cont_type;
typedef typename cont_type::value_type cont_val_type;
typedef typename CopyableValueType<cont_val_type>::value_type val_type;
void
deallocate(pointer p, size_type n)
{
- bool test __attribute__((unused)) = true;
-
VERIFY( p );
map_type::iterator it = get_map().find(reinterpret_cast<void*>(p));
// behavior is ambiguity.
static void test()
{
- bool test __attribute__((unused)) = true;
try
{ throw error_type(); }
catch (std::exception const&)
_Ttype __a(__v1);
__v0 = __a;
- bool test __attribute__((unused)) = true;
VERIFY( __v1 == __v0 );
}
};
__a = __v1;
_Tvalue __vr = __a;
- bool test __attribute__((unused)) = true;
VERIFY( __v1 == __vr );
}
};
void
testDiscreteDist(Distribution& f, Pdf pdf)
{
- bool test __attribute__((unused)) = true;
double count[BINS], p[BINS];
for (unsigned long i = 0; i < BINS; i++)
rvalstruct(rvalstruct&& in)
{
- bool test __attribute__((unused)) = true;
VERIFY( in.valid == true );
val = in.val;
in.valid = false;
rvalstruct&
operator=(rvalstruct&& in)
{
- bool test __attribute__((unused)) = true;
VERIFY( this != &in );
VERIFY( in.valid == true );
val = in.val;
void
swap(rvalstruct& lhs, rvalstruct& rhs)
{
- bool test __attribute__((unused)) = true;
VERIFY( lhs.valid && rhs.valid );
int temp = lhs.val;
lhs.val = rhs.val;
copycounter(const copycounter& in) : val(in.val), valid(true)
{
- bool test __attribute__((unused)) = true;
VERIFY( in.valid == true );
++copycount;
}
copycounter(copycounter&& in) noexcept
{
- bool test __attribute__((unused)) = true;
VERIFY( in.valid == true );
val = in.val;
in.valid = false;
bool
operator=(const copycounter& in)
{
- bool test __attribute__((unused)) = true;
VERIFY( in.valid == true );
++copycount;
val = in.val;
copycounter&
operator=(copycounter&& in)
{
- bool test __attribute__((unused)) = true;
VERIFY(in.valid == true);
val = in.val;
in.valid = false;
inline void
swap(copycounter& lhs, copycounter& rhs)
{
- bool test __attribute__((unused)) = true;
VERIFY( lhs.valid && rhs.valid );
int temp = lhs.val;
lhs.val = rhs.val;
rvalstruct_compare_by_value(const rvalstruct_compare_by_value& rh)
: val(rh.val), ok(rh.ok)
{
- bool test __attribute__((unused)) = true;
VERIFY(rh.ok);
}
rvalstruct_compare_by_value&
operator=(const rvalstruct_compare_by_value& rh)
{
- bool test __attribute__((unused)) = true;
VERIFY( rh.ok );
val = rh.val;
ok = rh.ok;
rvalstruct_compare_by_value(rvalstruct_compare_by_value&& rh)
: val(rh.val), ok(rh.ok)
{
- bool test __attribute__((unused)) = true;
VERIFY( rh.ok );
rh.ok = false;
}
rvalstruct_compare_by_value&
operator=(rvalstruct_compare_by_value&& rh)
{
- bool test __attribute__((unused)) = true;
VERIFY( rh.ok );
val = rh.val;
ok = rh.ok;
operator<(rvalstruct_compare_by_value lh,
rvalstruct_compare_by_value rh)
{
- bool test __attribute__((unused)) = true;
VERIFY( rh.ok );
VERIFY( lh.ok );
return lh.val < rh.val;
order(rvalstruct_compare_by_value lh,
rvalstruct_compare_by_value rh)
{
- bool test __attribute__((unused)) = true;
VERIFY( rh.ok );
VERIFY( lh.ok );
return lh.val < rh.val;