diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-02 18:25:55 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-02 18:25:55 +0000 |
commit | 32a7faa5b5cc086184805968ad5cfe33a2d44044 (patch) | |
tree | c567f332ba859694781753c90bac55a5ab87b548 /libstdc++-v3/testsuite/18_support | |
parent | ebada1f5578ddbcdc7e4c6697267105aba8f8333 (diff) | |
download | ppe42-gcc-32a7faa5b5cc086184805968ad5cfe33a2d44044.tar.gz ppe42-gcc-32a7faa5b5cc086184805968ad5cfe33a2d44044.zip |
2010-11-02 Paolo Carlini <paolo.carlini@oracle.com
* testsuite/28_regex/05_constants/syntax_option_type.cc: Avoid
-Wall warnings.
* testsuite/28_regex/08_basic_regex/requirements/constexpr_data.cc:
Likewise.
* testsuite/18_support/numeric_limits/requirements/
constexpr_functions.cc: Likewise.
* testsuite/18_support/numeric_limits/requirements/
constexpr_data.cc: Likewise.
* testsuite/21_strings/char_traits/requirements/
constexpr_functions.cc: Likewise.
* testsuite/26_numerics/random/independent_bits_engine/requirements/
constexpr_functions.cc: Likewise.
* testsuite/26_numerics/random/subtract_with_carry_engine/
requirements/constexpr_functions.cc: Likewise.
* testsuite/26_numerics/random/subtract_with_carry_engine/
requirements/constexpr_data.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/requirements/
constexpr_functions.cc: Likewise.
* testsuite/26_numerics/random/discard_block_engine/requirements/
constexpr_data.cc: Likewise.
* testsuite/26_numerics/random/mersenne_twister_engine/
requirements/constexpr_functions.cc: Likewise.
* testsuite/26_numerics/random/mersenne_twister_engine/
requirements/constexpr_data.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/
requirements/constexpr_functions.cc: Likewise.
* testsuite/26_numerics/random/linear_congruential_engine/
requirements/constexpr_data.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/
requirements/constexpr_functions.cc: Likewise.
* testsuite/26_numerics/random/shuffle_order_engine/
requirements/constexpr_data.cc: Likewise.
* testsuite/26_numerics/complex/requirements/
constexpr_functions.cc: Likewise.
* testsuite/23_containers/bitset/requirements/
constexpr_functions.cc: Likewise.
* testsuite/23_containers/array/requirements/
constexpr_functions.cc: Likewise.
* testsuite/util/testsuite_common_types.h: Likewise.
* testsuite/20_util/duration/requirements/
constexpr_functions.cc: Likewise.
* testsuite/20_util/duration_cast/constexpr.cc: Likewise.
* testsuite/20_util/time_point/requirements/
constexpr_functions.cc: Likewise.
* testsuite/20_util/ratio/requirements/constexpr_data.cc: Likewise.
* testsuite/tr1/4_metaprogramming/integral_constant/
requirements/constexpr_data.cc: Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166210 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/18_support')
-rw-r--r-- | libstdc++-v3/testsuite/18_support/numeric_limits/requirements/constexpr_data.cc | 69 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/18_support/numeric_limits/requirements/constexpr_functions.cc | 27 |
2 files changed, 64 insertions, 32 deletions
diff --git a/libstdc++-v3/testsuite/18_support/numeric_limits/requirements/constexpr_data.cc b/libstdc++-v3/testsuite/18_support/numeric_limits/requirements/constexpr_data.cc index d5f3b3f3926..0b82a75db55 100644 --- a/libstdc++-v3/testsuite/18_support/numeric_limits/requirements/constexpr_data.cc +++ b/libstdc++-v3/testsuite/18_support/numeric_limits/requirements/constexpr_data.cc @@ -35,29 +35,52 @@ namespace __gnu_test { using std::float_denorm_style; using std::float_round_style; - constexpr bool v1(_Ttesttype::is_specialized); - constexpr int v2(_Ttesttype::digits); - constexpr int v3(_Ttesttype::digits10); - constexpr int v4(_Ttesttype::max_digits10); - constexpr bool v5(_Ttesttype::is_signed); - constexpr bool v6(_Ttesttype::is_integer); - constexpr bool v7(_Ttesttype::is_exact); - constexpr int v8(_Ttesttype::radix); - constexpr int v9(_Ttesttype::min_exponent); - constexpr int v10(_Ttesttype::min_exponent10); - constexpr int v11(_Ttesttype::max_exponent); - constexpr int v12(_Ttesttype::max_exponent10); - constexpr bool v13(_Ttesttype::has_infinity); - constexpr bool v14(_Ttesttype::has_quiet_NaN); - constexpr bool v15(_Ttesttype::has_signaling_NaN); - constexpr float_denorm_style v16(_Ttesttype::has_denorm); - constexpr bool v17(_Ttesttype::has_denorm_loss); - constexpr bool v18(_Ttesttype::is_iec559); - constexpr bool v19(_Ttesttype::is_bounded); - constexpr bool v20(_Ttesttype::is_modulo); - constexpr bool v21(_Ttesttype::traps); - constexpr bool v22(_Ttesttype::tinyness_before); - constexpr float_round_style v23(_Ttesttype::round_style); + constexpr bool v1 __attribute__((unused)) + = _Ttesttype::is_specialized; + constexpr int v2 __attribute__((unused)) + = _Ttesttype::digits; + constexpr int v3 __attribute__((unused)) + = _Ttesttype::digits10; + constexpr int v4 __attribute__((unused)) + = _Ttesttype::max_digits10; + constexpr bool v5 __attribute__((unused)) + = _Ttesttype::is_signed; + constexpr bool v6 __attribute__((unused)) + = _Ttesttype::is_integer; + constexpr bool v7 __attribute__((unused)) + = _Ttesttype::is_exact; + constexpr int v8 __attribute__((unused)) + = _Ttesttype::radix; + constexpr int v9 __attribute__((unused)) + = _Ttesttype::min_exponent; + constexpr int v10 __attribute__((unused)) + = _Ttesttype::min_exponent10; + constexpr int v11 __attribute__((unused)) + = _Ttesttype::max_exponent; + constexpr int v12 __attribute__((unused)) + = _Ttesttype::max_exponent10; + constexpr bool v13 __attribute__((unused)) + = _Ttesttype::has_infinity; + constexpr bool v14 __attribute__((unused)) + = _Ttesttype::has_quiet_NaN; + constexpr bool v15 __attribute__((unused)) + = _Ttesttype::has_signaling_NaN; + constexpr float_denorm_style v16 __attribute__((unused)) + = _Ttesttype::has_denorm; + constexpr bool v17 __attribute__((unused)) + = _Ttesttype::has_denorm_loss; + constexpr bool v18 __attribute__((unused)) + = _Ttesttype::is_iec559; + constexpr bool v19 __attribute__((unused)) + = _Ttesttype::is_bounded; + constexpr bool v20 __attribute__((unused)) + = _Ttesttype::is_modulo; + constexpr bool v21 __attribute__((unused)) + = _Ttesttype::traps; + constexpr bool v22 __attribute__((unused)) + = _Ttesttype::tinyness_before; + constexpr float_round_style v23 __attribute__((unused)) + = _Ttesttype::round_style; } }; diff --git a/libstdc++-v3/testsuite/18_support/numeric_limits/requirements/constexpr_functions.cc b/libstdc++-v3/testsuite/18_support/numeric_limits/requirements/constexpr_functions.cc index 7c4852b2bbb..f1848f218c2 100644 --- a/libstdc++-v3/testsuite/18_support/numeric_limits/requirements/constexpr_functions.cc +++ b/libstdc++-v3/testsuite/18_support/numeric_limits/requirements/constexpr_functions.cc @@ -33,15 +33,24 @@ namespace __gnu_test { void __constraint() { - constexpr _Tbasetype v1(_Ttesttype::min()); - constexpr _Tbasetype v2(_Ttesttype::max()); - constexpr _Tbasetype v3(_Ttesttype::lowest()); - constexpr _Tbasetype v4(_Ttesttype::epsilon()); - constexpr _Tbasetype v5(_Ttesttype::round_error()); - constexpr _Tbasetype v6(_Ttesttype::infinity()); - constexpr _Tbasetype v7(_Ttesttype::quiet_NaN()); - constexpr _Tbasetype v8(_Ttesttype::signaling_NaN()); - constexpr _Tbasetype v9(_Ttesttype::denorm_min()); + constexpr _Tbasetype v1 __attribute__((unused)) + = _Ttesttype::min(); + constexpr _Tbasetype v2 __attribute__((unused)) + = _Ttesttype::max(); + constexpr _Tbasetype v3 __attribute__((unused)) + = _Ttesttype::lowest(); + constexpr _Tbasetype v4 __attribute__((unused)) + = _Ttesttype::epsilon(); + constexpr _Tbasetype v5 __attribute__((unused)) + = _Ttesttype::round_error(); + constexpr _Tbasetype v6 __attribute__((unused)) + = _Ttesttype::infinity(); + constexpr _Tbasetype v7 __attribute__((unused)) + = _Ttesttype::quiet_NaN(); + constexpr _Tbasetype v8 __attribute__((unused)) + = _Ttesttype::signaling_NaN(); + constexpr _Tbasetype v9 __attribute__((unused)) + = _Ttesttype::denorm_min(); } }; |