mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-27 03:45:25 +08:00
testsuite_hooks.h: Rewrite VERIFY in terms of __builtin_printf and __builtin_abort.
2016-10-12 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/util/testsuite_hooks.h: Rewrite VERIFY in terms of __builtin_printf and __builtin_abort. * testsuite/lib/libstdc++.exp: Remove _GLIBCXX_ASSERT use. * scripts/testsuite_flags.in: Likewise. * testsuite/22_locale/time_get/get/char/1.cc: Likewise. * testsuite/22_locale/time_get/get/char/2.cc: Likewise. * testsuite/22_locale/time_get/get/wchar_t/1.cc: Likewise. * testsuite/22_locale/time_get/get/wchar_t/2.cc: Likewise. * testsuite/27_io/basic_filebuf/close/char/4879.cc: Likewise, adjust. * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise. * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise. * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise. * testsuite/27_io/basic_filebuf/seekoff/char/26777.cc: Likewise. * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise. * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Likewise. * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc: Likewise. * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: Likewise. * testsuite/27_io/objects/char/7.cc: Likewise. * testsuite/27_io/objects/char/9661-1.cc: Likewise. * testsuite/27_io/objects/wchar_t/7.cc: Likewise. * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise. * testsuite/18_support/50594.cc: Remove 'test' variable, adjust. * testsuite/18_support/bad_alloc/what.cc: Likewise. * testsuite/18_support/bad_cast/what.cc: Likewise. * testsuite/18_support/bad_exception/what.cc: Likewise. * testsuite/18_support/bad_typeid/what.cc: Likewise. * testsuite/18_support/exception/38732.cc: Likewise. * testsuite/18_support/exception/what.cc: Likewise. * testsuite/18_support/exception_ptr/64241.cc: Likewise. * testsuite/18_support/exception_ptr/current_exception.cc: Likewise. * testsuite/18_support/exception_ptr/lifespan.cc: Likewise. * testsuite/18_support/exception_ptr/make_exception_ptr.cc: Likewise. * testsuite/18_support/exception_ptr/rethrow_exception.cc: Likewise. * testsuite/18_support/nested_exception/cons.cc: Likewise. * testsuite/18_support/nested_exception/nested_ptr.cc: Likewise. * testsuite/18_support/nested_exception/rethrow_if_nested.cc: Likewise. * testsuite/18_support/nested_exception/rethrow_nested.cc: Likewise. * testsuite/18_support/nested_exception/throw_with_nested.cc: Likewise. * testsuite/18_support/numeric_limits/char16_32_t.cc: Likewise. * testsuite/18_support/numeric_limits/digits10.cc: Likewise. * testsuite/18_support/numeric_limits/dr559.cc: Likewise. * testsuite/18_support/numeric_limits/epsilon.cc: Likewise. * testsuite/18_support/numeric_limits/is_iec559.cc: Likewise. * testsuite/18_support/numeric_limits/is_signed.cc: Likewise. * testsuite/18_support/numeric_limits/lowest.cc: Likewise. * testsuite/18_support/numeric_limits/max_digits10.cc: Likewise. * testsuite/18_support/numeric_limits/min_max.cc: Likewise. * testsuite/18_support/numeric_limits/specialization_default_values.cc: Likewise. * testsuite/18_support/type_info/hash_code.cc: Likewise. * testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Likewise. * testsuite/19_diagnostics/error_category/cons/default.cc: Likewise. * testsuite/19_diagnostics/error_category/operators/equal.cc: Likewise. * testsuite/19_diagnostics/error_category/operators/ not_equal.cc: Likewise. * testsuite/19_diagnostics/error_code/cons/1.cc: Likewise. * testsuite/19_diagnostics/error_code/cons/39882.cc: Likewise. * testsuite/19_diagnostics/error_code/modifiers/39882.cc: Likewise. * testsuite/19_diagnostics/error_code/operators/bool.cc: Likewise. * testsuite/19_diagnostics/error_code/operators/equal.cc: Likewise. * testsuite/19_diagnostics/error_code/operators/not_equal.cc: Likewise. * testsuite/19_diagnostics/error_condition/cons/1.cc: Likewise. * testsuite/19_diagnostics/error_condition/cons/39881.cc: Likewise. * testsuite/19_diagnostics/error_condition/modifiers/39881.cc: Likewise. * testsuite/19_diagnostics/error_condition/operators/bool.cc: Likewise. * testsuite/19_diagnostics/error_condition/operators/equal.cc: Likewise. * testsuite/19_diagnostics/error_condition/operators/not_equal.cc: Likewise. * testsuite/19_diagnostics/logic_error/what-1.cc: Likewise. * testsuite/19_diagnostics/logic_error/what-2.cc: Likewise. * testsuite/19_diagnostics/logic_error/what-3.cc: Likewise. * testsuite/19_diagnostics/logic_error/what-big.cc: Likewise. * testsuite/19_diagnostics/runtime_error/what-1.cc: Likewise. * testsuite/19_diagnostics/runtime_error/what-2.cc: Likewise. * testsuite/19_diagnostics/runtime_error/what-3.cc: Likewise. * testsuite/19_diagnostics/runtime_error/what-big.cc: Likewise. * testsuite/19_diagnostics/system_error/cons-1.cc: Likewise. * testsuite/19_diagnostics/system_error/what-1.cc: Likewise. * testsuite/19_diagnostics/system_error/what-2.cc: Likewise. * testsuite/19_diagnostics/system_error/what-3.cc: Likewise. * testsuite/19_diagnostics/system_error/what-4.cc: Likewise. * testsuite/19_diagnostics/system_error/what-big.cc: Likewise. * testsuite/20_util/addressof/1.cc: Likewise. * testsuite/20_util/align/1.cc: Likewise. * testsuite/20_util/align/2.cc: Likewise. * testsuite/20_util/allocator/1.cc: Likewise. * testsuite/20_util/allocator/10378.cc: Likewise. * testsuite/20_util/allocator/8230.cc: Likewise. * testsuite/20_util/allocator_traits/members/allocate_hint.cc: Likewise. * testsuite/20_util/allocator_traits/members/construct.cc: Likewise. * testsuite/20_util/allocator_traits/members/destroy.cc: Likewise. * testsuite/20_util/allocator_traits/members/max_size.cc: Likewise. * testsuite/20_util/any/assign/exception.cc: Likewise. * testsuite/20_util/auto_ptr/1.cc: Likewise. * testsuite/20_util/auto_ptr/2.cc: Likewise. * testsuite/20_util/auto_ptr/3.cc: Likewise. * testsuite/20_util/auto_ptr/4.cc: Likewise. * testsuite/20_util/auto_ptr/5.cc: Likewise. * testsuite/20_util/auto_ptr/6.cc: Likewise. * testsuite/20_util/auto_ptr/7.cc: Likewise. * testsuite/20_util/bind/all_bound.cc: Likewise. * testsuite/20_util/bind/conv_result.cc: Likewise. * testsuite/20_util/bind/cv_quals.cc: Likewise. * testsuite/20_util/bind/cv_quals_2.cc * testsuite/20_util/bind/nested.cc: Likewise. * testsuite/20_util/bind/placeholders.cc: Likewise. * testsuite/20_util/bind/ref.cc: Likewise. * testsuite/20_util/bind/ref2.cc: Likewise. * testsuite/20_util/common_type/requirements/typedefs-1.cc: Likewise. * testsuite/20_util/duration/arithmetic/1.cc: Likewise. * testsuite/20_util/duration/arithmetic/2.cc: Likewise. * testsuite/20_util/duration/arithmetic/58850.cc: Likewise. * testsuite/20_util/duration/arithmetic/dr2020.cc: Likewise. * testsuite/20_util/duration/arithmetic/dr934-2.cc: Likewise. * testsuite/20_util/duration/comparison_operators/1.cc: Likewise. * testsuite/20_util/duration/cons/1.cc: Likewise. * testsuite/20_util/duration/cons/2.cc: Likewise. * testsuite/20_util/enable_if/requirements/typedefs.cc: Likewise. * testsuite/20_util/enable_if/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/enable_shared_from_this/members/assign.cc: Likewise. * testsuite/20_util/exchange/1.cc: Likewise. * testsuite/20_util/forward/a.cc: Likewise. * testsuite/20_util/forward/b.cc: Likewise. * testsuite/20_util/forward/d.cc: Likewise. * testsuite/20_util/function/1.cc: Likewise. * testsuite/20_util/function/2.cc: Likewise. * testsuite/20_util/function/3.cc: Likewise. * testsuite/20_util/function/4.cc: Likewise. * testsuite/20_util/function/43397.cc: Likewise. * testsuite/20_util/function/5.cc: Likewise. * testsuite/20_util/function/6.cc: Likewise. * testsuite/20_util/function/7.cc: Likewise. * testsuite/20_util/function/8.cc: Likewise. * testsuite/20_util/function/9.cc: Likewise. * testsuite/20_util/function/assign/move.cc: Likewise. * testsuite/20_util/function/cons/move.cc: Likewise. * testsuite/20_util/function_objects/dr660.cc: Likewise. * testsuite/20_util/hash/chi2_q_bit_flip_set.cc: Likewise. * testsuite/20_util/hash/chi2_q_bit_string_set.cc: Likewise. * testsuite/20_util/hash/chi2_q_document_words.cc: Likewise. * testsuite/20_util/hash/chi2_q_numeric_pattern_set.cc: Likewise. * testsuite/20_util/hash/chi2_q_uniform_random.cc: Likewise. * testsuite/20_util/hash/operators/size_t.cc: Likewise. * testsuite/20_util/hash/quality.cc: Likewise. * testsuite/20_util/integral_constant/static_definition.cc: Likewise. * testsuite/20_util/integral_constant/true_false_value.cc: Likewise. * testsuite/20_util/is_function/24808.cc: Likewise. * testsuite/20_util/is_object/24808.cc: Likewise. * testsuite/20_util/move_if_noexcept/1.cc: Likewise. * testsuite/20_util/move_if_noexcept/constexpr.cc: Likewise. * testsuite/20_util/owner_less/cmp.cc: Likewise. * testsuite/20_util/pair/1.cc: Likewise. * testsuite/20_util/pair/2.cc: Likewise. * testsuite/20_util/pair/3.cc: Likewise. * testsuite/20_util/pair/4.cc: Likewise. * testsuite/20_util/pair/make_pair/constexpr.cc: Likewise. * testsuite/20_util/pair/moveable.cc: Likewise. * testsuite/20_util/pair/piecewise.cc: Likewise. * testsuite/20_util/pair/swap.cc: Likewise. * testsuite/20_util/ratio/comparisons/comp1.cc: Likewise. * testsuite/20_util/ratio/comparisons/comp2.cc: Likewise. * testsuite/20_util/ratio/comparisons/comp3.cc: Likewise. * testsuite/20_util/ratio/cons/cons1.cc: Likewise. * testsuite/20_util/ratio/operations/45866.cc: Likewise. * testsuite/20_util/ratio/operations/47913.cc: Likewise. * testsuite/20_util/ratio/operations/ops1.cc: Likewise. * testsuite/20_util/ratio/operations/ops2.cc: Likewise. * testsuite/20_util/ratio/operations/ops3.cc: Likewise. * testsuite/20_util/reference_wrapper/invoke.cc: Likewise. * testsuite/20_util/scoped_allocator/1.cc: Likewise. * testsuite/20_util/scoped_allocator/2.cc: Likewise. * testsuite/20_util/shared_ptr/assign/assign.cc: Likewise. * testsuite/20_util/shared_ptr/assign/auto_ptr.cc: Likewise. * testsuite/20_util/shared_ptr/assign/auto_ptr_neg.cc: Likewise. * testsuite/20_util/shared_ptr/assign/move.cc: Likewise. * testsuite/20_util/shared_ptr/assign/shared_ptr.cc: Likewise. * testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc: Likewise. * testsuite/20_util/shared_ptr/comparison/cmp.cc: Likewise. * testsuite/20_util/shared_ptr/comparison/less.cc: Likewise. * testsuite/20_util/shared_ptr/cons/alias.cc: Likewise. * testsuite/20_util/shared_ptr/cons/alloc.cc: Likewise. * testsuite/20_util/shared_ptr/cons/auto_ptr.cc: Likewise. * testsuite/20_util/shared_ptr/cons/copy.cc: Likewise. * testsuite/20_util/shared_ptr/cons/default.cc: Likewise. * testsuite/20_util/shared_ptr/cons/move.cc: Likewise. * testsuite/20_util/shared_ptr/cons/nullptr.cc: Likewise. * testsuite/20_util/shared_ptr/cons/pointer.cc: Likewise. * testsuite/20_util/shared_ptr/cons/unique_ptr.cc: Likewise. * testsuite/20_util/shared_ptr/cons/unique_ptr_array.cc: Likewise. * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Likewise. * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_1.cc: Likewise. * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_2.cc: Likewise. * testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc: Likewise. * testsuite/20_util/shared_ptr/cons/weak_ptr.cc: Likewise. * testsuite/20_util/shared_ptr/creation/alloc.cc: Likewise. * testsuite/20_util/shared_ptr/creation/dr402.cc: Likewise. * testsuite/20_util/shared_ptr/creation/dr925.cc: Likewise. * testsuite/20_util/shared_ptr/creation/make.cc: Likewise. * testsuite/20_util/shared_ptr/dest/dest.cc: Likewise. * testsuite/20_util/shared_ptr/hash/1.cc: Likewise. * testsuite/20_util/shared_ptr/misc/24595.cc: Likewise. * testsuite/20_util/shared_ptr/misc/42019.cc: Likewise. * testsuite/20_util/shared_ptr/misc/io.cc: Likewise. * testsuite/20_util/shared_ptr/misc/swap.cc: Likewise. * testsuite/20_util/shared_ptr/modifiers/reset.cc: Likewise. * testsuite/20_util/shared_ptr/modifiers/reset_alloc.cc: Likewise. * testsuite/20_util/shared_ptr/modifiers/reset_neg.cc: Likewise. * testsuite/20_util/shared_ptr/modifiers/swap.cc: Likewise. * testsuite/20_util/shared_ptr/modifiers/swap_neg.cc: Likewise. * testsuite/20_util/shared_ptr/observers/bool_conv.cc: Likewise. * testsuite/20_util/shared_ptr/observers/get.cc: Likewise. * testsuite/20_util/shared_ptr/observers/owner_before.cc: Likewise. * testsuite/20_util/shared_ptr/observers/unique.cc: Likewise. * testsuite/20_util/shared_ptr/observers/use_count.cc: Likewise. * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Likewise. * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise. * testsuite/20_util/specialized_algorithms/uninitialized_copy/ move_iterators/1.cc: Likewise. * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/ move_iterators/1.cc: Likewise. * testsuite/20_util/temporary_buffer.cc: Likewise. * testsuite/20_util/time_point/1.cc: Likewise. * testsuite/20_util/time_point/2.cc: Likewise. * testsuite/20_util/time_point/3.cc: Likewise. * testsuite/20_util/time_point/nonmember/constexpr.cc: Likewise. * testsuite/20_util/tuple/48476.cc: Likewise. * testsuite/20_util/tuple/comparison_operators/comparisons.cc: Likewise. * testsuite/20_util/tuple/cons/allocators.cc: Likewise. * testsuite/20_util/tuple/cons/assignment.cc: Likewise. * testsuite/20_util/tuple/cons/big_tuples.cc: Likewise. * testsuite/20_util/tuple/cons/constructor.cc: Likewise. * testsuite/20_util/tuple/creation_functions/23978.cc: Likewise. * testsuite/20_util/tuple/creation_functions/48476.cc: Likewise. * testsuite/20_util/tuple/creation_functions/constexpr.cc: Likewise. * testsuite/20_util/tuple/creation_functions/forward_as_tuple.cc: Likewise. * testsuite/20_util/tuple/creation_functions/make_tuple.cc: Likewise. * testsuite/20_util/tuple/creation_functions/tie.cc: Likewise. * testsuite/20_util/tuple/creation_functions/tie2.cc: Likewise. * testsuite/20_util/tuple/cv_tuple_size.cc: Likewise. * testsuite/20_util/tuple/element_access/get.cc: Likewise. * testsuite/20_util/tuple/element_access/get_by_type.cc: Likewise. * testsuite/20_util/tuple/moveable.cc: Likewise. * testsuite/20_util/tuple/swap.cc: Likewise. * testsuite/20_util/tuple/tuple_size.cc: Likewise. * testsuite/20_util/typeindex/comparison_operators.cc: Likewise. * testsuite/20_util/typeindex/hash.cc: Likewise. * testsuite/20_util/typeindex/hash_code.cc: Likewise. * testsuite/20_util/typeindex/name.cc: Likewise. * testsuite/20_util/unique_ptr/assign/48635.cc: Likewise. * testsuite/20_util/unique_ptr/assign/move.cc: Likewise. * testsuite/20_util/unique_ptr/assign/move_array.cc: Likewise. * testsuite/20_util/unique_ptr/assign/nullptr.cc: Likewise. * testsuite/20_util/unique_ptr/cons/auto_ptr.cc: Likewise. * testsuite/20_util/unique_ptr/cons/nullptr.cc: Likewise. * testsuite/20_util/unique_ptr/cons/pointer.cc: Likewise. * testsuite/20_util/unique_ptr/cons/pointer_array.cc: Likewise. * testsuite/20_util/unique_ptr/cons/ptr_deleter.cc: Likewise. * testsuite/20_util/unique_ptr/creation/array.cc: Likewise. * testsuite/20_util/unique_ptr/creation/single.cc: Likewise. * testsuite/20_util/unique_ptr/hash/1.cc: Likewise. * testsuite/20_util/unique_ptr/modifiers/43183.cc: Likewise. * testsuite/20_util/unique_ptr/specialized_algorithms/ comparisons.cc: Likewise. * testsuite/20_util/unique_ptr/specialized_algorithms/ comparisons_array.cc: Likewise. * testsuite/20_util/unique_ptr/specialized_algorithms/swap.cc: Likewise. * testsuite/20_util/uses_allocator/construction.cc: Likewise. * testsuite/20_util/uses_allocator/value.cc: Likewise. * testsuite/20_util/variant/run.cc: Likewise. * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise. * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise. * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc: Likewise. * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise. * testsuite/21_strings/basic_string/allocator/char/move_assign.cc: Likewise. * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc: Likewise. * testsuite/21_strings/basic_string/capacity/1.cc: Likewise. * testsuite/21_strings/basic_string/capacity/char/1.cc: Likewise. * testsuite/21_strings/basic_string/capacity/char/18654.cc: Likewise. * testsuite/21_strings/basic_string/capacity/char/2.cc: Likewise. * testsuite/21_strings/basic_string/capacity/char/shrink_to_fit.cc: Likewise. * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: Likewise. * testsuite/21_strings/basic_string/capacity/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string/capacity/wchar_t/shrink_to_fit.cc: Likewise. * testsuite/21_strings/basic_string/cons/char/1.cc: Likewise. * testsuite/21_strings/basic_string/cons/char/2.cc: Likewise. * testsuite/21_strings/basic_string/cons/char/3.cc: Likewise. * testsuite/21_strings/basic_string/cons/char/4.cc: Likewise. * testsuite/21_strings/basic_string/cons/char/42261.cc: Likewise. * testsuite/21_strings/basic_string/cons/char/5.cc: Likewise. * testsuite/21_strings/basic_string/cons/char/6.cc: Likewise. * testsuite/21_strings/basic_string/cons/char/7.cc: Likewise. * testsuite/21_strings/basic_string/cons/char/8.cc: Likewise. * testsuite/21_strings/basic_string/cons/char/moveable.cc: Likewise. * testsuite/21_strings/basic_string/cons/char/moveable2.cc: Likewise. * testsuite/21_strings/basic_string/cons/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/cons/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string/cons/wchar_t/3.cc: Likewise. * testsuite/21_strings/basic_string/cons/wchar_t/4.cc: Likewise. * testsuite/21_strings/basic_string/cons/wchar_t/42261.cc: Likewise. * testsuite/21_strings/basic_string/cons/wchar_t/5.cc: Likewise. * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: Likewise. * testsuite/21_strings/basic_string/cons/wchar_t/7.cc: Likewise. * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise. * testsuite/21_strings/basic_string/cons/wchar_t/moveable.cc: Likewise. * testsuite/21_strings/basic_string/cons/wchar_t/moveable2.cc: Likewise. * testsuite/21_strings/basic_string/element_access/char/1.cc: Likewise. * testsuite/21_strings/basic_string/element_access/char/2.cc: Likewise. * testsuite/21_strings/basic_string/element_access/char/3.cc: Likewise. * testsuite/21_strings/basic_string/element_access/char/4.cc: Likewise. * testsuite/21_strings/basic_string/element_access/char/58163.cc: Likewise. * testsuite/21_strings/basic_string/element_access/char/empty.cc: Likewise. * testsuite/21_strings/basic_string/element_access/char/front_back.cc: Likewise. * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Likewise. * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc: Likewise. * testsuite/21_strings/basic_string/element_access/wchar_t/58163.cc: Likewise. * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc: Likewise. * testsuite/21_strings/basic_string/element_access/wchar_t/ front_back.cc: Likewise. * testsuite/21_strings/basic_string/init-list.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/char/ 28277.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/char/8.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/char/9.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/pod/ 10081-in.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/pod/ 10081-out.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/ 10.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/ 11.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/ 28277.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/8.cc: Likewise. * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/9.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/append/char/1.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/append/char/2.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/append/char/3.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/append/char/4.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/append/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/append/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/append/wchar_t/3.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/append/wchar_t/4.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/assign/char/1.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/assign/char/2.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/assign/char/3.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/assign/char/4.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/assign/char/ move_assign.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/3.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/4.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/ move_assign.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/insert/char/1.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/insert/char/2.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/insert/char/3.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/insert/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/insert/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/insert/wchar_t/3.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/pop_back/char/1.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/pop_back/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/char/1.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/char/2.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/char/3.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/char/4.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/char/5.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/char/6.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/char/7.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/wchar_t/3.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/wchar_t/4.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/wchar_t/5.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/wchar_t/6.cc: Likewise. * testsuite/21_strings/basic_string/modifiers/replace/wchar_t/7.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/char/ stoull.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/char/ to_string.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/ dr1261.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/ stod.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/ stof.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/ stoi.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/ stol.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/ stold.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/ stoll.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/ stoul.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/ stoull.cc: Likewise. * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/ to_wstring.cc: Likewise. * testsuite/21_strings/basic_string/operations/compare/char/1.cc: Likewise. * testsuite/21_strings/basic_string/operations/compare/char/13650.cc: Likewise. * testsuite/21_strings/basic_string/operations/compare/char/2.cc: Likewise. * testsuite/21_strings/basic_string/operations/compare/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/operations/compare/wchar_t/ 13650.cc: Likewise. * testsuite/21_strings/basic_string/operations/compare/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string/operations/data/char/1.cc: Likewise. * testsuite/21_strings/basic_string/operations/data/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/operations/find/char/1.cc: Likewise. * testsuite/21_strings/basic_string/operations/find/char/2.cc: Likewise. * testsuite/21_strings/basic_string/operations/find/char/3.cc: Likewise. * testsuite/21_strings/basic_string/operations/find/char/4.cc: Likewise. * testsuite/21_strings/basic_string/operations/find/char/5.cc: Likewise. * testsuite/21_strings/basic_string/operations/find/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/operations/find/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string/operations/find/wchar_t/3.cc: Likewise. * testsuite/21_strings/basic_string/operations/find/wchar_t/4.cc: Likewise. * testsuite/21_strings/basic_string/operations/find/wchar_t/5.cc: Likewise. * testsuite/21_strings/basic_string/operations/rfind/char/1.cc: Likewise. * testsuite/21_strings/basic_string/operations/rfind/char/2.cc: Likewise. * testsuite/21_strings/basic_string/operations/rfind/char/3.cc: Likewise. * testsuite/21_strings/basic_string/operations/rfind/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/operations/rfind/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string/operations/rfind/wchar_t/3.cc: Likewise. * testsuite/21_strings/basic_string/operations/substr/char/1.cc: Likewise. * testsuite/21_strings/basic_string/operations/substr/wchar_t/ 1.cc: Likewise. * testsuite/21_strings/basic_string/operators/char/1.cc: Likewise. * testsuite/21_strings/basic_string/operators/char/2.cc: Likewise. * testsuite/21_strings/basic_string/operators/char/3.cc: Likewise. * testsuite/21_strings/basic_string/operators/char/4.cc: Likewise. * testsuite/21_strings/basic_string/operators/char/5.cc: Likewise. * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string/operators/wchar_t/3.cc: Likewise. * testsuite/21_strings/basic_string/operators/wchar_t/4.cc: Likewise. * testsuite/21_strings/basic_string/operators/wchar_t/5.cc: Likewise. * testsuite/21_strings/basic_string_view/capacity/1.cc: Likewise. * testsuite/21_strings/basic_string_view/cons/char/1.cc: Likewise. * testsuite/21_strings/basic_string_view/cons/char/2.cc: Likewise. * testsuite/21_strings/basic_string_view/cons/char/3.cc: Likewise. * testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string_view/cons/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string_view/cons/wchar_t/3.cc: Likewise. * testsuite/21_strings/basic_string_view/element_access/char/ 1.cc: Likewise. * testsuite/21_strings/basic_string_view/element_access/char/ empty.cc: Likewise. * testsuite/21_strings/basic_string_view/element_access/char/ front_back.cc: Likewise. * testsuite/21_strings/basic_string_view/element_access/wchar_t/ 1.cc: Likewise. * testsuite/21_strings/basic_string_view/element_access/wchar_t/ empty.cc: Likewise. * testsuite/21_strings/basic_string_view/element_access/wchar_t/ front_back.cc: Likewise. * testsuite/21_strings/basic_string_view/inserters/char/1.cc: Likewise. * testsuite/21_strings/basic_string_view/inserters/char/2.cc: Likewise. * testsuite/21_strings/basic_string_view/inserters/char/3.cc: Likewise. * testsuite/21_strings/basic_string_view/inserters/pod/10081-out.cc: Likewise. * testsuite/21_strings/basic_string_view/inserters/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string_view/inserters/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string_view/inserters/wchar_t/3.cc: Likewise. * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/ char/1.cc: Likewise. * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/ wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/ char/1.cc: Likewise. * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/ wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/compare/char/ 1.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/compare/char/ 13650.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/ 1.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/ 13650.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/copy/char/1.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/data/char/1.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/data/wchar_t/1.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/find/char/1.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/find/char/2.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/find/char/3.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/find/char/4.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/find/wchar_t/ 1.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/find/wchar_t/ 2.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/find/wchar_t/ 3.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/find/wchar_t/ 4.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/rfind/char/ 1.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/rfind/char/ 2.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/rfind/char/ 3.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/ 1.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/ 2.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/ 3.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/string_conversion/ 1.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/substr/char/ 1.cc: Likewise. * testsuite/21_strings/basic_string_view/operations/substr/wchar_t/ 1.cc: Likewise. * testsuite/21_strings/basic_string_view/operators/char/2.cc: Likewise. * testsuite/21_strings/basic_string_view/operators/wchar_t/2.cc: Likewise. * testsuite/21_strings/c_strings/char/1.cc: Likewise. * testsuite/21_strings/c_strings/wchar_t/1.cc: Likewise. * testsuite/21_strings/char_traits/requirements/char/1.cc: Likewise. * testsuite/21_strings/char_traits/requirements/char/57704.cc: Likewise. * testsuite/21_strings/char_traits/requirements/short/1.cc: Likewise. * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Likewise. * doc/xml/manual/test.xml: Fix typo. From-SVN: r241069
This commit is contained in:
parent
543f217b7a
commit
118c842441
@ -564,7 +564,7 @@ cat 27_io/objects/char/3_xin.in | a.out</programlisting>
|
||||
<command>make</command>, or via options for the DejaGnu test framework
|
||||
(described below). The latter approach uses the
|
||||
<option>--target_board</option> option that was shown earlier.
|
||||
For example, to run the tests with <option>-O1 -D_GLIBCXX_ASSERT</option>
|
||||
For example, to run the tests with <option>-O1 -D_GLIBCXX_ASSERTIONS</option>
|
||||
you could use:
|
||||
<programlisting> make RUNTESTFLAGS=--target_board=unix/-O1/-D_GLIBCXX_ASSERTIONS</programlisting>
|
||||
</para>
|
||||
|
@ -56,7 +56,7 @@ case ${query} in
|
||||
echo ${CC}
|
||||
;;
|
||||
--cxxflags)
|
||||
CXXFLAGS_default="-D_GLIBCXX_ASSERT -fmessage-length=0 -fno-show-column"
|
||||
CXXFLAGS_default="-fmessage-length=0 -fno-show-column"
|
||||
CXXFLAGS_config="@SECTION_FLAGS@ @EXTRA_CXX_FLAGS@"
|
||||
echo ${CXXFLAGS_default} ${CXXFLAGS_config}
|
||||
;;
|
||||
|
@ -56,8 +56,6 @@ void operator delete(void* p)
|
||||
// libstdc++/50594
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
{
|
||||
std::string s = "Hello World, this is not a small string.";
|
||||
}
|
||||
|
@ -26,7 +26,6 @@
|
||||
// libstdc++/14493
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
bad_alloc ba;
|
||||
|
@ -26,7 +26,6 @@
|
||||
// libstdc++/14493
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
bad_cast bc;
|
||||
|
@ -26,7 +26,6 @@
|
||||
// libstdc++/14493
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
bad_exception be;
|
||||
|
@ -26,7 +26,6 @@
|
||||
// libstdc++/14493
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
bad_typeid bt;
|
||||
|
@ -61,7 +61,6 @@ extern "C" __cxa_eh_globals *__cxa_get_globals () throw();
|
||||
// PR libstdc++/38732
|
||||
void test01 ()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
try {
|
||||
throw 0;
|
||||
} catch(...) {
|
||||
|
@ -26,7 +26,6 @@
|
||||
// libstdc++/14493
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
exception e;
|
||||
|
@ -25,7 +25,7 @@
|
||||
void
|
||||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
bool test = true;
|
||||
{
|
||||
// Put some non-zero bytes on the stack
|
||||
void* p __attribute__((unused)) = &test;
|
||||
|
@ -27,7 +27,6 @@
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
exception_ptr ep = current_exception();
|
||||
@ -36,7 +35,6 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
try {
|
||||
@ -49,7 +47,6 @@ void test02()
|
||||
|
||||
void test03()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
try {
|
||||
@ -62,7 +59,6 @@ void test03()
|
||||
|
||||
void test04()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
try {
|
||||
|
@ -39,7 +39,6 @@ public:
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
may_destruct = false;
|
||||
@ -56,7 +55,6 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
may_destruct = false;
|
||||
@ -71,7 +69,6 @@ void test02()
|
||||
|
||||
void test03()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
may_destruct = false;
|
||||
@ -89,7 +86,6 @@ void test03()
|
||||
|
||||
void test04()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
may_destruct = false;
|
||||
@ -119,7 +115,6 @@ void test05_helper()
|
||||
|
||||
void test05()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
may_destruct = false;
|
||||
@ -145,7 +140,6 @@ void test06_helper()
|
||||
|
||||
void test06()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
may_destruct = false;
|
||||
@ -165,7 +159,6 @@ std::exception_ptr gep;
|
||||
|
||||
void test99()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
may_destruct = false;
|
||||
|
@ -23,8 +23,6 @@
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::exception_ptr p = std::make_exception_ptr(0);
|
||||
|
||||
VERIFY( !(p == 0) );
|
||||
|
@ -40,7 +40,6 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
try {
|
||||
|
@ -23,8 +23,6 @@
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::nested_exception e;
|
||||
|
||||
VERIFY( e.nested_ptr() == 0 );
|
||||
@ -32,8 +30,6 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
try
|
||||
{
|
||||
throw 42;
|
||||
|
@ -23,8 +23,6 @@
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
try
|
||||
{
|
||||
throw std::nested_exception();
|
||||
@ -37,8 +35,6 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
try
|
||||
{
|
||||
throw 42;
|
||||
|
@ -30,7 +30,7 @@ struct derived2 : base, std::nested_exception { };
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = false;
|
||||
bool test = false;
|
||||
|
||||
try
|
||||
{
|
||||
@ -55,7 +55,7 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = false;
|
||||
bool test = false;
|
||||
|
||||
try
|
||||
{
|
||||
@ -72,7 +72,7 @@ void test02()
|
||||
|
||||
void test03()
|
||||
{
|
||||
bool test __attribute__((unused)) = false;
|
||||
bool test = false;
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = false;
|
||||
bool test = false;
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -30,7 +30,7 @@ struct uninheritable final { };
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = false;
|
||||
bool test = false;
|
||||
|
||||
try
|
||||
{
|
||||
@ -53,7 +53,7 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = false;
|
||||
bool test = false;
|
||||
|
||||
try
|
||||
{
|
||||
@ -76,7 +76,7 @@ void test02()
|
||||
|
||||
void test03()
|
||||
{
|
||||
bool test __attribute__((unused)) = false;
|
||||
bool test = false;
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -31,8 +31,6 @@ template<typename T, typename R>
|
||||
void
|
||||
do_test()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
typedef std::numeric_limits<T> char_type;
|
||||
typedef std::numeric_limits<R> impl_type;
|
||||
|
||||
|
@ -28,10 +28,8 @@
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
// libstdc++/5045
|
||||
bool test03()
|
||||
void test03()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
VERIFY( std::numeric_limits<bool>::digits10 == 0 );
|
||||
if (__CHAR_BIT__ == 8)
|
||||
{
|
||||
@ -53,7 +51,6 @@ bool test03()
|
||||
VERIFY( std::numeric_limits<signed long long>::digits10 == 18 );
|
||||
VERIFY( std::numeric_limits<unsigned long long>::digits10 == 19 );
|
||||
}
|
||||
return test;
|
||||
}
|
||||
|
||||
int main()
|
||||
|
@ -26,7 +26,6 @@
|
||||
template<typename T>
|
||||
void do_test_aux()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
typedef std::numeric_limits<T> cv_limits;
|
||||
typedef std::numeric_limits<typename std::remove_cv<T>::type> limits;
|
||||
|
||||
|
@ -30,7 +30,6 @@
|
||||
template<typename T>
|
||||
void test_epsilon()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
T epsilon = std::numeric_limits<T>::epsilon();
|
||||
T one = 1;
|
||||
|
||||
|
@ -52,10 +52,8 @@ test_is_iec559()
|
||||
}
|
||||
|
||||
// libstdc++/8949
|
||||
bool test04()
|
||||
void test04()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
VERIFY( !std::numeric_limits<short>::is_iec559 );
|
||||
VERIFY( !std::numeric_limits<unsigned short>::is_iec559 );
|
||||
VERIFY( !std::numeric_limits<int>::is_iec559 );
|
||||
@ -64,7 +62,6 @@ bool test04()
|
||||
VERIFY( !std::numeric_limits<unsigned long>::is_iec559 );
|
||||
VERIFY( !std::numeric_limits<long long>::is_iec559 );
|
||||
VERIFY( !std::numeric_limits<unsigned long long>::is_iec559 );
|
||||
return test;
|
||||
}
|
||||
|
||||
int main()
|
||||
|
@ -35,7 +35,6 @@
|
||||
|
||||
void test_sign()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
VERIFY( std::numeric_limits<char>::is_signed == char_is_signed );
|
||||
VERIFY( std::numeric_limits<signed char>::is_signed == true );
|
||||
VERIFY( std::numeric_limits<unsigned char>::is_signed == false );
|
||||
|
@ -30,7 +30,6 @@ template<typename T>
|
||||
void
|
||||
do_test(std::true_type)
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
T limits_min = std::numeric_limits<T>::min();
|
||||
VERIFY( std::numeric_limits<T>::lowest() == limits_min );
|
||||
}
|
||||
@ -39,7 +38,6 @@ template<typename T>
|
||||
void
|
||||
do_test(std::false_type)
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
T limits_max = std::numeric_limits<T>::max();
|
||||
VERIFY( std::numeric_limits<T>::lowest() == -limits_max );
|
||||
}
|
||||
|
@ -29,8 +29,6 @@
|
||||
void
|
||||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
VERIFY( std::numeric_limits<bool>::max_digits10 == 0 );
|
||||
VERIFY( std::numeric_limits<char>::max_digits10 == 0 );
|
||||
VERIFY( std::numeric_limits<signed char>::max_digits10 == 0 );
|
||||
|
@ -61,7 +61,6 @@ DEFINE_EXTREMA(long double, LDBL_MIN, LDBL_MAX);
|
||||
template<typename T>
|
||||
void test_extrema()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
T limits_min = std::numeric_limits<T>::min();
|
||||
T limits_max = std::numeric_limits<T>::max();
|
||||
T extrema_min = extrema<T>::min;
|
||||
|
@ -43,9 +43,8 @@ struct B
|
||||
};
|
||||
|
||||
|
||||
bool test01()
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
std::numeric_limits< A<B> > obj;
|
||||
|
||||
VERIFY( !obj.is_specialized );
|
||||
@ -78,7 +77,6 @@ bool test01()
|
||||
VERIFY( !obj.traps );
|
||||
VERIFY( !obj.tinyness_before );
|
||||
VERIFY( obj.round_style == std::round_toward_zero );
|
||||
return test;
|
||||
}
|
||||
|
||||
// test linkage of the generic bits
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std;
|
||||
|
||||
class Abraca { };
|
||||
|
@ -23,8 +23,6 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
__gnu_test::test_category c1;
|
||||
__gnu_test::test_category c2(c1); // { dg-error "deleted" }
|
||||
|
||||
|
@ -23,8 +23,6 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
// 1
|
||||
__gnu_test::test_category c1;
|
||||
__gnu_test::test_derived_category c2;
|
||||
|
@ -24,8 +24,6 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
__gnu_test::test_category c1;
|
||||
__gnu_test::test_derived_category c2;
|
||||
VERIFY( c1 == c1 );
|
||||
|
@ -23,8 +23,6 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
__gnu_test::test_category c1;
|
||||
__gnu_test::test_derived_category c2;
|
||||
VERIFY( !(c1 != c1) );
|
||||
|
@ -24,8 +24,6 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
// 1
|
||||
std::error_code e1;
|
||||
VERIFY( e1.value() == 0 );
|
||||
|
@ -47,8 +47,6 @@ namespace std
|
||||
// libstdc++/39882
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::error_code ec1(my_err);
|
||||
VERIFY( ec1 == make_error_code(my_err) );
|
||||
}
|
||||
|
@ -47,8 +47,6 @@ namespace std
|
||||
// libstdc++/39882
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::error_code ec2;
|
||||
ec2 = my_err;
|
||||
VERIFY( ec2 == make_error_code(my_err) );
|
||||
|
@ -25,8 +25,6 @@
|
||||
// unspecified bool operator positive tests
|
||||
int main()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
// 1
|
||||
std::error_code e1;
|
||||
if (static_cast<bool>(e1))
|
||||
|
@ -25,8 +25,6 @@
|
||||
// unspecified bool operator positive tests
|
||||
int main()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::error_code e1;
|
||||
std::error_code e2(std::make_error_code(std::errc::operation_not_supported));
|
||||
|
||||
|
@ -25,8 +25,6 @@
|
||||
// unspecified bool operator positive tests
|
||||
int main()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::error_code e1;
|
||||
std::error_code e2(std::make_error_code(std::errc::operation_not_supported));
|
||||
|
||||
|
@ -23,8 +23,6 @@
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
// 1
|
||||
std::error_condition e1;
|
||||
VERIFY( e1.value() == 0 );
|
||||
|
@ -47,8 +47,6 @@ namespace std
|
||||
// libstdc++/39881
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::error_condition ec1(my_err);
|
||||
VERIFY( ec1 == make_error_condition(my_err) );
|
||||
}
|
||||
|
@ -47,8 +47,6 @@ namespace std
|
||||
// libstdc++/39881
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::error_condition ec2;
|
||||
ec2 = my_err;
|
||||
VERIFY( ec2 == make_error_condition(my_err) );
|
||||
|
@ -24,8 +24,6 @@
|
||||
// unspecified bool operator positive tests
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
// 1
|
||||
std::error_condition e1;
|
||||
if (static_cast<bool>(e1))
|
||||
|
@ -24,8 +24,6 @@
|
||||
// unspecified bool operator positive tests
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::error_condition e1;
|
||||
std::error_condition e2(std::errc::operation_not_supported);
|
||||
|
||||
|
@ -24,8 +24,6 @@
|
||||
// unspecified bool operator positive tests
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::error_condition e1;
|
||||
std::error_condition e2(std::errc::operation_not_supported);
|
||||
|
||||
|
@ -27,7 +27,6 @@
|
||||
// libstdc++/1972
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
std::string s("lack of sunlight, no water error");
|
||||
|
||||
// 1
|
||||
@ -42,7 +41,6 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
std::string s("lack of sunlight error");
|
||||
std::domain_error x(s);
|
||||
|
||||
|
@ -33,7 +33,6 @@ public:
|
||||
|
||||
void test03()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
try
|
||||
{ throw fuzzy_logic(); }
|
||||
catch(const fuzzy_logic& obj)
|
||||
|
@ -38,7 +38,6 @@ void allocate_on_stack(void)
|
||||
|
||||
void test04()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
const std::string s("CA ISO emergency once again:immediate power down");
|
||||
const char* strlit1 = "wish I lived in Palo Alto";
|
||||
const char* strlit2 = "...or Santa Barbara";
|
||||
|
@ -27,7 +27,6 @@ void test01()
|
||||
{
|
||||
typedef std::logic_error test_type;
|
||||
|
||||
bool test __attribute__((unused)) = true;
|
||||
const std::string xxx(10000, 'x');
|
||||
test_type t(xxx);
|
||||
VERIFY( std::strcmp(t.what(), xxx.c_str()) == 0 );
|
||||
|
@ -27,7 +27,6 @@
|
||||
// libstdc++/1972
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
std::string s("lack of sunlight, no water error");
|
||||
|
||||
// 1
|
||||
@ -42,7 +41,6 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
std::string s("lack of sunlight error");
|
||||
std::range_error x(s);
|
||||
|
||||
|
@ -33,7 +33,6 @@ public:
|
||||
|
||||
void test03()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
try
|
||||
{ throw fuzzy_logic(); }
|
||||
catch(const fuzzy_logic& obj)
|
||||
|
@ -40,7 +40,6 @@ void allocate_on_stack(void)
|
||||
|
||||
void test04()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
const std::string s("CA ISO emergency once again:immediate power down");
|
||||
const char* strlit1 = "wish I lived in Palo Alto";
|
||||
const char* strlit2 = "...or Santa Barbara";
|
||||
|
@ -27,7 +27,6 @@ void test01()
|
||||
{
|
||||
typedef std::runtime_error test_type;
|
||||
|
||||
bool test __attribute__((unused)) = true;
|
||||
const std::string xxx(10000, 'x');
|
||||
test_type t(xxx);
|
||||
VERIFY( std::strcmp(t.what(), xxx.c_str()) == 0 );
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
const std::string s("too late: boulangerie out of pain au raisin");
|
||||
const std::error_code
|
||||
e(std::make_error_code(std::errc::operation_not_supported));
|
||||
|
@ -28,7 +28,6 @@ using namespace std;
|
||||
// libstdc++/1972
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
string s("lack of sunlight, no water error");
|
||||
|
||||
// 1
|
||||
@ -43,7 +42,6 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
string s("lack of sunlight error");
|
||||
system_error x(error_code(), s);
|
||||
|
||||
|
@ -32,7 +32,6 @@ public:
|
||||
|
||||
void test03()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
try
|
||||
{ throw fuzzy_logic(); }
|
||||
catch(const fuzzy_logic& obj)
|
||||
|
@ -37,7 +37,6 @@ void allocate_on_stack(void)
|
||||
|
||||
void test04()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
const std::string s("CA ISO emergency once again:immediate power down");
|
||||
const char* strlit1 = "wish I lived in Palo Alto";
|
||||
const char* strlit2 = "...or Santa Barbara";
|
||||
|
@ -26,7 +26,6 @@
|
||||
// Make sure each invocation of what() doesn't grow the message.
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
std::string s("after nine thirty, this request cannot be met");
|
||||
|
||||
std::system_error obj =
|
||||
|
@ -26,7 +26,6 @@ void test01()
|
||||
{
|
||||
typedef std::system_error test_type;
|
||||
|
||||
bool test __attribute__((unused)) = true;
|
||||
const std::string xxx(10000, 'x');
|
||||
test_type t(std::error_code(), xxx);
|
||||
VERIFY( std::string(t.what()).find(xxx) != std::string::npos );
|
||||
|
@ -27,7 +27,6 @@ void f1(int) { }
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace __gnu_test;
|
||||
|
||||
OverloadedAddress* ao1 = new OverloadedAddress();
|
||||
|
@ -30,8 +30,6 @@
|
||||
void
|
||||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
size_t space = 100;
|
||||
void* ptr = new char[space];
|
||||
char* const orig_ptr = static_cast<char*>(ptr);
|
||||
|
@ -27,8 +27,6 @@
|
||||
void
|
||||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
int i = 0;
|
||||
void* ptr = &i;
|
||||
auto space = sizeof(i);
|
||||
|
@ -44,7 +44,6 @@ void operator delete(void *v) throw()
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
std::allocator<gnu> obj;
|
||||
|
||||
// NB: These should work for various size allocation and
|
||||
|
@ -32,7 +32,6 @@ public:
|
||||
void test01()
|
||||
{
|
||||
using namespace std;
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
list<Bob> uniset;
|
||||
uniset.push_back(Bob());
|
||||
|
@ -26,7 +26,7 @@
|
||||
// libstdc++/8230
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
bool test = true;
|
||||
try
|
||||
{
|
||||
std::allocator<int> alloc;
|
||||
|
@ -46,8 +46,6 @@ struct hintable_allocator
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
typedef std::allocator_traits<hintable_allocator<X>> traits_type;
|
||||
traits_type::allocator_type a;
|
||||
traits_type::const_void_pointer v;
|
||||
@ -74,8 +72,6 @@ struct unhintable_allocator
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
typedef std::allocator_traits<unhintable_allocator<X>> traits_type;
|
||||
traits_type::allocator_type a;
|
||||
traits_type::const_void_pointer v;
|
||||
|
@ -52,8 +52,6 @@ struct fake_allocator
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
typedef std::allocator_traits<fake_allocator<X>> traits_type;
|
||||
traits_type::allocator_type a;
|
||||
X* p = traits_type::allocate(a, 1);
|
||||
|
@ -53,8 +53,6 @@ struct allocator_without_destroy
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
typedef std::allocator_traits<allocator_with_destroy<X>> traits_type;
|
||||
traits_type::allocator_type a;
|
||||
X* p = 0;
|
||||
@ -65,8 +63,6 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
typedef std::allocator_traits<allocator_without_destroy<X>> traits_type;
|
||||
traits_type::allocator_type a;
|
||||
char buf[sizeof(X)];
|
||||
|
@ -42,8 +42,6 @@ struct unsized_allocator
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
typedef std::allocator_traits<maxsize_allocator<X>> traits_type;
|
||||
traits_type::allocator_type a;
|
||||
auto size = a.max_size();
|
||||
@ -52,8 +50,6 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
typedef std::allocator_traits<unsized_allocator<X>> traits_type;
|
||||
traits_type::allocator_type a;
|
||||
auto size = std::numeric_limits<traits_type::size_type>::max();
|
||||
@ -62,8 +58,6 @@ void test02()
|
||||
|
||||
void test03()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
typedef std::allocator_traits<unsized_allocator<int>> traits_type;
|
||||
traits_type::allocator_type a;
|
||||
auto size = std::numeric_limits<traits_type::size_type>::max();
|
||||
|
@ -57,8 +57,8 @@ int main()
|
||||
a1 = a2;
|
||||
} catch (...) {
|
||||
auto x = std::any_cast<Good>(a1);
|
||||
assert(del_count == 0);
|
||||
assert(a1.has_value());
|
||||
VERIFY( del_count == 0 );
|
||||
VERIFY( a1.has_value() );
|
||||
std::any_cast<Good>(a1);
|
||||
}
|
||||
std::any a3 = Good();
|
||||
@ -70,8 +70,8 @@ int main()
|
||||
a3 = a4;
|
||||
} catch (...) {
|
||||
auto x = std::any_cast<Good>(a1);
|
||||
assert(del_count == 0);
|
||||
assert(a1.has_value());
|
||||
VERIFY( del_count == 0 );
|
||||
VERIFY( a1.has_value() );
|
||||
std::any_cast<Good>(a1);
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,6 @@ int
|
||||
test01()
|
||||
{
|
||||
reset_count_struct __attribute__((unused)) reset;
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::auto_ptr<A> A_default;
|
||||
VERIFY( A_default.get() == 0 );
|
||||
|
@ -59,7 +59,6 @@ int
|
||||
test02()
|
||||
{
|
||||
reset_count_struct __attribute__((unused)) reset;
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::auto_ptr<A> A_from_A(new A);
|
||||
std::auto_ptr<B> B_from_B(new B);
|
||||
|
@ -59,7 +59,6 @@ int
|
||||
test03()
|
||||
{
|
||||
reset_count_struct __attribute__((unused)) reset;
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::auto_ptr<A> A_from_ptr_A;
|
||||
std::auto_ptr<A> A_from_ptr_B;
|
||||
|
@ -60,7 +60,6 @@ int
|
||||
test04()
|
||||
{
|
||||
reset_count_struct __attribute__((unused)) reset;
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
{/*lifetine scope*/
|
||||
std::auto_ptr<A> A_from_A(new A);
|
||||
|
@ -68,7 +68,6 @@ private:
|
||||
int
|
||||
test05()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
reset_count_struct __attribute__((unused)) reset;
|
||||
|
||||
pimpl<A>();
|
||||
|
@ -61,7 +61,6 @@ int
|
||||
test06()
|
||||
{
|
||||
reset_count_struct __attribute__((unused)) reset;
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
std::auto_ptr<A> A_from_A(new A);
|
||||
std::auto_ptr<A> A_from_A_ptr(A_from_A.release());
|
||||
|
@ -70,7 +70,6 @@ static void drain(std::auto_ptr<T>)
|
||||
int
|
||||
test07()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
reset_count_struct __attribute__((unused)) reset;
|
||||
|
||||
drain(source<A>());
|
||||
|
@ -24,8 +24,6 @@
|
||||
// Operations on empty function<> objects
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
VERIFY( std::bind(std::plus<int>(), 3, 5)() == 8 );
|
||||
VERIFY( std::bind(std::minus<int>(), 3, 5)() == -2 );
|
||||
VERIFY( std::bind<int>(std::plus<int>(), 3, 5)() == 8 );
|
||||
|
@ -30,7 +30,6 @@ struct X
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using std::bind;
|
||||
using std::ref;
|
||||
::X x = { true };
|
||||
|
@ -42,8 +42,6 @@ using std::placeholders::_2;
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
auto b0 = std::bind(X());
|
||||
VERIFY( b0() == 0 );
|
||||
|
||||
@ -59,8 +57,6 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
auto b0 = std::bind<int>(X());
|
||||
VERIFY( b0() == 0 );
|
||||
|
||||
@ -76,8 +72,6 @@ void test02()
|
||||
|
||||
void test03()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
auto b0 = std::bind(X(), 0, _1, _2);
|
||||
VERIFY( b0(0, 0) == 0 );
|
||||
|
||||
@ -93,8 +87,6 @@ void test03()
|
||||
|
||||
void test04()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
auto b0 = std::bind<int>(X(), 0, _1, _2);
|
||||
VERIFY( b0(0, 0) == 0 );
|
||||
|
||||
|
@ -30,8 +30,6 @@ struct X
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
const auto b0 = std::bind(X());
|
||||
VERIFY( b0() == 0 );
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
// Operations on empty function<> objects
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std::placeholders;
|
||||
|
||||
int five = 5;
|
||||
|
@ -24,7 +24,6 @@
|
||||
// Operations on empty function<> objects
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std::placeholders;
|
||||
|
||||
int five = 5;
|
||||
|
@ -37,7 +37,6 @@ private:
|
||||
// Operations on empty function<> objects
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using std::bind;
|
||||
using std::ref;
|
||||
::X x;
|
||||
|
@ -28,8 +28,6 @@ int inc(int& i) { return ++i; }
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
int counter = 0;
|
||||
std::bind(&inc, _1)(counter);
|
||||
VERIFY(counter == 1 );
|
||||
@ -47,8 +45,6 @@ struct Inc
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
int counter = 0;
|
||||
std::bind(Inc(), _1)(counter);
|
||||
VERIFY(counter == 1 );
|
||||
|
@ -66,7 +66,6 @@ struct B : A { };
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using std::common_type;
|
||||
using std::is_same;
|
||||
|
||||
@ -98,7 +97,6 @@ void test01()
|
||||
|
||||
void test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using std::common_type;
|
||||
using std::is_same;
|
||||
|
||||
|
@ -27,7 +27,6 @@
|
||||
void
|
||||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std::chrono;
|
||||
|
||||
duration<int> d0(3);
|
||||
@ -59,7 +58,6 @@ test01()
|
||||
void
|
||||
test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std::chrono;
|
||||
|
||||
duration<int> d7(3);
|
||||
|
@ -27,7 +27,6 @@
|
||||
void
|
||||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std::chrono;
|
||||
|
||||
duration<int> d0(12);
|
||||
|
@ -23,7 +23,6 @@
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std::chrono;
|
||||
|
||||
typedef duration<std::int64_t, std::ratio<36 * 24 * 36525>> Years;
|
||||
|
@ -26,7 +26,6 @@
|
||||
// DR 2020
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std::chrono;
|
||||
|
||||
constexpr duration<int> d0(12);
|
||||
|
@ -25,7 +25,6 @@
|
||||
void
|
||||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std::chrono;
|
||||
|
||||
const duration<int> d0(17);
|
||||
|
@ -27,7 +27,6 @@
|
||||
void
|
||||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std::chrono;
|
||||
|
||||
duration<int> d0(12);
|
||||
|
@ -106,7 +106,6 @@ typedef type_emulator<double> dbl_emulator;
|
||||
void
|
||||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using std::chrono::duration;
|
||||
|
||||
int r = 3;
|
||||
|
@ -87,7 +87,6 @@ typedef type_emulator<double> dbl_emulator;
|
||||
void
|
||||
test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using namespace std::chrono;
|
||||
|
||||
duration<int> d0(3);
|
||||
|
@ -23,7 +23,6 @@
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using std::enable_if;
|
||||
|
||||
// Positive tests.
|
||||
|
@ -24,11 +24,10 @@
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
using std::enable_if;
|
||||
|
||||
// Negative tests.
|
||||
typedef enable_if<false, int>::type test2_type;
|
||||
}
|
||||
|
||||
// { dg-error "does not name a type" "" { target *-*-* } 31 }
|
||||
// { dg-error "does not name a type" "" { target *-*-* } 30 }
|
||||
|
@ -24,7 +24,6 @@ struct X : public std::enable_shared_from_this<X> { };
|
||||
|
||||
void test01()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
auto x1 = std::make_shared<X>(), x2 = std::make_shared<X>();
|
||||
*x1 = *x2;
|
||||
VERIFY( x1->shared_from_this() != x2->shared_from_this() );
|
||||
|
@ -41,8 +41,6 @@ test01()
|
||||
void
|
||||
test02()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
struct DefaultConstructible
|
||||
{
|
||||
DefaultConstructible(int i = 0) : value(i) { }
|
||||
@ -63,8 +61,6 @@ double f(double) { return 0; }
|
||||
void
|
||||
test03()
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
|
||||
int (*fp)(int);
|
||||
std::exchange(fp, &f);
|
||||
VERIFY( fp != nullptr );
|
||||
|
@ -45,7 +45,6 @@ public:
|
||||
|
||||
void test() const
|
||||
{
|
||||
bool test __attribute__((unused)) = true;
|
||||
VERIFY( data_ == 3 );
|
||||
}
|
||||
};
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user