aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2013-11-27 16:15:35 +0000
committerRainer Orth <ro@gcc.gnu.org>2013-11-27 16:15:35 +0000
commit0fe530b6f09b33f68cc18abf8fa3f9484615d47d (patch)
tree2a9f806e000a1244113de7bac6c9299301a7fb5f /libstdc++-v3
parent6f831b6df7a8cff16e7127beeb89ba6e32688196 (diff)
downloadgcc-0fe530b6f09b33f68cc18abf8fa3f9484615d47d.zip
gcc-0fe530b6f09b33f68cc18abf8fa3f9484615d47d.tar.gz
gcc-0fe530b6f09b33f68cc18abf8fa3f9484615d47d.tar.bz2
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog3
-rw-r--r--libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/values.cc3
2 files changed, 4 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 22ddfa3..a27870d 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
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 f178435..5f762d3 100644
--- a/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/values.cc
+++ b/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/operators/values.cc
@@ -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>
//
@@ -31,7 +32,6 @@
void
test01()
{
-#if _GLIBCXX_USE_C99_MATH_TR1
using namespace __gnu_test;
std::mt19937 eng;
@@ -50,7 +50,6 @@ test01()
auto bhd3 = std::bind(hd3, eng);
testDiscreteDist(bhd3, [](int k)
{ return hypergeometric_pdf(k, 100, 20, 5); });
-#endif
}
int