2017-11-18 Edward Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / libstdc++-v3 / testsuite / special_functions / 06_comp_ellint_3 / pr66689.cc
bloba83126f5113375015f6766f664c991ea04c1e12e
1 // { dg-do run { target c++11 } }
2 // { dg-require-c-std "" }
3 // { dg-add-options ieee }
4 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
6 #include <cmath>
7 #include <testsuite_hooks.h>
9 void
10 test01()
12 double Pi1 = std::comp_ellint_3(0.75, 0.0);
13 VERIFY(std::abs(Pi1 - 1.91099) < 0.00001);
15 double Pi2 = std::comp_ellint_3(0.75, 0.5);
16 VERIFY(std::abs(Pi2 - 2.80011) < 0.00001);
19 int
20 main()
22 test01();
23 return 0;