[committed] libstdc++: Restore test for generate_cannonical with __float128.
Tomasz Kamiński
tkaminsk@redhat.com
Fri Dec 19 15:05:14 GMT 2025
Accidentally dropped from commit.
libstdc++-v3/ChangeLog:
* testsuite/26_numerics/random/uniform_real_distribution/operators/gencanon_eng.cc:
Test __float128 when available.
---
Pushed to trunk. Tested x86_64-linux, gencanon_eng.cc
tested with/without -m32 and all standard modes.
.../uniform_real_distribution/operators/gencanon_eng.cc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/gencanon_eng.cc b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/gencanon_eng.cc
index c8d5b5d263b..662e3568a30 100644
--- a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/gencanon_eng.cc
+++ b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/gencanon_eng.cc
@@ -36,4 +36,9 @@ int main()
test_all_engines<float>();
test_all_engines<double>();
test_all_engines<long double>();
+#ifndef _GLIBCXX_GENERATE_CANONICAL_STRICT
+# ifdef __SIZEOF_FLOAT128__
+ test_all_engines<__float128>();
+# endif
+#endif
}
--
2.52.0
More information about the Libstdc++
mailing list