Skip to content

Commit

Permalink
Fix ext/random/hypergeometric_distribution/operators/values.cc on Sol…
Browse files Browse the repository at this point in the history
…aris 9

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205450 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
ro committed Nov 27, 2013
1 parent de193df commit 33eadb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions libstdc++-v3/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
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
(test01): Wrap in _GLIBCXX_USE_C99_MATH_TR1.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// { dg-options "-std=gnu++11" }
// { dg-require-cstdint "" }
// { dg-require-cmath "" }
//
// 2013-11-18 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
Expand Down Expand Up @@ -31,7 +32,6 @@
void
test01()
{
#if _GLIBCXX_USE_C99_MATH_TR1
using namespace __gnu_test;

std::mt19937 eng;
Expand All @@ -50,7 +50,6 @@ test01()
auto bhd3 = std::bind(hd3, eng);
testDiscreteDist(bhd3, [](int k)
{ return hypergeometric_pdf(k, 100, 20, 5); });
#endif
}

int
Expand Down

0 comments on commit 33eadb7

Please sign in to comment.