Commit 0fe530b6 by Rainer Orth Committed by Rainer Orth

Fix ext/random/hypergeometric_distribution/operators/values.cc on Solaris 9

	* testsuite/ext/random/hypergeometric_distribution/operators/values.cc:
	Use dg-require-cmath instead.

From-SVN: r205450
parent 6f831b6d
2013-11-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2013-11-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* testsuite/ext/random/hypergeometric_distribution/operators/values.cc:
Use dg-require-cmath instead.
* testsuite/ext/random/hypergeometric_distribution/operators/values.cc * testsuite/ext/random/hypergeometric_distribution/operators/values.cc
(test01): Wrap in _GLIBCXX_USE_C99_MATH_TR1. (test01): Wrap in _GLIBCXX_USE_C99_MATH_TR1.
......
// { dg-options "-std=gnu++11" } // { dg-options "-std=gnu++11" }
// { dg-require-cstdint "" } // { dg-require-cstdint "" }
// { dg-require-cmath "" }
// //
// 2013-11-18 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 2013-11-18 Edward M. Smith-Rowland <3dw4rd@verizon.net>
// //
...@@ -31,7 +32,6 @@ ...@@ -31,7 +32,6 @@
void void
test01() test01()
{ {
#if _GLIBCXX_USE_C99_MATH_TR1
using namespace __gnu_test; using namespace __gnu_test;
std::mt19937 eng; std::mt19937 eng;
...@@ -50,7 +50,6 @@ test01() ...@@ -50,7 +50,6 @@ test01()
auto bhd3 = std::bind(hd3, eng); auto bhd3 = std::bind(hd3, eng);
testDiscreteDist(bhd3, [](int k) testDiscreteDist(bhd3, [](int k)
{ return hypergeometric_pdf(k, 100, 20, 5); }); { return hypergeometric_pdf(k, 100, 20, 5); });
#endif
} }
int int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment