diff options
Diffstat (limited to 'libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/pr66689.cc')
-rw-r--r-- | libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/pr66689.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/pr66689.cc b/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/pr66689.cc new file mode 100644 index 00000000000..c500f20dfd7 --- /dev/null +++ b/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/pr66689.cc @@ -0,0 +1,24 @@ +// { dg-do run { target c++11 } } +// { dg-require-c-std "" } +// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } +// { dg-add-options ieee } + +#include <cmath> +#include <testsuite_hooks.h> + +void +test01() +{ + double Pi1 = std::comp_ellint_3(0.75, 0.0); + VERIFY(std::abs(Pi1 - 1.91099) < 0.00001); + + double Pi2 = std::comp_ellint_3(0.75, 0.5); + VERIFY(std::abs(Pi2 - 2.80011) < 0.00001); +} + +int +main() +{ + test01(); + return 0; +} |