From 69332dba20a1ff23bdedd1441f296649e33deb4e Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 2 Aug 2016 14:32:02 +0100 Subject: [PATCH] Make TR1 special function tests support C++98 * testsuite/tr1/5_numerical_facilities/special_functions/ 08_cyl_bessel_i/check_value.cc: Use __attribute__((unused)) instead of [[gnu::unused]]. * testsuite/tr1/5_numerical_facilities/special_functions/ 09_cyl_bessel_j/check_value.cc: Likewise. * testsuite/tr1/5_numerical_facilities/special_functions/ 10_cyl_bessel_k/check_value.cc: Likewise. * testsuite/tr1/5_numerical_facilities/special_functions/ 11_cyl_neumann/check_value.cc: Likewise. * testsuite/tr1/5_numerical_facilities/special_functions/ 21_sph_bessel/check_value.cc: Likewise. * testsuite/tr1/5_numerical_facilities/special_functions/ 23_sph_neumann/check_value.cc: Likewise. From-SVN: r238985 --- libstdc++-v3/ChangeLog | 16 +++++++ .../08_cyl_bessel_i/check_value.cc | 40 ++++++++--------- .../09_cyl_bessel_j/check_value.cc | 40 ++++++++--------- .../10_cyl_bessel_k/check_value.cc | 44 +++++++++---------- .../11_cyl_neumann/check_value.cc | 44 +++++++++---------- .../21_sph_bessel/check_value.cc | 28 ++++++------ .../23_sph_neumann/check_value.cc | 32 +++++++------- 7 files changed, 130 insertions(+), 114 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 567dcc13c7c..e6d43257e94 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,19 @@ +2016-08-02 Jonathan Wakely + + * testsuite/tr1/5_numerical_facilities/special_functions/ + 08_cyl_bessel_i/check_value.cc: Use __attribute__((unused)) instead + of [[gnu::unused]]. + * testsuite/tr1/5_numerical_facilities/special_functions/ + 09_cyl_bessel_j/check_value.cc: Likewise. + * testsuite/tr1/5_numerical_facilities/special_functions/ + 10_cyl_bessel_k/check_value.cc: Likewise. + * testsuite/tr1/5_numerical_facilities/special_functions/ + 11_cyl_neumann/check_value.cc: Likewise. + * testsuite/tr1/5_numerical_facilities/special_functions/ + 21_sph_bessel/check_value.cc: Likewise. + * testsuite/tr1/5_numerical_facilities/special_functions/ + 23_sph_neumann/check_value.cc: Likewise. + 2016-08-02 Rainer Orth * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate. diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/08_cyl_bessel_i/check_value.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/08_cyl_bessel_i/check_value.cc index 93315606cdb..78028bbdf07 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/08_cyl_bessel_i/check_value.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/08_cyl_bessel_i/check_value.cc @@ -69,7 +69,7 @@ template void test001() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -123,7 +123,7 @@ template void test002() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -177,7 +177,7 @@ template void test003() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -231,7 +231,7 @@ template void test004() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -285,7 +285,7 @@ template void test005() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -339,7 +339,7 @@ template void test006() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -393,7 +393,7 @@ template void test007() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -447,7 +447,7 @@ template void test008() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -501,7 +501,7 @@ template void test009() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -556,7 +556,7 @@ template void test010() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -610,7 +610,7 @@ template void test011() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -664,7 +664,7 @@ template void test012() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -718,7 +718,7 @@ template void test013() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -772,7 +772,7 @@ template void test014() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -826,7 +826,7 @@ template void test015() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -880,7 +880,7 @@ template void test016() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -934,7 +934,7 @@ template void test017() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -988,7 +988,7 @@ template void test018() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -1042,7 +1042,7 @@ template void test019() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -1096,7 +1096,7 @@ template void test020() { - bool test [[gnu::unused]] = true; + bool test __attribute((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/09_cyl_bessel_j/check_value.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/09_cyl_bessel_j/check_value.cc index 49dc3edf9a7..d7cc1c63f1c 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/09_cyl_bessel_j/check_value.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/09_cyl_bessel_j/check_value.cc @@ -69,7 +69,7 @@ template void test001() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -123,7 +123,7 @@ template void test002() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -177,7 +177,7 @@ template void test003() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -231,7 +231,7 @@ template void test004() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -285,7 +285,7 @@ template void test005() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -339,7 +339,7 @@ template void test006() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -393,7 +393,7 @@ template void test007() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -447,7 +447,7 @@ template void test008() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -501,7 +501,7 @@ template void test009() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -556,7 +556,7 @@ template void test010() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -610,7 +610,7 @@ template void test011() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -664,7 +664,7 @@ template void test012() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -718,7 +718,7 @@ template void test013() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -772,7 +772,7 @@ template void test014() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -826,7 +826,7 @@ template void test015() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -880,7 +880,7 @@ template void test016() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -934,7 +934,7 @@ template void test017() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -988,7 +988,7 @@ template void test018() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -1042,7 +1042,7 @@ template void test019() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -1096,7 +1096,7 @@ template void test020() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/10_cyl_bessel_k/check_value.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/10_cyl_bessel_k/check_value.cc index 038aa2b2f95..d664d1eaf06 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/10_cyl_bessel_k/check_value.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/10_cyl_bessel_k/check_value.cc @@ -68,7 +68,7 @@ template void test001() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -121,7 +121,7 @@ template void test002() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -174,7 +174,7 @@ template void test003() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -227,7 +227,7 @@ template void test004() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -280,7 +280,7 @@ template void test005() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -333,7 +333,7 @@ template void test006() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -386,7 +386,7 @@ template void test007() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -439,7 +439,7 @@ template void test008() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -492,7 +492,7 @@ template void test009() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -545,7 +545,7 @@ template void test010() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -598,7 +598,7 @@ template void test011() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -652,7 +652,7 @@ template void test012() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -705,7 +705,7 @@ template void test013() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -758,7 +758,7 @@ template void test014() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -811,7 +811,7 @@ template void test015() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -864,7 +864,7 @@ template void test016() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -917,7 +917,7 @@ template void test017() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -970,7 +970,7 @@ template void test018() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -1023,7 +1023,7 @@ template void test019() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -1076,7 +1076,7 @@ template void test020() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -1129,7 +1129,7 @@ template void test021() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -1182,7 +1182,7 @@ template void test022() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/11_cyl_neumann/check_value.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/11_cyl_neumann/check_value.cc index 187bd02312a..f6262d0d399 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/11_cyl_neumann/check_value.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/11_cyl_neumann/check_value.cc @@ -68,7 +68,7 @@ template void test001() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -121,7 +121,7 @@ template void test002() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -174,7 +174,7 @@ template void test003() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -227,7 +227,7 @@ template void test004() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -273,7 +273,7 @@ template void test005() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -326,7 +326,7 @@ template void test006() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -372,7 +372,7 @@ template void test007() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -425,7 +425,7 @@ template void test008() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -478,7 +478,7 @@ template void test009() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -531,7 +531,7 @@ template void test010() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -584,7 +584,7 @@ template void test011() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -638,7 +638,7 @@ template void test012() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -691,7 +691,7 @@ template void test013() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -744,7 +744,7 @@ template void test014() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -797,7 +797,7 @@ template void test015() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -850,7 +850,7 @@ template void test016() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -903,7 +903,7 @@ template void test017() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -956,7 +956,7 @@ template void test018() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -1009,7 +1009,7 @@ template void test019() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -1062,7 +1062,7 @@ template void test020() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -1115,7 +1115,7 @@ template void test021() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -1168,7 +1168,7 @@ template void test022() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/21_sph_bessel/check_value.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/21_sph_bessel/check_value.cc index b62dc051a52..d4f32814ecf 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/21_sph_bessel/check_value.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/21_sph_bessel/check_value.cc @@ -69,7 +69,7 @@ template void test001() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -123,7 +123,7 @@ template void test002() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -177,7 +177,7 @@ template void test003() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -231,7 +231,7 @@ template void test004() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -285,7 +285,7 @@ template void test005() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -339,7 +339,7 @@ template void test006() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -394,7 +394,7 @@ template void test007() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -448,7 +448,7 @@ template void test008() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -502,7 +502,7 @@ template void test009() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -556,7 +556,7 @@ template void test010() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -610,7 +610,7 @@ template void test011() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -664,7 +664,7 @@ template void test012() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -718,7 +718,7 @@ template void test013() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -772,7 +772,7 @@ template void test014() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/23_sph_neumann/check_value.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/23_sph_neumann/check_value.cc index 396f15945d1..000cdfc6334 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/23_sph_neumann/check_value.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/23_sph_neumann/check_value.cc @@ -68,7 +68,7 @@ template void test001() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -121,7 +121,7 @@ template void test002() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -174,7 +174,7 @@ template void test003() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -227,7 +227,7 @@ template void test004() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -280,7 +280,7 @@ template void test005() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -333,7 +333,7 @@ template void test006() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -386,7 +386,7 @@ template void test007() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -439,7 +439,7 @@ template void test008() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -493,7 +493,7 @@ template void test009() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -546,7 +546,7 @@ template void test010() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -599,7 +599,7 @@ template void test011() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -652,7 +652,7 @@ template void test012() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -705,7 +705,7 @@ template void test013() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -758,7 +758,7 @@ template void test014() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -811,7 +811,7 @@ template void test015() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); @@ -864,7 +864,7 @@ template void test016() { - bool test [[gnu::unused]] = true; + bool test __attribute__((unused)) = true; const Tp eps = std::numeric_limits::epsilon(); Tp max_abs_diff = -Tp(1); Tp max_abs_frac = -Tp(1); -- 2.30.2