summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/ext/random
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-27 15:15:23 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-27 15:15:23 +0000
commit5306dd15208cb9ae84fcc810f6d116054a4e39d7 (patch)
treee2e56f7f49ec67acbd4759836bc39f77ee6d51b0 /libstdc++-v3/testsuite/ext/random
parentffda5be1f82a786d394c6b43598141101d8deb4d (diff)
downloadgcc-5306dd15208cb9ae84fcc810f6d116054a4e39d7.tar.gz
Fix ext/random/hypergeometric_distribution/operators/values.cc on Solaris 9
* testsuite/ext/random/hypergeometric_distribution/operators/values.cc (test01): Wrap in _GLIBCXX_USE_C99_MATH_TR1. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205446 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/ext/random')
-rw-r--r--libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/values.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/values.cc b/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/values.cc
index 5a1e37975af..f1784353d1e 100644
--- a/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/values.cc
+++ b/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/values.cc
@@ -31,6 +31,7 @@
void
test01()
{
+#if _GLIBCXX_USE_C99_MATH_TR1
using namespace __gnu_test;
std::mt19937 eng;
@@ -49,6 +50,7 @@ test01()
auto bhd3 = std::bind(hd3, eng);
testDiscreteDist(bhd3, [](int k)
{ return hypergeometric_pdf(k, 100, 20, 5); });
+#endif
}
int